3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (PHP_VERSION_ID < 70000) { class_alias('StringDeprecated', 'String'); } class StringDeprecated { public function __construct() { echo "hello"; } } $str = new String();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/pLPl9
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                     <false>, ->5
    4     1    >   INIT_FCALL                                               'class_alias'
          2        SEND_VAL                                                 'StringDeprecated'
          3        SEND_VAL                                                 'String'
          4        DO_ICALL                                                 
   13     5    >   NEW                                              $2      'String'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $2
          8      > RETURN                                                   1

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

End of function __construct

End of class StringDeprecated.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.5 ms | 1394 KiB | 15 Q