3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($j = 0; $j < 10; $j ++) { $a = 1; echo $a + $a ++; // may print either 2 or 3 } echo "\n"; for ($j = 0; $j < 10; $j ++) { $array = array(); $i = 1; $array[$i] = $i++; var_dump($array); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
Branch analysis from position: 12
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/shcR4
function name:  (null)
number of ops:  24
compiled vars:  !0 = $j, !1 = $a, !2 = $array, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
    4     2    >   ASSIGN                                                   !1, 1
    5     3        POST_INC                                         ~6      !1
          4        ADD                                              ~7      !1, ~6
          5        ECHO                                                     ~7
    3     6        PRE_INC                                                  !0
          7    >   IS_SMALLER                                               !0, 10
          8      > JMPNZ                                                    ~9, ->2
    8     9    >   ECHO                                                     '%0A'
   10    10        ASSIGN                                                   !0, 0
         11      > JMP                                                      ->21
   11    12    >   ASSIGN                                                   !2, <array>
   12    13        ASSIGN                                                   !3, 1
   13    14        POST_INC                                         ~14     !3
         15        ASSIGN_DIM                                               !2, !3
         16        OP_DATA                                                  ~14
   14    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
   10    20        PRE_INC                                                  !0
         21    >   IS_SMALLER                                               !0, 10
         22      > JMPNZ                                                    ~17, ->12
   15    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.01 ms | 1395 KiB | 15 Q