3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $x = 63; print_r(str_split($x)); die(); 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 = 79) Position 1 = -2
filename:       /in/SDAl4
function name:  (null)
number of ops:  27
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        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'str_split'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                                 
    5     8      > EXIT                                                     
    6     9*       ASSIGN                                                   !1, 0
         10*       JMP                                                      ->22
   10    11*       INIT_FCALL                                               'str_split'
         12*       SEND_VAR                                                 !1
         13*       DO_ICALL                                         $8      
         14*       ASSIGN                                                   !2, $8
   11    15*       FETCH_DIM_R                                      ~11     !2, 0
         16*       ASSIGN_DIM                                               !0
         17*       OP_DATA                                                  ~11
   12    18*       FETCH_DIM_R                                      ~13     !2, 1
         19*       ASSIGN_DIM                                               !0
         20*       OP_DATA                                                  ~13
    6    21*       PRE_INC                                                  !1
         22*       IS_SMALLER                                               !1, 10000
         23*       JMPNZ                                                    ~15, ->11
   15    24*       COUNT                                            ~16     !0
         25*       ECHO                                                     ~16
         26*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1400 KiB | 17 Q