3v4l.org

run code in 500+ PHP versions simultaneously
<?php @ini_set('display_errors', '1'); error_reporting(-1); set_error_handler(static function($errno, $errstr, $errfile, $errline, $vars = []) { if (error_reporting() === 0) { return; } if (!(error_reporting() & $errno)) { return false; // Silenced } echo 'ERROR: <pre>'; var_dump($errno, $errstr, $errfile, $errlne, $vars); echo '</pre>'; return true; }); echo "start\r\n"; $variable = @include('/tmp/none.txt'); if (!is_array($variable)) { $variable = [1,2,3]; } //file_put_contents('/tmp/none.txt', var_export($variable, true)); echo 'end';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/hd72W
function name:  (null)
number of ops:  24
compiled vars:  !0 = $variable
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                        ~1      
          1        INIT_FCALL                                                   'ini_set'
          2        SEND_VAL                                                     'display_errors'
          3        SEND_VAL                                                     '1'
          4        DO_ICALL                                                     
          5        END_SILENCE                                                  ~1
    4     6        INIT_FCALL                                                   'error_reporting'
          7        SEND_VAL                                                     -1
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'set_error_handler'
         10        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
   16    11        SEND_VAL                                                     ~4
    6    12        DO_ICALL                                                     
   18    13        ECHO                                                         'start%0D%0A'
   20    14        BEGIN_SILENCE                                        ~6      
         15        INCLUDE_OR_EVAL                                      $7      '%2Ftmp%2Fnone.txt', INCLUDE
         16        END_SILENCE                                                  ~6
         17        ASSIGN                                                       !0, $7
   21    18        TYPE_CHECK                                      128  ~9      !0
         19        BOOL_NOT                                             ~10     ~9
         20      > JMPZ                                                         ~10, ->22
   23    21    >   ASSIGN                                                       !0, <array>
   27    22    >   ECHO                                                         'end'
         23      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hd72W
function name:  {closure:/in/hd72W:6}
number of ops:  27
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline, !4 = $vars, !5 = $errlne
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
          3        RECV                                                 !3      
          4        RECV_INIT                                            !4      <array>
    7     5        INIT_FCALL                                                   'error_reporting'
          6        DO_ICALL                                             $6      
          7        IS_IDENTICAL                                                 $6, 0
          8      > JMPZ                                                         ~7, ->10
    9     9    > > RETURN                                                       null
   11    10    >   INIT_FCALL                                                   'error_reporting'
         11        DO_ICALL                                             $8      
         12        BW_AND                                               ~9      !0, $8
         13        BOOL_NOT                                             ~10     ~9
         14      > JMPZ                                                         ~10, ->16
   12    15    > > RETURN                                                       <false>
   14    16    >   ECHO                                                         'ERROR%3A+%3Cpre%3E'
         17        INIT_FCALL                                                   'var_dump'
         18        SEND_VAR                                                     !0
         19        SEND_VAR                                                     !1
         20        SEND_VAR                                                     !2
         21        SEND_VAR                                                     !5
         22        SEND_VAR                                                     !4
         23        DO_ICALL                                                     
         24        ECHO                                                         '%3C%2Fpre%3E'
   15    25      > RETURN                                                       <true>
   16    26*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.83 ms | 1888 KiB | 17 Q