3v4l.org

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

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.21 ms | 1394 KiB | 15 Q