3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $x = 63; for ($x = 0; $x < 10000; $x++) { // $a[] = substr($x, 0, 1); // $a[] = substr($x, 1, 1); $x_arr = str_split($x); $a[] = $x_arr[0]; $a[] = $x_arr[1]; } echo count($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 4
Branch analysis from position: 17
Branch analysis from position: 4
filename:       /in/Qh8pD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $x, !2 = $x_arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 63
    4     2        ASSIGN                                                   !1, 0
          3      > JMP                                                      ->15
    8     4    >   INIT_FCALL                                               'str_split'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    9     8        FETCH_DIM_R                                      ~9      !2, 0
          9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  ~9
   10    11        FETCH_DIM_R                                      ~11     !2, 1
         12        ASSIGN_DIM                                               !0
         13        OP_DATA                                                  ~11
    4    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10000
         16      > JMPNZ                                                    ~13, ->4
   13    17    >   COUNT                                            ~14     !0
         18        ECHO                                                     ~14
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.08 ms | 1395 KiB | 15 Q