3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[download] 28.8% of 1.51M at 171.30k/s ETA 00:06'; [, $percent, , $size, ] = explode(' ', $string, 5); var_export(['percent' => $percent, 'size' => $size]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JNlFA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $percent, !2 = $size
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Bdownload%5D+28.8%25+of+1.51M+at+171.30k%2Fs+ETA+00%3A06'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 5
          5        DO_ICALL                                         $4      
          6        FETCH_LIST_R                                     $5      $4, 1
          7        ASSIGN                                                   !1, $5
          8        FETCH_LIST_R                                     $7      $4, 3
          9        ASSIGN                                                   !2, $7
         10        FREE                                                     $4
    5    11        INIT_FCALL                                               'var_export'
         12        INIT_ARRAY                                       ~9      !1, 'percent'
         13        ADD_ARRAY_ELEMENT                                ~9      !2, 'size'
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.29 ms | 1399 KiB | 17 Q