3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo() { echo __FUNCTION__; } foo(); 'foo'(); b'foo'(); "foo"(); $x = "oo"; "f$x"();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2JIq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'foo'
          1        DO_FCALL                                          0          
    6     2        INIT_FCALL                                                   'foo'
          3        DO_FCALL                                          0          
    7     4        INIT_FCALL                                                   'foo'
          5        DO_FCALL                                          0          
    8     6        INIT_FCALL                                                   'foo'
          7        DO_FCALL                                          0          
   10     8        ASSIGN                                                       !0, 'oo'
   11     9        NOP                                                          
         10        FAST_CONCAT                                          ~6      'f', !0
         11        INIT_DYNAMIC_CALL                                            ~6
         12        DO_FCALL                                          0          
         13      > RETURN                                                       1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.47 ms | 1164 KiB | 17 Q