3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { 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/9h3oM
function name:  (null)
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     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/9h3oM
function name:  foo
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'var_dump'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    6     4        INIT_FCALL                                               'restore_error_handler'
          5        DO_ICALL                                                 
    7     6      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.65 ms | 1394 KiB | 17 Q