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[0]); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Weqca
function name:  (null)
number of ops:  13
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        FETCH_DIM_R                                      ~6      !1, 0
          7        INIT_ARRAY                                       ~7      ~6, 'price'
          8        ASSIGN                                                   !2, ~7
    9     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.99 ms | 1394 KiB | 17 Q