3v4l.org

run code in 500+ PHP versions simultaneously
<?php function myFunction($inputStr, $paramOne, $paramTwo) { echo $inputStr . " P1: " . $paramOne . " P2: " . $paramTwo; } function callerFunction($functionName, array $functArgsArr) { array_unshift($functArgsArr, "Hello World"); call_user_func_array($functionName, $functArgsArr); } callerFunction("myFunction", ["one", "two"]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7fA9
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                                   'callerfunction'
          1        SEND_VAL                                                     'myFunction'
          2        SEND_VAL                                                     <array>
          3        DO_FCALL                                          0          
          4      > RETURN                                                       1

Function myfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7fA9
function name:  myFunction
number of ops:  9
compiled vars:  !0 = $inputStr, !1 = $paramOne, !2 = $paramTwo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV                                                 !2      
    5     3        CONCAT                                               ~3      !0, '+P1%3A+'
          4        CONCAT                                               ~4      ~3, !1
          5        CONCAT                                               ~5      ~4, '+P2%3A+'
          6        CONCAT                                               ~6      ~5, !2
          7        ECHO                                                         ~6
    6     8      > RETURN                                                       null

End of function myfunction

Function callerfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u7fA9
function name:  callerFunction
number of ops:  11
compiled vars:  !0 = $functionName, !1 = $functArgsArr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   10     2        INIT_FCALL                                                   'array_unshift'
          3        SEND_REF                                                     !1
          4        SEND_VAL                                                     'Hello+World'
          5        DO_ICALL                                                     
   11     6        INIT_USER_CALL                                    0          'call_user_func_array', !0
          7        SEND_ARRAY                                                   !1
          8        CHECK_UNDEF_ARGS                                             
          9        DO_FCALL                                          1          
   12    10      > RETURN                                                       null

End of function callerfunction

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.83 ms | 2021 KiB | 15 Q