3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace App { function run() { var_dump(time()); } } namespace { \App\run(); eval(' namespace App; function time() { return 555; } '); \App\run(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5BpT9
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'app%5Crun'
          1        DO_FCALL                                          0          
   12     2        INCLUDE_OR_EVAL                                              '%0A++++++++namespace+App%3B%0A++++++++function+time%28%29%0A++++++++%7B%0A++++++++++++return+555%3B%0A++++++++%7D%0A++++', EVAL
   19     3        INIT_FCALL                                                   'app%5Crun'
          4        DO_FCALL                                          0          
   20     5      > RETURN                                                       1

Function app%5Crun:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5BpT9
function name:  App\run
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                        'App%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                        'App%5Ctime'
          2        DO_FCALL                                          0  $0      
          3        SEND_VAR_NO_REF_EX                                           $0
          4        DO_FCALL                                          0          
    7     5      > RETURN                                                       null

End of function app%5Crun

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.81 ms | 1413 KiB | 17 Q