3v4l.org

run code in 300+ PHP versions simultaneously
<?php $functionName = 'MyFunction'; // Create function with the name defined in variable $functionName function MyFunction($argument) { return 'Argument passed is: '.$argument; } /*var_dump(MyFunction('Calling MyFunction directly.')); var_dump({'MyFunction'}('Calling MyFunction with string.'));*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YYtLk
function name:  (null)
number of ops:  2
compiled vars:  !0 = $functionName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'MyFunction'
   10     1      > RETURN                                                   1

Function myfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YYtLk
function name:  MyFunction
number of ops:  4
compiled vars:  !0 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        CONCAT                                           ~1      'Argument+passed+is%3A+', !0
          2      > RETURN                                                   ~1
    7     3*     > RETURN                                                   null

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1393 KiB | 13 Q