3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "56s/62b/56b - 42b/45b/26s"; $input = "/56s/62b/56b-42b/45b/26s"; $input = str_replace("-", "/", $input); // preg_match("/(?<=#).*?(?=#)/", "1232#hello world#", $match); // preg_match("/(?<=\/).*?(?=#)/", "1232#/hello world#", $match); // preg_match("/(?<=\/).*?(?=(\/|\-))/", $input, $match); preg_match("/(?<=\/).*(?=\/)/", $input, $match); print_r($match) // preg_match("/^.+?\](.+)$/is" , $string_text, $match); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cZrdW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $input, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '56s%2F62b%2F56b+-+42b%2F45b%2F26s'
    3     1        ASSIGN                                                   !0, '%2F56s%2F62b%2F56b-42b%2F45b%2F26s'
    4     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAL                                                 '-'
          4        SEND_VAL                                                 '%2F'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    9     8        INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%2F%28%3F%3C%3D%5C%2F%29.%2A%28%3F%3D%5C%2F%29%2F'
         10        SEND_VAR                                                 !0
         11        SEND_REF                                                 !1
         12        DO_ICALL                                                 
   10    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.82 ms | 1386 KiB | 19 Q