3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array('ahoj', 'blb', 'bla', 'blabla', '1_22x44','1_22x44a', 'a1_22x44'); $pattern = '/^(?![0-9]_[0-9]*x[0-9]*$).+$/'; foreach ($test as $t) { echo $t.' : '.(preg_match($pattern, $t)?'yes':'no') ."\n\r"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/94jpn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $test, !1 = $pattern, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, '%2F%5E%28%3F%21%5B0-9%5D_%5B0-9%5D%2Ax%5B0-9%5D%2A%24%29.%2B%24%2F'
    6     2      > FE_RESET_R                                       $5      !0, ->17
          3    > > FE_FETCH_R                                               $5, !2, ->17
    7     4    >   CONCAT                                           ~6      !2, '+%3A+'
          5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $7      
          9      > JMPZ                                                     $7, ->12
         10    >   QM_ASSIGN                                        ~8      'yes'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~8      'no'
         13    >   CONCAT                                           ~9      ~6, ~8
         14        CONCAT                                           ~10     ~9, '%0A%0D'
         15        ECHO                                                     ~10
    6    16      > JMP                                                      ->3
         17    >   FE_FREE                                                  $5
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.75 ms | 1390 KiB | 16 Q