3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foobar; class Foo { static public function test($name) { print '[['. $name .']]'; } } spl_autoload_register(__NAMESPACE__ .'\Foo::test'); // As of PHP 5.3.0 new InexistentClass;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oQ7vM
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foobar%5Cspl_autoload_register'
          1        SEND_VAL_EX                                              'Foobar%5CFoo%3A%3Atest'
          2        DO_FCALL                                      0          
   12     3        NEW                                              $1      'Foobar%5CInexistentClass'
          4        DO_FCALL                                      0          
          5        FREE                                                     $1
          6      > RETURN                                                   1

Class Foobar\Foo:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oQ7vM
function name:  test
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        CONCAT                                           ~1      '%5B%5B', !0
          2        CONCAT                                           ~2      ~1, '%5D%5D'
          3        ECHO                                                     ~2
    7     4      > RETURN                                                   null

End of function test

End of class Foobar\Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.68 ms | 1394 KiB | 15 Q