3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($s=[a,d,h,s],$p=0;$p<4;$p++)for($c=1;$c<14;)$a[]=$s[$p].++$c;print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 11
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 13
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 11
Branch analysis from position: 23
Branch analysis from position: 11
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 13
Branch analysis from position: 20
Branch analysis from position: 13
filename:       /in/OGMcZ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $s, !1 = $p, !2 = $c, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   FETCH_CONSTANT                                   ~4      'a'
          1        INIT_ARRAY                                       ~5      ~4
          2        FETCH_CONSTANT                                   ~6      'd'
          3        ADD_ARRAY_ELEMENT                                ~5      ~6
          4        FETCH_CONSTANT                                   ~7      'h'
          5        ADD_ARRAY_ELEMENT                                ~5      ~7
          6        FETCH_CONSTANT                                   ~8      's'
          7        ADD_ARRAY_ELEMENT                                ~5      ~8
          8        ASSIGN                                                   !0, ~5
          9        ASSIGN                                                   !1, 0
         10      > JMP                                                      ->21
         11    >   ASSIGN                                                   !2, 1
         12      > JMP                                                      ->18
         13    >   FETCH_DIM_R                                      ~13     !0, !1
         14        PRE_INC                                          ~14     !2
         15        CONCAT                                           ~15     ~13, ~14
         16        ASSIGN_DIM                                               !3
         17        OP_DATA                                                  ~15
         18    >   IS_SMALLER                                               !2, 14
         19      > JMPNZ                                                    ~16, ->13
         20    >   PRE_INC                                                  !1
         21    >   IS_SMALLER                                               !1, 4
         22      > JMPNZ                                                    ~18, ->11
         23    >   INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1401 KiB | 15 Q