3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = range(1, 32, 1); echo "<pre>";var_dump($t); $g1 = array_rand($t, 4); echo "<pre>";var_dump($g1); unset($t[$g1]); echo "<pre>";var_dump($t); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/10igm
function name:  (null)
number of ops:  25
compiled vars:  !0 = $t, !1 = $g1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 32
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    6     6        ECHO                                                     '%3Cpre%3E'
          7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'array_rand'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 4
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !1, $5
   10    15        ECHO                                                     '%3Cpre%3E'
         16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   11    19        UNSET_DIM                                                !0, !1
   12    20        ECHO                                                     '%3Cpre%3E'
         21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   14    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.01 ms | 1386 KiB | 19 Q