3v4l.org

run code in 500+ PHP versions simultaneously
<?php class a {} $a = new a; // object(a)#1 (0) {} var_dump($b = clone clone clone $a); // object(a)#2 (0) {} var_dump(new (new $a)); // object(a)#3 (0) {}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r2RsW
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   NEW                                                  $2      'a'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    7     3        INIT_FCALL                                                   'var_dump'
          4        CLONE                                                ~5      !0
          5        CLONE                                                ~6      ~5
          6        CLONE                                                ~7      ~6
          7        ASSIGN                                               ~8      !1, ~7
          8        SEND_VAL                                                     ~8
          9        DO_ICALL                                                     
   10    10        INIT_FCALL                                                   'var_dump'
         11        FETCH_CLASS                                       0  $10     !0
         12        NEW                                                  $11     $10
         13        DO_FCALL                                          0          
         14        FETCH_CLASS                                       0  $13     $11
         15        NEW                                                  $14     $13
         16        DO_FCALL                                          0          
         17        SEND_VAR                                                     $14
         18        DO_ICALL                                                     
   11    19      > RETURN                                                       1

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.09 ms | 1470 KiB | 14 Q