3v4l.org

run code in 300+ PHP versions simultaneously
<?php $settings['timestamp'] = time(); $urlSafeParams = preg_replace("/%5B\d+%5D/", "%5B%5D", http_build_query($settings)); print $urlSafeParams;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/drE4N
function name:  (null)
number of ops:  15
compiled vars:  !0 = $settings, !1 = $urlSafeParams
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN_DIM                                               !0, 'timestamp'
          3        OP_DATA                                                  $3
    5     4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%255B%5Cd%2B%255D%2F'
          6        SEND_VAL                                                 '%255B%255D'
          7        INIT_FCALL                                               'http_build_query'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    8    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.77 ms | 1398 KiB | 19 Q