3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register('var_dump'); display_errors(0); new Foo(); new \Foo(); use Foo\Bar; new Bar(); use Foo\Baz as Cat; new Cat(); use Foo\Ciz; new Ciz\Caz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WGVko
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'var_dump'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL_BY_NAME                                       'display_errors'
          4        SEND_VAL_EX                                              0
          5        DO_FCALL                                      0          
    6     6        NEW                                              $2      'Foo'
          7        DO_FCALL                                      0          
          8        FREE                                                     $2
    7     9        NEW                                              $4      'Foo'
         10        DO_FCALL                                      0          
         11        FREE                                                     $4
   10    12        NEW                                              $6      'Foo%5CBar'
         13        DO_FCALL                                      0          
         14        FREE                                                     $6
   13    15        NEW                                              $8      'Foo%5CBaz'
         16        DO_FCALL                                      0          
         17        FREE                                                     $8
   16    18        NEW                                              $10     'Foo%5CCiz%5CCaz'
         19        DO_FCALL                                      0          
         20        FREE                                                     $10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.83 ms | 1395 KiB | 15 Q