3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { echo "called foo\n"; } class A {} new A(foo()); echo "are you sure?";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9dT1U
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $0      'A'
          1        INIT_FCALL                                               'foo'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR_NO_REF_EX                                       $1
          4        DO_FCALL                                      0          
          5        FREE                                                     $0
   12     6        ECHO                                                     'are+you+sure%3F'
          7      > RETURN                                                   1

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

End of function foo

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.66 ms | 1401 KiB | 14 Q