3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="prijs=0,209&orderby=price&order=undefined&posts_per_page=undefined"; $repl=['/=/', '/,/', '/&/']; $with=['[', '],[', ']],[']; $str='[' . preg_replace($repl, $with, $str) . ']'; var_dump(eval($str));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gmr1E
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $repl, !2 = $with
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'prijs%3D0%2C209%26orderby%3Dprice%26order%3Dundefined%26posts_per_page%3Dundefined'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        CONCAT                                           ~7      '%5B', $6
          9        CONCAT                                           ~8      ~7, '%5D'
         10        ASSIGN                                                   !0, ~8
    9    11        INIT_FCALL                                               'var_dump'
         12        INCLUDE_OR_EVAL                                  $10     !0, EVAL
         13        SEND_VAR                                                 $10
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.86 ms | 1394 KiB | 17 Q