3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PromoteConstructorProperty { public function __construct( public string $var ) { } } $bool = class_exists(PromoteConstructorProperty::class);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4cMW4
function name:  (null)
number of ops:  5
compiled vars:  !0 = $bool
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'PromoteConstructorProperty'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
          4      > RETURN                                                   1

Class PromoteConstructorProperty:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4cMW4
function name:  __construct
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        ASSIGN_OBJ                                               'var'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function __construct

End of class PromoteConstructorProperty.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.23 ms | 1398 KiB | 15 Q