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 Strae 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.0090.00616.63
8.3.50.0110.00721.27
8.3.40.0120.00318.88
8.3.30.0110.00418.79
8.3.20.0000.00720.20
8.3.10.0000.00821.94
8.3.00.0000.00919.55
8.2.180.0120.00918.35
8.2.170.0070.00722.96
8.2.160.0030.01020.35
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0050.00517.75
8.2.110.0030.00622.38
8.2.100.0110.00018.03
8.2.90.0080.00019.35
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00421.38
8.2.30.0050.00319.95
8.2.20.0000.00817.98
8.2.10.0040.00418.04
8.2.00.0080.00018.08
8.1.280.0030.01425.92
8.1.270.0030.00620.24
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00321.43
8.1.230.0120.00017.58
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0030.00717.47
8.1.190.0000.00917.35
8.1.180.0050.00318.10
8.1.170.0030.00518.75
8.1.160.0000.00722.05
8.1.150.0000.00719.07
8.1.140.0050.00317.59
8.1.130.0070.00017.71
8.1.120.0040.00417.68
8.1.110.0040.00417.52
8.1.100.0050.00317.53
8.1.90.0040.00417.52
8.1.80.0030.00717.57
8.1.70.0000.00717.52
8.1.60.0080.00017.67
8.1.50.0000.00817.70
8.1.40.0040.00417.71
8.1.30.0080.00017.85
8.1.20.0040.00417.80
8.1.10.0060.00317.57
8.1.00.0030.00517.49
8.0.300.0050.00318.77
8.0.290.0050.00216.88
8.0.280.0030.00318.52
8.0.270.0040.00417.19
8.0.260.0000.00617.16
8.0.250.0000.00717.06
8.0.240.0030.00317.00
8.0.230.0070.00017.12
8.0.220.0000.00717.05
8.0.210.0000.00717.16
8.0.200.0000.00617.13
8.0.190.0030.00617.12
8.0.180.0080.00017.02
8.0.170.0000.00817.06
8.0.160.0050.00317.14
8.0.150.0040.00417.02
8.0.140.0040.00417.13
8.0.130.0000.00813.53
8.0.120.0060.00317.04
8.0.110.0050.00317.10
8.0.100.0040.00417.21
8.0.90.0040.00417.18
8.0.80.0090.00617.21
8.0.70.0000.00817.14
8.0.60.0040.00417.01
8.0.50.0000.00717.09
8.0.30.0130.00517.42
8.0.20.0080.01017.40
8.0.10.0000.00717.01
8.0.00.0100.00716.97
7.4.330.0020.00315.29
7.4.320.0070.00016.93
7.4.300.0060.00016.94
7.4.290.0030.00316.73
7.4.280.0000.00716.84
7.4.270.0000.00716.80
7.4.260.0030.00316.81
7.4.250.0040.00416.78
7.4.240.0040.00316.85
7.4.230.0030.00316.81
7.4.220.0090.01216.73
7.4.210.0060.00916.98
7.4.200.0030.00316.86
7.4.160.0070.01416.68
7.4.150.0150.00317.40
7.4.140.0070.01217.86
7.4.130.0110.00816.77
7.4.120.0120.00716.63
7.4.110.0100.00716.86
7.4.100.0110.01116.81
7.4.90.0140.00516.80
7.4.80.0110.00819.39
7.4.70.0080.00816.71
7.4.60.0030.01216.63
7.4.50.0000.00816.46
7.4.40.0030.01316.75
7.4.30.0120.00616.65
7.4.00.0060.01115.15
7.3.330.0000.00513.24
7.3.320.0000.00513.31
7.3.310.0030.00316.42
7.3.300.0040.00416.41
7.3.290.0110.00716.36
7.3.280.0140.00716.42
7.3.270.0150.00317.40
7.3.260.0120.00616.64
7.3.250.0140.00516.42
7.3.240.0070.01016.35
7.3.230.0070.01016.45
7.3.210.0030.01516.60
7.3.200.0130.00619.39
7.3.190.0100.00716.79
7.3.180.0080.00816.62
7.3.170.0060.01116.45
7.3.160.0040.01316.30
7.3.10.0070.00716.71
7.3.00.0100.00716.69
7.2.330.0030.01616.87
7.2.320.0170.00616.73
7.2.310.0100.00616.50
7.2.300.0150.00616.87
7.2.290.0030.01316.63
7.2.130.0140.00017.04
7.2.120.0080.00816.82
7.2.110.0070.00717.12
7.2.100.0120.00316.83
7.2.90.0040.00816.98
7.2.80.0030.01017.02
7.2.70.0000.01217.07
7.2.60.0100.00716.91
7.2.50.0070.01017.05
7.2.40.0110.00016.96
7.2.30.0090.00016.76
7.2.20.0000.01616.89
7.2.10.0080.00816.68
7.2.00.0020.01318.05
7.1.250.0080.00515.80
7.1.100.0000.01218.15
7.1.70.0100.00617.42
7.1.60.0110.01420.03
7.1.50.0170.00717.00
7.1.00.0000.08022.35
7.0.200.0030.00316.87
7.0.60.0030.08319.91
7.0.50.0070.08317.83
7.0.40.0070.05319.93
7.0.30.0570.06320.02
7.0.20.0270.07320.24
7.0.10.0030.04720.18
7.0.00.0100.08020.10
5.6.280.0030.05320.77
5.6.210.0070.07320.68
5.6.200.0070.03718.22
5.6.190.0000.04720.41
5.6.180.3200.04320.49
5.6.170.0470.05320.35
5.6.160.0130.07720.48
5.6.150.0070.06718.22
5.6.140.0170.07318.10
5.6.130.0030.09018.17
5.6.120.0070.04021.02
5.6.110.0030.09320.97
5.6.100.0030.05321.03
5.6.90.0100.08321.12
5.6.80.0100.07720.39
5.6.70.4630.03720.39
5.5.350.0100.07020.36
5.5.340.0100.07717.98
5.5.330.0070.08020.40
5.5.320.0270.05320.20
5.5.310.0330.06720.24
5.5.300.0170.06718.07
5.5.290.0030.08318.00
5.5.280.0130.08020.87
5.5.270.0100.06720.88
5.5.260.0070.06320.86
5.5.250.0130.08020.45
5.5.240.0230.06720.28
5.4.450.0030.05019.54
5.4.440.0030.03719.42
5.4.430.0030.03719.11
5.4.420.0030.03719.56
5.4.410.0030.03319.28
5.4.400.0070.03019.22
5.4.390.0000.04319.24
5.4.380.0000.04019.08
5.4.370.0000.03719.09
5.4.360.0070.03319.14
5.4.350.0000.04719.06
5.4.340.0000.04018.79
5.4.320.0070.03718.95
5.4.310.0000.04319.13
5.4.300.0030.03319.06
5.4.290.0000.03719.08
5.4.280.0000.03719.08
5.4.270.0000.03718.88
5.4.260.0000.03719.05
5.4.250.0000.04018.87
5.4.240.0030.04319.12
5.4.230.0000.04718.78
5.4.220.0000.07318.91
5.4.210.0100.04019.07
5.4.200.0070.05718.78
5.4.190.0100.06719.07
5.4.180.0100.04019.07
5.4.170.0030.08018.89
5.4.160.0070.07318.92
5.4.150.0100.07019.22
5.4.140.0030.07016.16
5.4.130.0000.06016.16
5.4.120.0070.06316.37
5.4.110.0070.04716.21
5.4.100.0030.07316.20
5.4.90.0000.07316.47
5.4.80.0070.05316.44

preferences:
40.06 ms | 401 KiB | 5 Q