3v4l.org

run code in 500+ PHP versions simultaneously
<?php $numbers = [210, 11, 12]; $operators = ['-', '/']; $result = (array)($numbers[0] ?? []); foreach ($operators as $i => $result[]) { $result[] = $numbers[++$i]; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/dXBiu
function name:  (null)
number of ops:  22
compiled vars:  !0 = $numbers, !1 = $operators, !2 = $result, !3 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    6     2        FETCH_DIM_IS                                         ~6      !0, 0
          3        COALESCE                                             ~7      ~6
          4        QM_ASSIGN                                            ~7      <array>
          5        CAST                                              7  ~8      ~7
          6        ASSIGN                                                       !2, ~8
    7     7      > FE_RESET_R                                           $10     !1, ->17
          8    > > FE_FETCH_R                                           ~13     $10, $11, ->17
          9    >   ASSIGN_DIM                                                   !2
         10        OP_DATA                                                      $11
         11        ASSIGN                                                       !3, ~13
    8    12        PRE_INC                                              ~16     !3
         13        FETCH_DIM_R                                          ~17     !0, ~16
         14        ASSIGN_DIM                                                   !2
         15        OP_DATA                                                      ~17
    7    16      > JMP                                                          ->8
         17    >   FE_FREE                                                      $10
   10    18        INIT_FCALL                                                   'var_export'
         19        SEND_VAR                                                     !2
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.83 ms | 1862 KiB | 14 Q