3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->text = "ans1"; $o2 = new stdClass; $o2->text = "ans2"; $o3 = new stdClass; $o3->text = "ans3"; print_r([$o,$o2,$o3]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vhoka
function name:  (null)
number of ops:  22
compiled vars:  !0 = $o, !1 = $o2, !2 = $o3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, 'text'
          4        OP_DATA                                                  'ans1'
    6     5        NEW                                              $7      'stdClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    7     8        ASSIGN_OBJ                                               !1, 'text'
          9        OP_DATA                                                  'ans2'
    9    10        NEW                                              $11     'stdClass'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !2, $11
   10    13        ASSIGN_OBJ                                               !2, 'text'
         14        OP_DATA                                                  'ans3'
   13    15        INIT_FCALL                                               'print_r'
         16        INIT_ARRAY                                       ~15     !0
         17        ADD_ARRAY_ELEMENT                                ~15     !1
         18        ADD_ARRAY_ELEMENT                                ~15     !2
         19        SEND_VAL                                                 ~15
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.41 ms | 1395 KiB | 15 Q