3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo1($a, $b) { var_dump($a, $b); } function foo2($a) { return "e$a"; } function foo3() { return 2; } function foo4() { return 3; } foo1(foo2(foo4), foo3());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lOpgk
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'foo1'
          1        INIT_FCALL                                               'foo2'
          2        FETCH_CONSTANT                                   ~0      'foo4'
          3        SEND_VAL                                                 ~0
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR                                                 $1
          6        INIT_FCALL                                               'foo3'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function foo1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lOpgk
function name:  foo1
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
          6      > RETURN                                                   null

End of function foo1

Function foo2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lOpgk
function name:  foo2
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'e', !0
          3      > RETURN                                                   ~1
          4*     > RETURN                                                   null

End of function foo2

Function foo3:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lOpgk
function name:  foo3
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   2
          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/lOpgk
function name:  foo4
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   3
          1*     > RETURN                                                   null

End of function foo4

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1403 KiB | 18 Q