3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function ($class) { echo "Autoloading $class"; }); var_dump(class_exists('Foo')); eval('class Foo{} echo "defined Foo";'); class_alias('Foo', 'Bar'); var_dump(class_exists('Bar'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q4ala
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        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fq4ala%3A3%240'
    5     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'class_exists'
          6        SEND_VAL                                                 'Foo'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
    9    10        INCLUDE_OR_EVAL                                          'class+Foo%7B%7D+echo+%22defined+Foo%22%3B', EVAL
   11    11        INIT_FCALL                                               'class_alias'
         12        SEND_VAL                                                 'Foo'
         13        SEND_VAL                                                 'Bar'
         14        DO_ICALL                                                 
   13    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'class_exists'
         17        SEND_VAL                                                 'Bar'
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fq4ala%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q4ala
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'Autoloading+', !0
          3        ECHO                                                     ~1
    5     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fq4ala%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.87 ms | 1396 KiB | 21 Q