3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/ (?x) # free-spacing modifier ^ # start of the line [[:space:][:punct:]]* # ignore any leading trash (?P<street>[[:alpha:][:space:]]+[[:alpha:]]) # street name (any letter from any language) [[:space:][:punct:]]* # separator (?P<house> # house group [[:digit:]] # must start with the digit [[:digit:][:alpha:][:space:][:punct:]]* # any continue with digit, letter, space or punctuation (if necessary) ) [[:space:][:punct:]]* # ignore any trailing trash (not working) $ # end of the line /u'; $sample = 'Potsdamer Straße 124-126'; echo (int)preg_match( $pattern, $sample, $matches).PHP_EOL; print_r($matches);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00316.63
8.3.50.0090.00821.39
8.3.40.0140.00719.04
8.3.30.0120.00318.68
8.3.20.0050.00320.20
8.3.10.0040.00421.66
8.3.00.0070.00319.79
8.2.180.0070.01418.41
8.2.170.0210.00022.96
8.2.160.0040.01120.47
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0110.00017.75
8.2.110.0030.00722.41
8.2.100.0120.00018.09
8.2.90.0040.00419.26
8.2.80.0050.00317.97
8.2.70.0030.00517.75
8.2.60.0060.00617.93
8.2.50.0050.00318.07
8.2.40.0040.00421.24
8.2.30.0000.00819.94
8.2.20.0000.00818.05
8.2.10.0000.00818.09
8.2.00.0000.00718.07
8.1.280.0070.00725.92
8.1.270.0080.00820.23
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00021.50
8.1.230.0090.00317.67
8.1.220.0080.00017.76
8.1.210.0100.00018.77
8.1.200.0090.00017.50
8.1.190.0080.00017.47
8.1.180.0090.00018.10
8.1.170.0040.00418.61
8.1.160.0000.00722.05
8.1.150.0080.00019.03
8.1.140.0030.00517.55
8.1.130.0030.00317.84
8.1.120.0000.00717.61
8.1.110.0030.00517.56
8.1.100.0040.00417.66
8.1.90.0070.00017.69
8.1.80.0000.00917.65
8.1.70.0040.00417.63
8.1.60.0080.00017.64
8.1.50.0050.00317.59
8.1.40.0080.00017.59
8.1.30.0000.00817.71
8.1.20.0030.00617.70
8.1.10.0000.00817.62
8.1.00.0000.00817.44
8.0.300.0070.00018.77
8.0.290.0070.00016.88
8.0.280.0070.00018.34
8.0.270.0050.00317.22
8.0.260.0000.00717.27
8.0.250.0070.00017.18
8.0.240.0000.00717.14
8.0.230.0070.00017.14
8.0.220.0030.00317.20
8.0.210.0040.00417.17
8.0.200.0030.00317.23
8.0.190.0080.00017.21
8.0.180.0040.00417.01
8.0.170.0050.00316.94
8.0.160.0000.00817.06
8.0.150.0050.00316.95
8.0.140.0040.00416.94
8.0.130.0080.00013.49
8.0.120.0050.00317.17
8.0.110.0000.00717.01
8.0.100.0050.00317.04
8.0.90.0020.00517.07
8.0.80.0080.00817.12
8.0.70.0000.00817.16
8.0.60.0000.00717.16
8.0.50.0040.00416.99
8.0.30.0120.00617.30
8.0.20.0130.00617.40
8.0.10.0040.00417.27
8.0.00.0090.01116.95
7.4.330.0050.00015.12
7.4.320.0000.00616.79
7.4.300.0030.00316.88
7.4.290.0000.00716.79
7.4.280.0050.00316.78
7.4.270.0030.00316.71
7.4.260.0070.00016.81
7.4.250.0000.00816.84
7.4.240.0020.00516.82
7.4.230.0070.00016.95
7.4.220.0070.01116.80
7.4.210.0120.00316.91
7.4.200.0080.00016.69
7.4.160.0030.01616.71
7.4.150.0120.00617.40
7.4.140.0110.00917.86
7.4.130.0110.01116.78
7.4.120.0110.01216.79
7.4.110.0140.00316.67
7.4.100.0140.00416.71
7.4.90.0100.00716.76
7.4.80.0110.01119.39
7.4.70.0120.00316.78
7.4.60.0100.00616.78
7.4.50.0050.00316.80
7.4.40.0070.01116.62
7.4.30.0180.00616.69
7.4.00.0100.00715.38
7.3.330.0030.00313.20
7.3.320.0050.00013.20
7.3.310.0030.00316.50
7.3.300.0030.00316.46
7.3.290.0110.00516.37
7.3.280.0090.00816.44
7.3.270.0160.01017.40
7.3.260.0150.00316.35
7.3.250.0140.00316.63
7.3.240.0090.00616.26
7.3.230.0130.00416.58
7.3.210.0100.00716.61
7.3.200.0110.00719.39
7.3.190.0000.01616.63
7.3.180.0120.00316.45
7.3.170.0100.01016.38
7.3.160.0150.00316.52
7.2.330.0140.00316.66
7.2.320.0130.01016.63
7.2.310.0110.00616.69
7.2.300.0130.01016.80
7.2.290.0040.01316.84
7.2.00.0060.00319.51
7.1.100.0000.01318.14
7.1.70.0100.00317.17
7.1.60.0170.00720.03
7.1.50.0040.02116.77
7.1.00.0070.07322.47
7.0.200.0030.00716.78
7.0.60.0130.05020.00
7.0.50.0000.06317.80
7.0.40.0070.08020.26
7.0.30.0470.05320.22
7.0.20.0300.08020.35
7.0.10.0100.05720.19
7.0.00.0130.07320.32
5.6.280.0030.06021.10
5.6.210.0070.05320.74
5.6.200.0030.08718.15
5.6.190.0070.09020.32
5.6.180.4830.05020.41
5.6.170.0130.04720.45
5.6.160.0000.05320.41
5.6.150.0070.07718.11
5.6.140.0070.08018.07
5.6.130.0100.07718.04
5.6.120.0030.07721.14
5.6.110.0030.05320.97
5.6.100.0030.08721.01
5.6.90.0100.09320.95
5.6.80.0100.08320.35
5.6.70.4270.04020.38
5.5.350.0100.02720.38
5.5.340.0130.07318.02
5.5.330.0030.07320.14
5.5.320.0200.04020.28
5.5.310.0330.05320.33
5.5.300.0130.07318.02
5.5.290.0070.04318.00
5.5.280.0100.08320.86
5.5.270.0000.04320.76
5.5.260.0200.05320.66
5.5.250.0100.07720.61
5.5.240.0270.03020.27
5.4.450.0570.07719.40
5.4.440.0500.05319.39
5.4.430.0500.06319.28
5.4.420.0430.05319.23
5.4.410.0470.05319.27
5.4.400.0500.04719.09
5.4.390.0500.05319.23
5.4.380.0500.05019.21
5.4.370.0600.05019.18
5.4.360.0470.06018.91
5.4.350.0430.06719.22
5.4.340.0400.06319.13
5.4.320.0470.05319.23
5.4.310.0470.04719.18
5.4.300.0330.06319.21
5.4.290.0530.06019.12
5.4.280.0370.06719.05
5.4.270.0470.05318.77
5.4.260.0500.04319.18
5.4.250.0470.05019.12
5.4.240.0470.05018.91
5.4.230.0670.04319.07
5.4.220.0700.05019.08
5.4.210.0470.04718.81
5.4.200.0500.04316.55
5.4.190.0500.05018.89
5.4.180.0670.05319.15
5.4.170.0600.06318.80
5.4.160.0330.06318.79
5.4.150.0570.05319.03
5.4.140.0570.06316.44
5.4.130.0600.05316.43
5.4.120.0670.05716.30
5.4.110.0600.04316.52
5.4.100.0630.04716.50
5.4.90.0400.05716.55
5.4.80.0500.04716.35
5.4.70.0400.06016.40
5.4.60.0500.04316.57
5.4.50.0530.04316.46
5.4.40.0530.04316.34
5.4.30.0530.05016.31
5.4.20.0400.05316.35
5.4.10.0430.05016.16
5.4.00.0430.05015.90

preferences:
46.27 ms | 401 KiB | 5 Q