3v4l.org

run code in 300+ PHP versions simultaneously
<?php $delim = '/|:;+-_~'; $esc = join('|', array_map('preg_quote', str_split($delim), str_split(str_repeat(strlen($delim), '~')))); var_dump($esc);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MCdHO
function name:  (null)
number of ops:  26
compiled vars:  !0 = $delim, !1 = $esc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%7C%3A%3B%2B-_%7E'
    4     1        INIT_FCALL                                               'join'
          2        SEND_VAL                                                 '%7C'
          3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'preg_quote'
          5        INIT_FCALL                                               'str_split'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        INIT_FCALL                                               'str_split'
         10        INIT_FCALL                                               'str_repeat'
         11        STRLEN                                           ~4      !0
         12        SEND_VAL                                                 ~4
         13        SEND_VAL                                                 '%7E'
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        SEND_VAR                                                 $6
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                         $8      
         21        ASSIGN                                                   !1, $8
    6    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.71 ms | 1395 KiB | 23 Q