3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PC { } class Part { } $part = new Part(); $pc = new PC(); $part->name = 'CPU'; $pc->arr[] = $part; $part->name = 'GPU'; $pc->arr[] = $part; print_r($pc);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QsabL
function name:  (null)
number of ops:  20
compiled vars:  !0 = $part, !1 = $pc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Part'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        NEW                                              $5      'PC'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   17     6        ASSIGN_OBJ                                               !0, 'name'
          7        OP_DATA                                                  'CPU'
   18     8        FETCH_OBJ_W                                      $9      !1, 'arr'
          9        ASSIGN_DIM                                               $9
         10        OP_DATA                                                  !0
   19    11        ASSIGN_OBJ                                               !0, 'name'
         12        OP_DATA                                                  'GPU'
   20    13        FETCH_OBJ_W                                      $12     !1, 'arr'
         14        ASSIGN_DIM                                               $12
         15        OP_DATA                                                  !0
   22    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Class PC: [no user functions]
Class Part: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.71 ms | 1395 KiB | 15 Q