3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tzs = array( 'Europe/London', 'America/New_York', 'America/Costa_Rica', ); foreach ( $tzs as $tz ) { preg_match('/([[:alpha:]\/]{3,30})(?!.*([[:alpha:]\/]{3,30}))/', $tz, $match); echo $tz . ' => ' . $match[0] . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/OkrYv
function name:  (null)
number of ops:  16
compiled vars:  !0 = $tzs, !1 = $tz, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $4      !0, ->14
          2    > > FE_FETCH_R                                               $4, !1, ->14
    9     3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%28%5B%5B%3Aalpha%3A%5D%5C%2F%5D%7B3%2C30%7D%29%28%3F%21.%2A%28%5B%5B%3Aalpha%3A%5D%5C%2F%5D%7B3%2C30%7D%29%29%2F'
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !2
          7        DO_ICALL                                                 
   10     8        CONCAT                                           ~6      !1, '+%3D%3E+'
          9        FETCH_DIM_R                                      ~7      !2, 0
         10        CONCAT                                           ~8      ~6, ~7
         11        CONCAT                                           ~9      ~8, '%0A'
         12        ECHO                                                     ~9
    8    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $4
   11    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.54 ms | 1395 KiB | 15 Q