3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create function with the name defined in variable $functionName function MyFunction($argument) { return 'Argument passed is: '.$argument; } $functionName = 'MyFunction'; var_dump(eval("return 'something';")); var_dump($functionName('Calling MyFunction with string.'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AInuY
function name:  (null)
number of ops:  12
compiled vars:  !0 = $functionName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'MyFunction'
    9     1        INIT_FCALL                                               'var_dump'
          2        INCLUDE_OR_EVAL                                  $2      'return+%27something%27%3B', EVAL
          3        SEND_VAR                                                 $2
          4        DO_ICALL                                                 
   10     5        INIT_FCALL                                               'var_dump'
          6        INIT_DYNAMIC_CALL                                        !0
          7        SEND_VAL_EX                                              'Calling+MyFunction+with+string.'
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1395 KiB | 15 Q