3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.37 ms | 1395 KiB | 19 Q