3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1395 KiB | 17 Q