3v4l.org

run code in 300+ 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 = 40
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 40
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
filename:       /in/MTgPs
function name:  (null)
number of ops:  42
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, ->40
          2    > > FE_FETCH_R                                               $3, !1, ->40
    4     3    >   INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%5E%28%5Cs%7B2%2C%7D%29.%2B%2F'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F%5E%5Cs%2A%28%60%60%60%29%2F'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
    6    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'preg_match'
         19        SEND_VAL                                                 '%2F%5E%5Cs%2A%28%60%60%60%29%28.%2A%29%28%60%60%60%29%5Cs%2A%24%2F'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $8      
         22        SEND_VAR                                                 $8
         23        DO_ICALL                                                 
    7    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'preg_match'
         26        SEND_VAL                                                 '%2F%60%60%60%5Cs%2A%24%2F'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $10     
         29        SEND_VAR                                                 $10
         30        DO_ICALL                                                 
    8    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'preg_match'
         33        SEND_VAL                                                 '%2F%5E%5Cs%7B2%2C%7D%2F'
         34        SEND_VAR                                                 !1
         35        DO_ICALL                                         $12     
         36        SEND_VAR                                                 $12
         37        DO_ICALL                                                 
    9    38        ECHO                                                     '--------------------%0A'
    3    39      > JMP                                                      ->2
         40    >   FE_FREE                                                  $3
   10    41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.62 ms | 1443 KiB | 15 Q