3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { echo 'foo'; } echo (NULL === set_error_handler('foo')); echo (NULL === set_error_handler('bar'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Oebi
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        SEND_VAL                                                     'foo'
          2        DO_ICALL                                             $0      
          3        TYPE_CHECK                                        2  ~1      $0
          4        ECHO                                                         ~1
    5     5        INIT_FCALL                                                   'set_error_handler'
          6        SEND_VAL                                                     'bar'
          7        DO_ICALL                                             $2      
          8        TYPE_CHECK                                        2  ~3      $2
          9        ECHO                                                         ~3
         10      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Oebi
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         'foo'
          1      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.17 ms | 2037 KiB | 14 Q