3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler('exceptions_error_handler'); function exceptions_error_handler($severity, $message, $filename, $lineno) { var_dump($message); } error_reporting(E_ALL); $a = []; echo $a["foo"]; echo "foo"; error_reporting(E_ALL & ~E_NOTICE); $a = []; echo $a["foo"]; echo "bar";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S2jLF
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'exceptions_error_handler'
          2        DO_ICALL                                                 
    9     3        INIT_FCALL                                               'error_reporting'
          4        SEND_VAL                                                 32767
          5        DO_ICALL                                                 
   11     6        ASSIGN                                                   !0, <array>
   13     7        FETCH_DIM_R                                      ~4      !0, 'foo'
          8        ECHO                                                     ~4
   15     9        ECHO                                                     'foo'
   17    10        INIT_FCALL                                               'error_reporting'
         11        SEND_VAL                                                 32759
         12        DO_ICALL                                                 
   19    13        ASSIGN                                                   !0, <array>
   21    14        FETCH_DIM_R                                      ~7      !0, 'foo'
         15        ECHO                                                     ~7
   23    16        ECHO                                                     'bar'
         17      > RETURN                                                   1

Function exceptions_error_handler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S2jLF
function name:  exceptions_error_handler
number of ops:  8
compiled vars:  !0 = $severity, !1 = $message, !2 = $filename, !3 = $lineno
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    6     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    7     7      > RETURN                                                   null

End of function exceptions_error_handler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.43 ms | 1395 KiB | 19 Q