3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo1() { echo 1; } $foo1 = 'foo1'; $foo2 = function () { echo 2; }; class Bar { static function foo3() { echo 3;} function foo4() { echo 4; } } $foo3 = 'Bar::foo3'; $foo4 = array(new Bar, 'foo4'); $foo1(); $foo2(); $foo3(); $foo4();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QcT7i
function name:  (null)
number of ops:  18
compiled vars:  !0 = $foo1, !1 = $foo2, !2 = $foo3, !3 = $foo4
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, 'foo1'
    6     1        DECLARE_LAMBDA_FUNCTION                              ~5      [0]
          2        ASSIGN                                                       !1, ~5
   13     3        ASSIGN                                                       !2, 'Bar%3A%3Afoo3'
   14     4        NEW                                                  $8      'Bar'
          5        DO_FCALL                                          0          
          6        INIT_ARRAY                                           ~10     $8
          7        ADD_ARRAY_ELEMENT                                    ~10     'foo4'
          8        ASSIGN                                                       !3, ~10
   17     9        INIT_DYNAMIC_CALL                                            !0
         10        DO_FCALL                                          0          
   18    11        INIT_DYNAMIC_CALL                                            !1
         12        DO_FCALL                                          0          
   19    13        INIT_DYNAMIC_CALL                                            !2
         14        DO_FCALL                                          0          
   20    15        INIT_DYNAMIC_CALL                                            !3
         16        DO_FCALL                                          0          
         17      > RETURN                                                       1


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

End of Dynamic Function 0

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

End of function foo1

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

End of function foo3

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

End of function foo4

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.72 ms | 2922 KiB | 13 Q