3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace test; class ArrayObject { public function __construct() { echo 'test'; } } var_dump(class_alias('test\\ArrayObject', 'ArrayObject', false));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B21CK
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_NS_FCALL_BY_NAME                                    'test%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'test%5Cclass_alias'
          2        SEND_VAL_EX                                              'test%5CArrayObject'
          3        SEND_VAL_EX                                              'ArrayObject'
          4        SEND_VAL_EX                                              <false>
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR_NO_REF_EX                                       $0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class test\ArrayObject:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B21CK
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'test'
   10     1      > RETURN                                                   null

End of function __construct

End of class test\ArrayObject.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.23 ms | 1385 KiB | 17 Q