3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function($class) { var_dump('autoload '.$class); }); function test() { $m = new class_one(); } class class_one extends class_two { function __construct() { var_dump('I am '.__CLASS__); } } test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ei3Ek
function name:  (null)
number of ops:  8
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%2FEi3Ek%3A3%240'
    5     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   11     4        DECLARE_CLASS                                            'class_one', 'class_two'
   17     5        INIT_FCALL                                               'test'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ei3Ek
function name:  test
number of ops:  4
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'class_one'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3      > RETURN                                                   null

End of function test

Class class_one:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ei3Ek
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'I+am+class_one'
          2        DO_ICALL                                                 
   14     3      > RETURN                                                   null

End of function __construct

End of class class_one.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.55 ms | 1399 KiB | 18 Q