3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = time(); $arr = array(1,2,3,4,5,6,7,8,9,0); foreach ($arr as $id => $val) { $arr[$id] = $val++; } echo time() - $time;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/6Agv3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $time, !1 = $arr, !2 = $val, !3 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    4     3        ASSIGN                                                   !1, <array>
    6     4      > FE_RESET_R                                       $7      !1, ->11
          5    > > FE_FETCH_R                                       ~8      $7, !2, ->11
          6    >   ASSIGN                                                   !3, ~8
    7     7        POST_INC                                         ~11     !2
          8        ASSIGN_DIM                                               !1, !3
          9        OP_DATA                                                  ~11
    6    10      > JMP                                                      ->5
         11    >   FE_FREE                                                  $7
    9    12        INIT_FCALL                                               'time'
         13        DO_ICALL                                         $12     
         14        SUB                                              ~13     $12, !0
         15        ECHO                                                     ~13
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.75 ms | 1386 KiB | 15 Q