3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($x){ echo "foo is called" . PHP_EOL; } class Foo { function bar($x) { echo "bar is called" . PHP_EOL; } } foo(10, 20); (new Foo())->bar(20, 30);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0CkdP
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                                   'foo'
          1        SEND_VAL                                                     10
          2        SEND_VAL                                                     20
          3        DO_FCALL                                          0          
   16     4        NEW                                                  $1      'Foo'
          5        DO_FCALL                                          0          
          6        INIT_METHOD_CALL                                             $1, 'bar'
          7        SEND_VAL_EX                                                  20
          8        SEND_VAL_EX                                                  30
          9        DO_FCALL                                          0          
         10      > RETURN                                                       1

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

End of function foo

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0CkdP
function name:  bar
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
   10     1        ECHO                                                         'bar+is+called%0A'
   11     2      > RETURN                                                       null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.7 ms | 1635 KiB | 14 Q