3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = time(true); $arr = array(1,2,3,4,5,6,7,8,9,0); foreach ($arr as $id => $val) { $arr[$id] = $val++; } echo time(true) - $time;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/HtsjR
function name:  (null)
number of ops:  19
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        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        ASSIGN                                                   !1, <array>
    6     5      > FE_RESET_R                                       $7      !1, ->12
          6    > > FE_FETCH_R                                       ~8      $7, !2, ->12
          7    >   ASSIGN                                                   !3, ~8
    7     8        POST_INC                                         ~11     !2
          9        ASSIGN_DIM                                               !1, !3
         10        OP_DATA                                                  ~11
    6    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $7
    9    13        INIT_FCALL                                               'time'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $12     
         16        SUB                                              ~13     $12, !0
         17        ECHO                                                     ~13
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1395 KiB | 15 Q