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"; } } echo "toto";
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/PODXv
function name:  (null)
number of ops:  7
compiled vars:  none
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    >   ECHO                                                     'toto'
          6      > RETURN                                                   1

Class StringDeprecated:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PODXv
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:
163.36 ms | 1394 KiB | 15 Q