3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bbs = 'bbs/'; echo preg_replace('/^' . $bbs . '/i', '', 'bbs/1123/sadfas/'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V5csX
function name:  (null)
number of ops:  10
compiled vars:  !0 = $bbs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bbs%2F'
    3     1        INIT_FCALL                                               'preg_replace'
          2        CONCAT                                           ~2      '%2F%5E', !0
          3        CONCAT                                           ~3      ~2, '%2Fi'
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 ''
          6        SEND_VAL                                                 'bbs%2F1123%2Fsadfas%2F'
          7        DO_ICALL                                         $4      
          8        ECHO                                                     $4
    4     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.52 ms | 1394 KiB | 15 Q