3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '~^(?<address>(?<streetname>\h*\S.*?)\h*(?<housenumber>\d+\h*[A-Za-z]?))(?:/(?<stairs>\d+)(?=(?:/\d+){1,2}))?(?:/(?<floor>\d)(?=(?:/\d+)))?(?:/(?<door>\d+))?$~m'; $strings = [ "Lilienstr. 12a", "Leibnizstraße 36/28/2", "Prager Straße 14/3/1/4", "Guentherstr. 43 B", "Eberhard-Leibnitz Str. 1/7", "Schießstätte 7/7" ]; foreach ($strings as $string) { preg_match_all($re, $string, $matches, PREG_SET_ORDER); $address = array_filter($matches[0], "is_string", ARRAY_FILTER_USE_KEY); print_r($address); }

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.4.130.0090.00617.97
8.4.120.0120.00822.27
8.4.110.0070.00422.38
8.4.100.0110.01017.98
8.4.90.0120.00718.68
8.4.80.0110.00519.87
8.4.70.0120.00318.30
8.4.60.0100.00818.79
8.4.50.0100.00718.71
8.4.40.0160.00317.94
8.4.30.0080.00018.61
8.4.20.0070.01317.88
8.4.10.0000.00919.55
8.3.250.0020.00519.11
8.3.240.0070.00116.97
8.3.230.0100.00916.96
8.3.220.0060.00118.94
8.3.210.0090.00918.52
8.3.200.0080.00516.93
8.3.190.0070.01118.98
8.3.180.0040.00518.37
8.3.170.0180.00318.87
8.3.160.0130.00320.25
8.3.150.0110.00418.43
8.3.140.0060.01217.05
8.3.130.0000.01018.41
8.3.120.0110.00720.70
8.3.110.0100.00016.63
8.3.100.0000.00916.95
8.3.90.0050.00326.77
8.3.80.0090.00016.50
8.3.70.0030.01416.63
8.3.60.0140.00718.43
8.3.50.0110.00624.64
8.3.40.0080.00818.69
8.3.30.0120.00318.84
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0070.00220.70
8.2.280.0110.00818.66
8.2.270.0100.01019.28
8.2.260.0040.00416.51
8.2.250.0090.00017.24
8.2.240.0000.00817.04
8.2.230.0050.00320.94
8.2.220.0040.00824.06
8.2.210.0000.00826.77
8.2.200.0060.00318.42
8.2.190.0090.00616.75
8.2.180.0150.00625.92
8.2.170.0100.01018.89
8.2.160.0140.00022.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00019.44
8.2.110.0030.00720.41
8.2.100.0090.00317.84
8.2.90.0000.00818.03
8.2.80.0000.00818.05
8.2.70.0060.00317.88
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0030.00520.07
8.2.30.0040.00418.07
8.2.20.0000.00818.16
8.2.10.0000.00719.43
8.2.00.0040.00419.34
8.1.330.0090.00824.03
8.1.320.0150.00416.69
8.1.310.0060.00318.46
8.1.300.0050.00516.36
8.1.290.0100.00030.84
8.1.280.0030.01325.92
8.1.270.0040.00422.14
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0130.00020.66
8.1.230.0110.00020.97
8.1.220.0060.00317.76
8.1.210.0040.00418.93
8.1.200.0060.00317.25
8.1.190.0080.00017.60
8.1.180.0000.00818.67
8.1.170.0000.00718.96
8.1.160.0040.00418.85
8.1.150.0040.00418.98
8.1.140.0050.00318.93
8.1.130.0030.00320.24
8.1.120.0040.00417.64
8.1.110.0050.00617.64
8.1.100.0040.00417.61
8.1.90.0040.00417.62
8.1.80.0060.00317.59
8.1.70.0000.00717.59
8.1.60.0050.00317.78
8.1.50.0040.00417.71
8.1.40.0050.00317.64
8.1.30.0080.00317.87
8.1.20.0030.00617.71
8.1.10.0040.00417.78
8.1.00.0000.00917.68
8.0.300.0000.00819.98
8.0.290.0040.00416.84
8.0.280.0030.00618.38
8.0.270.0040.00418.17
8.0.260.0030.00320.23
8.0.250.0000.00717.05
8.0.240.0020.00517.04
8.0.230.0030.00316.98
8.0.220.0040.00417.06
8.0.210.0000.00716.94
8.0.200.0040.00417.04
8.0.190.0030.00617.11
8.0.180.0050.00317.01
8.0.170.0030.00716.93
8.0.160.0020.00517.05
8.0.150.0040.00416.90
8.0.140.0040.00416.90
8.0.130.0000.00613.52
8.0.120.0000.00816.91
8.0.110.0040.00416.94
8.0.100.0000.00716.92
8.0.90.0000.00717.09
8.0.80.0060.00916.96
8.0.70.0040.00416.94
8.0.60.0040.00417.07
8.0.50.0000.00716.90
8.0.30.0110.00617.39
8.0.20.0120.00817.19
8.0.10.0080.00017.13
8.0.00.0140.01117.11
7.4.330.0030.00315.55
7.4.320.0030.00316.65
7.4.300.0030.00316.71
7.4.290.0020.00516.72
7.4.280.0080.00016.71
7.4.270.0050.00416.63
7.4.260.0030.00316.71
7.4.250.0000.01016.68
7.4.240.0050.00216.85
7.4.230.0000.00716.90
7.4.220.0000.00716.80
7.4.210.0100.00916.85
7.4.200.0050.00316.72
7.4.130.0090.00916.70
7.4.120.0100.01016.72
7.4.110.0140.00316.55
7.4.100.0070.01016.50
7.4.90.0060.01116.67
7.4.80.0060.01216.73
7.4.70.0070.01016.63
7.4.60.0110.01116.51
7.4.50.0110.00816.77
7.4.40.0130.00316.69
7.4.30.0060.01216.36
7.4.20.0090.00916.62
7.4.10.0060.01216.78
7.4.00.0130.00616.67
7.3.330.0000.00716.58
7.3.320.0030.00313.36
7.3.310.0000.00816.54
7.3.300.0030.00316.55
7.3.290.0060.00916.38
7.3.280.0080.00616.41
7.3.260.0090.01216.66
7.3.230.0100.00616.68
7.3.210.0110.00816.46
7.3.200.0030.01816.42
7.3.190.0110.00816.52
7.3.180.0120.00616.71
7.3.170.0090.00916.79
7.3.160.0120.01016.60
7.3.150.0060.00916.56
7.3.140.0030.01316.55
7.3.130.0090.00916.64
7.3.120.0120.00916.77
7.3.110.0190.00416.66
7.3.100.0140.00916.40
7.3.90.0130.00716.66
7.3.80.0110.00516.83
7.3.70.0100.01316.52
7.3.60.0110.00816.61
7.3.50.0070.01116.32
7.3.40.0070.01116.58
7.3.30.0030.01316.53
7.3.20.0420.00716.59
7.3.10.0040.01416.38
7.3.00.0060.01216.28
7.2.330.0100.01016.75
7.2.320.0070.01116.65
7.2.310.0100.00916.68
7.2.300.0070.01116.99
7.2.290.0120.00616.52
7.2.280.0130.00516.75
7.2.270.0090.00916.79
7.2.260.0070.01116.80
7.2.250.0090.01216.68
7.2.240.0170.00716.70
7.2.230.0090.01016.72
7.2.220.0080.01316.68
7.2.210.0100.01016.80
7.2.200.0120.01216.94
7.2.190.0060.01216.68
7.2.180.0110.00816.73
7.2.170.0080.01116.65
7.2.160.0130.00316.73
7.2.150.0080.01116.89
7.2.140.0140.00616.83
7.2.130.0080.01116.72
7.2.120.0180.00016.79
7.2.110.0100.00716.86
7.2.100.0200.00016.75
7.2.90.0150.00416.77
7.2.80.0080.01016.73
7.2.70.0160.00316.77
7.2.60.0110.00716.84
7.2.50.0170.00016.75
7.2.40.0150.00616.78
7.2.30.0090.00916.95
7.2.20.0080.00916.71
7.2.10.0100.01416.84
7.2.00.0090.00916.80

preferences:
92.59 ms | 403 KiB | 5 Q