3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function bar() { if (is_callable('Foo\\time')) { var_dump(\Foo\time()); } } } namespace { \Foo\bar(); eval('namespace Foo; function time() { return -1; }'); \Foo\bar(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tReC3
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'foo%5Cbar'
          1        DO_FCALL                                      0          
   13     2        INCLUDE_OR_EVAL                                          'namespace+Foo%3B+function+time%28%29+%7B+return+-1%3B+%7D', EVAL
   14     3        INIT_FCALL                                               'foo%5Cbar'
          4        DO_FCALL                                      0          
   15     5      > RETURN                                                   1

Function foo%5Cbar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/tReC3
function name:  Foo\bar
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cis_callable'
          1        SEND_VAL_EX                                              'Foo%5Ctime'
          2        DO_FCALL                                      0  $0      
          3      > JMPZ                                                     $0, ->9
    6     4    >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          5        INIT_FCALL_BY_NAME                                       'Foo%5Ctime'
          6        DO_FCALL                                      0  $1      
          7        SEND_VAR_NO_REF_EX                                       $1
          8        DO_FCALL                                      0          
    8     9    > > RETURN                                                   null

End of function foo%5Cbar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.12 ms | 1397 KiB | 19 Q