3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = 'Europe/London'; preg_match('/([[:alpha:]\/]{3,30})(?!.*([[:alpha:]\/]{3,30}))/', $tz, $match); var_dump($match); $tz = 'America/New_York'; preg_match('/([[:alpha:]\/]{3,30})(?!.*([[:alpha:]\/]{3,30}))/', $tz, $match); var_dump($match);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W1BuN
function name:  (null)
number of ops:  19
compiled vars:  !0 = $tz, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Europe%2FLondon'
    3     1        INIT_FCALL                                               'preg_match'
          2        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'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9        ASSIGN                                                   !0, 'America%2FNew_York'
    7    10        INIT_FCALL                                               'preg_match'
         11        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'
         12        SEND_VAR                                                 !0
         13        SEND_REF                                                 !1
         14        DO_ICALL                                                 
    8    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.97 ms | 1395 KiB | 17 Q