3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function __construct() { $object = null; if ($object === null) { get_class(); } else { get_class($object); } } } new MyClass();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nhhdl
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'MyClass'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class MyClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nhhdl
function name:  __construct
number of ops:  9
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, null
    7     1        TYPE_CHECK                                    2          !0
          2      > JMPZ                                                     ~2, ->6
    8     3    >   GET_CLASS                                        ~3      
          4        FREE                                                     ~3
    7     5      > JMP                                                      ->8
   11     6    >   GET_CLASS                                        ~4      !0
          7        FREE                                                     ~4
   13     8    > > RETURN                                                   null

End of function __construct

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.3 ms | 1448 KiB | 13 Q