3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.71 ms | 1395 KiB | 15 Q