3v4l.org

run code in 300+ PHP versions simultaneously
<?php define(SPIDERMAN,'peter parker'); function foo () { $x = 'spiderman is ' . SPIDERMAN; return $x; } var_dump(foo());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uXIu9
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        FETCH_CONSTANT                                   ~0      'SPIDERMAN'
          2        SEND_VAL                                                 ~0
          3        SEND_VAL                                                 'peter+parker'
          4        DO_ICALL                                                 
    9     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'foo'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uXIu9
function name:  foo
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_CONSTANT                                   ~1      'SPIDERMAN'
          1        CONCAT                                           ~2      'spiderman+is+', ~1
          2        ASSIGN                                                   !0, ~2
    6     3      > RETURN                                                   !0
    7     4*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1397 KiB | 18 Q