3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testi { public $temp; function __construct(string $testi){ $this->temp = $testi; } } $testiA = new Testi('A'); $testiB = new $testiA('B'); var_dump($testiA === $testiB);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NqPlO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $testiA, !1 = $testiB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'Testi'
          1        SEND_VAL_EX                                              'A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   12     4        FETCH_CLASS                                   0  $5      !0
          5        NEW                                              $6      $5
          6        SEND_VAL_EX                                              'B'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
   14     9        INIT_FCALL                                               'var_dump'
         10        IS_IDENTICAL                                     ~9      !0, !1
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

End of function __construct

End of class Testi.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.89 ms | 1395 KiB | 15 Q