3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wordlist = 'systematic,gear,synthesis,mysterious'; $words = explode(',', $wordlist); foreach($words as $word) { if (preg_match('~(?=[^s]*s)(?=[^m]*m)(?=[^e]*e)~', $word)) echo '<br/>' . $word; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/dC9c8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $wordlist, !1 = $words, !2 = $word
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'systematic%2Cgear%2Csynthesis%2Cmysterious'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6      > FE_RESET_R                                       $6      !1, ->16
          7    > > FE_FETCH_R                                               $6, !2, ->16
    7     8    >   INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%7E%28%3F%3D%5B%5Es%5D%2As%29%28%3F%3D%5B%5Em%5D%2Am%29%28%3F%3D%5B%5Ee%5D%2Ae%29%7E'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $7      
         12      > JMPZ                                                     $7, ->15
    8    13    >   CONCAT                                           ~8      '%3Cbr%2F%3E', !2
         14        ECHO                                                     ~8
    6    15    > > JMP                                                      ->7
         16    >   FE_FREE                                                  $6
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.11 ms | 1395 KiB | 17 Q