3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randArray = array(); for ($i = 1; $i <= 100; $i++) { $randArray[] = rand(1,100); } echo '<pre>'; print_r(array_count_values($randArray)); echo '</pre>'; ?>
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 = 62) Position 1 = -2
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/sf60p
function name:  (null)
number of ops:  21
compiled vars:  !0 = $randArray, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->10
    6     3    >   INIT_FCALL                                               'rand'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 100
          6        DO_ICALL                                         $5      
          7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  $5
    5     9        PRE_INC                                                  !1
         10    >   IS_SMALLER_OR_EQUAL                                      !1, 100
         11      > JMPNZ                                                    ~7, ->3
    8    12    >   ECHO                                                     '%3Cpre%3E'
    9    13        INIT_FCALL                                               'print_r'
         14        INIT_FCALL                                               'array_count_values'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
   11    19        ECHO                                                     '%3C%2Fpre%3E'
   13    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.54 ms | 1395 KiB | 19 Q