3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "position=1&x=0.203125&y=0.23125&position=2&x=0.8427083333333333&y=0.415625&position=3&x=0.5510416666666667&y=0.4375&"; $a = preg_replace("/&$/","",$a); $array = array_chunk(preg_split("/&/",$a),3); echo json_encode($array, JSON_PRETTY_PRINT); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GT9ag
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'position%3D1%26x%3D0.203125%26y%3D0.23125%26position%3D2%26x%3D0.8427083333333333%26y%3D0.415625%26position%3D3%26x%3D0.5510416666666667%26y%3D0.4375%26'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%26%24%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    5     7        INIT_FCALL                                               'array_chunk'
          8        INIT_FCALL                                               'preg_split'
          9        SEND_VAL                                                 '%2F%26%2F'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        SEND_VAL                                                 3
         14        DO_ICALL                                         $6      
         15        ASSIGN                                                   !1, $6
    6    16        INIT_FCALL                                               'json_encode'
         17        SEND_VAR                                                 !1
         18        SEND_VAL                                                 128
         19        DO_ICALL                                         $8      
         20        ECHO                                                     $8
    7    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.34 ms | 1395 KiB | 21 Q