3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.7 ms | 999 KiB | 15 Q