3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Homer\Marge { const BART = "Eat my shorts!"; function lisa() { echo __FUNCTION__."\n"; } } namespace { use const Homer\Marge\FOO; use function Homer\Marge\lisa; echo BART."\n"; lisa(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gmunM
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'Homer%5CMarge%5CBART', 'Eat+my+shorts%21'
   11     1        FETCH_CONSTANT                                   ~0      'BART'
          2        CONCAT                                           ~1      ~0, '%0A'
          3        ECHO                                                     ~1
   12     4        INIT_FCALL                                               'homer%5Cmarge%5Clisa'
          5        DO_FCALL                                      0          
   14     6      > RETURN                                                   1

Function homer%5Cmarge%5Clisa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gmunM
function name:  Homer\Marge\lisa
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Homer%5CMarge%5Clisa%0A'
          1      > RETURN                                                   null

End of function homer%5Cmarge%5Clisa

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.12 ms | 1396 KiB | 14 Q