3v4l.org

run code in 500+ PHP versions simultaneously
<?php register_shutdown_function(static function () { global $php_errormsg; while(ob_get_level())ob_end_clean(); ob_implicit_flush(true); echo "<!--\n"; echo "\n\tHeaders Sent:"; $file = $line = null; headers_sent($file, $line); $file = empty($file) ? 'unknown' : $file; echo "\n\t\t$file: $line"; echo "\n\tLast Error:"; /*if (!empty($lastError = error_get_last())) { foreach ($lastError as $k => $v) { echo htmlspecialchars("\n\t\t$k: $v"); } } else*/ if (!empty($GLOBALS['php_errormsg'])) { echo "\n\t\tError: {$GLOBALS['php_errormsg']}"; } else { echo "\n\t\tnone"; } echo "\n\tIncluded Files:"; echo "\n\t\t" . implode("\n\t\t", get_included_files()); echo "\n-->"; }); trigger_error('fdgsdf', E_USER_WARNING);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gtU3V
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'register_shutdown_function'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
   32     2        SEND_VAL                                                     ~0
    3     3        DO_ICALL                                                     
   34     4        INIT_FCALL                                                   'trigger_error'
          5        SEND_VAL                                                     'fdgsdf'
          6        SEND_VAL                                                     512
          7        DO_ICALL                                                     
          8      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 38
Branch analysis from position: 33
Branch analysis from position: 38
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
Branch analysis from position: 2
filename:       /in/gtU3V
function name:  {closure:/in/gtU3V:3}
number of ops:  47
compiled vars:  !0 = $php_errormsg, !1 = $file, !2 = $line
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   BIND_GLOBAL                                                  !0, 'php_errormsg'
    6     1      > JMP                                                          ->4
          2    >   INIT_FCALL                                                   'ob_end_clean'
          3        DO_ICALL                                                     
          4    >   INIT_FCALL                                                   'ob_get_level'
          5        DO_ICALL                                             $4      
          6      > JMPNZ                                                        $4, ->2
    7     7    >   INIT_FCALL                                                   'ob_implicit_flush'
          8        SEND_VAL                                                     <true>
          9        DO_ICALL                                                     
    9    10        ECHO                                                         '%3C%21--%0A'
   11    11        ECHO                                                         '%0A%09Headers+Sent%3A'
   12    12        ASSIGN                                               ~6      !2, null
         13        ASSIGN                                                       !1, ~6
   13    14        INIT_FCALL                                                   'headers_sent'
         15        SEND_REF                                                     !1
         16        SEND_REF                                                     !2
         17        DO_ICALL                                                     
   14    18        ISSET_ISEMPTY_CV                                             !1
         19      > JMPZ                                                         ~9, ->22
         20    >   QM_ASSIGN                                            ~10     'unknown'
         21      > JMP                                                          ->23
         22    >   QM_ASSIGN                                            ~10     !1
         23    >   ASSIGN                                                       !1, ~10
   15    24        ROPE_INIT                                         4  ~13     '%0A%09%09'
         25        ROPE_ADD                                          1  ~13     ~13, !1
         26        ROPE_ADD                                          2  ~13     ~13, '%3A+'
         27        ROPE_END                                          3  ~12     ~13, !2
         28        ECHO                                                         ~12
   17    29        ECHO                                                         '%0A%09Last+Error%3A'
   22    30        ISSET_ISEMPTY_VAR                                 3  ~15     'php_errormsg'
         31        BOOL_NOT                                             ~16     ~15
         32      > JMPZ                                                         ~16, ->38
   23    33    >   NOP                                                          
         34        FETCH_R                          global              ~17     'php_errormsg'
         35        FAST_CONCAT                                          ~18     '%0A%09%09Error%3A+', ~17
         36        ECHO                                                         ~18
   22    37      > JMP                                                          ->39
   25    38    >   ECHO                                                         '%0A%09%09none'
   28    39    >   ECHO                                                         '%0A%09Included+Files%3A'
   29    40        INIT_FCALL                                                   'get_included_files'
         41        DO_ICALL                                             $19     
         42        FRAMELESS_ICALL_2                implode             ~20     '%0A%09%09', $19
         43        CONCAT                                               ~21     '%0A%09%09', ~20
         44        ECHO                                                         ~21
   31    45        ECHO                                                         '%0A--%3E'
   32    46      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.27 ms | 1331 KiB | 20 Q