3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strs = ['%%%[[http://hello | world]] **bold**%%%', ' %%%[[http://hello | world]] **bold**%%%']; foreach ($strs as $str) { var_dump(preg_match('/^(\s{2,}).+/', $str)); var_dump(preg_match('/^\s*(```)/', $str)); var_dump(preg_match('/^\s*(```)(.*)(```)\s*$/', $str)); var_dump(preg_match('/```\s*$/', $str)); var_dump(preg_match('/^\s{2,}/', $str)); echo "--------------------\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 25
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 25
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/MTgPs
function name:  (null)
number of ops:  27
compiled vars:  !0 = $strs, !1 = $str
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1      > FE_RESET_R                                           $3      !0, ->25
          2    > > FE_FETCH_R                                                   $3, !1, ->25
    4     3    >   INIT_FCALL                                                   'var_dump'
          4        FRAMELESS_ICALL_2                preg_match          ~4      '%2F%5E%28%5Cs%7B2%2C%7D%29.%2B%2F', !1
          5        SEND_VAL                                                     ~4
          6        DO_ICALL                                                     
    5     7        INIT_FCALL                                                   'var_dump'
          8        FRAMELESS_ICALL_2                preg_match          ~6      '%2F%5E%5Cs%2A%28%60%60%60%29%2F', !1
          9        SEND_VAL                                                     ~6
         10        DO_ICALL                                                     
    6    11        INIT_FCALL                                                   'var_dump'
         12        FRAMELESS_ICALL_2                preg_match          ~8      '%2F%5E%5Cs%2A%28%60%60%60%29%28.%2A%29%28%60%60%60%29%5Cs%2A%24%2F', !1
         13        SEND_VAL                                                     ~8
         14        DO_ICALL                                                     
    7    15        INIT_FCALL                                                   'var_dump'
         16        FRAMELESS_ICALL_2                preg_match          ~10     '%2F%60%60%60%5Cs%2A%24%2F', !1
         17        SEND_VAL                                                     ~10
         18        DO_ICALL                                                     
    8    19        INIT_FCALL                                                   'var_dump'
         20        FRAMELESS_ICALL_2                preg_match          ~12     '%2F%5E%5Cs%7B2%2C%7D%2F', !1
         21        SEND_VAL                                                     ~12
         22        DO_ICALL                                                     
    9    23        ECHO                                                         '--------------------%0A'
    3    24      > JMP                                                          ->2
         25    >   FE_FREE                                                      $3
   10    26      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
202.5 ms | 3358 KiB | 14 Q