3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ClientAddress = array("5 street name","35230 Village"); foreach ( $ClientAddress as $address ) { $AdOk = preg_match("/^([0-9a-zA-Z-, '\\n]+)(\\d{5})([, ]+)([0-9a-zA-Z-, '\\n]+)$/iu", $address, $match); var_dump($address, $AdOk, $match); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/j4il9
function name:  (null)
number of ops:  17
compiled vars:  !0 = $ClientAddress, !1 = $address, !2 = $AdOk, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $5      !0, ->15
          2    > > FE_FETCH_R                                               $5, !1, ->15
    5     3    >   INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5E%28%5B0-9a-zA-Z-%2C+%27%5Cn%5D%2B%29%28%5Cd%7B5%7D%29%28%5B%2C+%5D%2B%29%28%5B0-9a-zA-Z-%2C+%27%5Cn%5D%2B%29%24%2Fiu'
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !3
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
    4    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $5
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.26 ms | 998 KiB | 15 Q