3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { echo 'X'; echo set_error_handler('var_dump'); restore_error_handler(); } set_error_handler('foo'); $a = $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mAvfj
function name:  (null)
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'foo'
          2        DO_ICALL                                                 
   12     3        ASSIGN                                                   !0, !1
          4      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mAvfj
function name:  foo
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'X'
    6     1        INIT_FCALL                                               'set_error_handler'
          2        SEND_VAL                                                 'var_dump'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    7     5        INIT_FCALL                                               'restore_error_handler'
          6        DO_ICALL                                                 
    8     7      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1394 KiB | 17 Q