3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "cool"; $tester = new stdClass(); $tester->$test = array(); for($i=0;$i<10;$i++){ array_push($tester->$test,$i); } print_r($tester);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/HnUUB
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test, !1 = $tester, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'cool'
    4     1        NEW                                              $4      'stdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    5     4        ASSIGN_OBJ                                               !1, !0
          5        OP_DATA                                                  <array>
    7     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->14
    8     8    >   INIT_FCALL                                               'array_push'
          9        FETCH_OBJ_W                                      $9      !1, !0
         10        SEND_REF                                                 $9
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    7    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, 10
         15      > JMPNZ                                                    ~12, ->8
   11    16    >   INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.37 ms | 1395 KiB | 17 Q