3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prices = ['0.0001','0.0000995','0.0000996','0.000099']; $price = array_rand($prices, 2); $arr = array('price'=>$price); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JOAXA
function name:  (null)
number of ops:  12
compiled vars:  !0 = $prices, !1 = $price, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_rand'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    7     6        INIT_ARRAY                                       ~6      !1, 'price'
          7        ASSIGN                                                   !2, ~6
    9     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.44 ms | 1394 KiB | 17 Q