3v4l.org

run code in 300+ PHP versions simultaneously
<?php test(func(), $var, 1, 1+1); function test($param, $a, $b, $c) { print $param; } function func() { print 1; } test(func(2), $var, 1, 1+1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9p7ed
function name:  (null)
number of ops:  18
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'test'
          1        INIT_FCALL_BY_NAME                                       'func'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR_NO_REF_EX                                       $1
          4        SEND_VAR_EX                                              !0
          5        SEND_VAL_EX                                              1
          6        SEND_VAL_EX                                              2
          7        DO_FCALL                                      0          
   12     8        INIT_FCALL                                               'test'
          9        INIT_FCALL                                               'func'
         10        SEND_VAL                                                 2
         11        DO_FCALL                                      0  $3      
         12        SEND_VAR                                                 $3
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 1
         15        SEND_VAL                                                 2
         16        DO_FCALL                                      0          
         17      > RETURN                                                   1

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

End of function test

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

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.3 ms | 1399 KiB | 15 Q