3v4l.org

run code in 300+ PHP versions simultaneously
<?php //heredoc $data = <<<__DATA__ ddd_DDD foo_FOO foo_FOD foo_bar FOO_foo ccc_cCc ddd_ddd __DATA__; $pattern = '~^([a-z]{3})_(?=[A-Z]{3})(?i:\1)$~'; echo "<pre>"; //foreach(preg_split('~[\r\n]+~', $data) as $key => $line){ foreach(explode("\n", $data) as $key => $line){ echo $key . " => " . $line . " => " . (preg_match( $pattern, $line, $matches) === 1 ? "true" : "false") . "<br>"; } echo "</pre>";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 27
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 27
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/IltMZ
function name:  (null)
number of ops:  30
compiled vars:  !0 = $data, !1 = $pattern, !2 = $line, !3 = $key, !4 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ddd_DDD%0Afoo_FOO%0Afoo_FOD%0Afoo_bar%0AFOO_foo%0Accc_cCc%0Addd_ddd'
   13     1        ASSIGN                                                   !1, '%7E%5E%28%5Ba-z%5D%7B3%7D%29_%28%3F%3D%5BA-Z%5D%7B3%7D%29%28%3Fi%3A%5C1%29%24%7E'
   15     2        ECHO                                                     '%3Cpre%3E'
   18     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7      > FE_RESET_R                                       $8      $7, ->27
          8    > > FE_FETCH_R                                       ~9      $8, !2, ->27
          9    >   ASSIGN                                                   !3, ~9
   19    10        CONCAT                                           ~11     !3, '+%3D%3E+'
         11        CONCAT                                           ~12     ~11, !2
         12        CONCAT                                           ~13     ~12, '+%3D%3E+'
         13        INIT_FCALL                                               'preg_match'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !2
         16        SEND_REF                                                 !4
         17        DO_ICALL                                         $14     
         18        IS_IDENTICAL                                             $14, 1
         19      > JMPZ                                                     ~15, ->22
         20    >   QM_ASSIGN                                        ~16     'true'
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~16     'false'
         23    >   CONCAT                                           ~17     ~13, ~16
         24        CONCAT                                           ~18     ~17, '%3Cbr%3E'
         25        ECHO                                                     ~18
   18    26      > JMP                                                      ->8
         27    >   FE_FREE                                                  $8
   21    28        ECHO                                                     '%3C%2Fpre%3E'
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.29 ms | 1401 KiB | 17 Q