3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "sortAfter=1&searchString=vsfweew"; list($e1,$sortAfter,$e2,$searchString) = preg_split("/=|&/",$str); $arr[$e1] = $sortAfter; $arr[$e2] = $searchString; print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/McA9l
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str, !1 = $e1, !2 = $sortAfter, !3 = $e2, !4 = $searchString, !5 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'sortAfter%3D1%26searchString%3Dvsfweew'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%3D%7C%26%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        FETCH_LIST_R                                     $8      $7, 0
          6        ASSIGN                                                   !1, $8
          7        FETCH_LIST_R                                     $10     $7, 1
          8        ASSIGN                                                   !2, $10
          9        FETCH_LIST_R                                     $12     $7, 2
         10        ASSIGN                                                   !3, $12
         11        FETCH_LIST_R                                     $14     $7, 3
         12        ASSIGN                                                   !4, $14
         13        FREE                                                     $7
    6    14        ASSIGN_DIM                                               !5, !1
         15        OP_DATA                                                  !2
    7    16        ASSIGN_DIM                                               !5, !3
         17        OP_DATA                                                  !4
    8    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !5
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.79 ms | 1002 KiB | 15 Q