3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '(?:;?[a-z\d+#.-]+)+'; // Borrowed from @Hamza. $tags =<<<TAGS gggd hfhfghg;hfhdfh fgjfgjgf;hfhdfh;hfhdfh fgjgfj;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh;hfhdfh TAGS; var_dump(preg_match_all('/'.$pattern.'/', $tags)); if (preg_match('/'.$pattern.'/', $tags)) { var_dump(substr_count($tags, ';')); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 25
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/vH0A8
function name:  (null)
number of ops:  26
compiled vars:  !0 = $pattern, !1 = $tags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%28%3F%3A%3B%3F%5Ba-z%5Cd%2B%23.-%5D%2B%29%2B'
    4     1        ASSIGN                                                   !1, 'gggd%0Ahfhfghg%3Bhfhdfh%0Afgjfgjgf%3Bhfhdfh%3Bhfhdfh%0Afgjgfj%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%0Ahfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%0Ahfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%0Ahfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%0Ahfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh%3Bhfhdfh'
   15     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match_all'
          4        CONCAT                                           ~4      '%2F', !0
          5        CONCAT                                           ~5      ~4, '%2F'
          6        SEND_VAL                                                 ~5
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
   16    11        INIT_FCALL                                               'preg_match'
         12        CONCAT                                           ~8      '%2F', !0
         13        CONCAT                                           ~9      ~8, '%2F'
         14        SEND_VAL                                                 ~9
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $10     
         17      > JMPZ                                                     $10, ->25
   17    18    >   INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'substr_count'
         20        SEND_VAR                                                 !1
         21        SEND_VAL                                                 '%3B'
         22        DO_ICALL                                         $11     
         23        SEND_VAR                                                 $11
         24        DO_ICALL                                                 
   18    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.57 ms | 1395 KiB | 21 Q