3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass; $b = new $a; $c = new $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KKl4I
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        FETCH_CLASS                                   0  $6      !0
          4        NEW                                              $7      $6
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $7
    4     7        FETCH_CLASS                                   0  $10     !1
          8        NEW                                              $11     $10
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $11
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.61 ms | 1384 KiB | 13 Q