3v4l.org

run code in 500+ PHP versions simultaneously
<?php $range = range(1,200); Shuffle($range); $random = array_slice($range,0,20); Var_dump($random);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fI9WZ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $range, !1 = $random
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     1
          2        SEND_VAL                                                     200
          3        DO_ICALL                                             $2      
          4        ASSIGN                                                       !0, $2
    4     5        INIT_FCALL                                                   'shuffle'
          6        SEND_REF                                                     !0
          7        DO_ICALL                                                     
    5     8        INIT_FCALL                                                   'array_slice'
          9        SEND_VAR                                                     !0
         10        SEND_VAL                                                     0
         11        SEND_VAL                                                     20
         12        DO_ICALL                                             $5      
         13        ASSIGN                                                       !1, $5
    6    14        INIT_FCALL                                                   'var_dump'
         15        SEND_VAR                                                     !1
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.17 ms | 2258 KiB | 17 Q