3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '~^(?<address>(?<streetname>.*?)(?<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.0110.00918.16
8.4.120.0110.01124.17
8.4.110.0050.00424.36
8.4.100.0130.00619.07
8.4.90.0130.00720.70
8.4.80.0070.00218.82
8.4.70.0100.01020.48
8.4.60.0080.00720.24
8.4.50.0040.00718.54
8.4.40.0030.00617.80
8.4.30.0100.01018.54
8.4.20.0100.01017.91
8.4.10.0030.00619.63
8.3.250.0130.00819.05
8.3.240.0120.00417.41
8.3.230.0100.00716.86
8.3.220.0090.01018.83
8.3.210.0040.00716.62
8.3.200.0030.00616.97
8.3.190.0060.00418.97
8.3.180.0140.00719.03
8.3.170.0070.01319.10
8.3.160.0140.00316.71
8.3.150.0040.00416.89
8.3.140.0000.01916.48
8.3.130.0030.00618.46
8.3.120.0050.00319.07
8.3.110.0050.00318.41
8.3.100.0060.00318.38
8.3.90.0070.00326.77
8.3.80.0060.00316.88
8.3.70.0190.00318.43
8.3.60.0090.00916.75
8.3.50.0120.00924.68
8.3.40.0150.00618.62
8.3.30.0080.00818.97
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.290.0120.00716.62
8.2.280.0160.00418.44
8.2.270.0110.00717.15
8.2.260.0090.00917.01
8.2.250.0080.00016.99
8.2.240.0060.00316.44
8.2.230.0040.00420.94
8.2.220.0000.01024.06
8.2.210.0030.00626.77
8.2.200.0000.00916.75
8.2.190.0090.00916.63
8.2.180.0120.00925.92
8.2.170.0070.00719.06
8.2.160.0090.00622.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00721.27
8.2.110.0060.00320.30
8.2.100.0040.00719.82
8.2.90.0000.00818.09
8.2.80.0000.00819.30
8.2.70.0000.00817.88
8.2.60.0030.00517.78
8.2.50.0080.00018.05
8.2.40.0060.00318.34
8.2.30.0040.00418.04
8.2.20.0000.00718.17
8.2.10.0000.00719.46
8.2.00.0000.00719.24
8.1.330.0100.00922.11
8.1.320.0160.00416.42
8.1.310.0110.00716.67
8.1.300.0060.00318.15
8.1.290.0000.01130.84
8.1.280.0120.00625.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0110.00019.38
8.1.230.0040.00722.67
8.1.220.0000.00817.74
8.1.210.0080.00418.77
8.1.200.0030.00617.47
8.1.190.0050.00517.47
8.1.180.0040.00418.10
8.1.170.0040.00418.83
8.1.160.0080.00018.93
8.1.150.0050.00218.84
8.1.140.0000.00818.91
8.1.130.0030.00320.08
8.1.120.0030.00617.62
8.1.110.0000.00817.63
8.1.100.0040.00417.51
8.1.90.0040.00417.63
8.1.80.0000.00817.54
8.1.70.0030.00317.62
8.1.60.0030.00617.66
8.1.50.0000.00717.69
8.1.40.0040.00417.57
8.1.30.0030.00517.72
8.1.20.0040.00417.84
8.1.10.0030.00517.69
8.1.00.0000.00917.57
8.0.300.0040.00420.23
8.0.290.0000.00816.88
8.0.280.0000.00720.23
8.0.270.0080.00018.22
8.0.260.0000.00620.23
8.0.250.0000.00817.14
8.0.240.0070.00016.99
8.0.230.0030.00317.14
8.0.220.0000.00717.08
8.0.210.0050.00216.93
8.0.200.0000.00717.15
8.0.190.0040.00417.10
8.0.180.0040.00417.11
8.0.170.0030.00616.98
8.0.160.0000.00716.99
8.0.150.0080.00016.95
8.0.140.0000.00716.96
8.0.130.0030.00313.49
8.0.120.0000.00816.96
8.0.110.0040.00417.09
8.0.100.0050.00316.89
8.0.90.0040.00416.93
8.0.80.0060.00817.04
8.0.70.0000.00716.96
8.0.60.0000.00816.96
8.0.50.0040.00417.08
8.0.30.0000.01617.22
8.0.20.0120.01117.38
8.0.10.0050.00217.19
8.0.00.0260.00316.73
7.4.330.0050.00015.55
7.4.320.0000.00616.73
7.4.300.0060.00016.82
7.4.290.0070.00016.77
7.4.280.0000.00816.75
7.4.270.0030.00316.78
7.4.260.0000.00513.39
7.4.250.0050.00316.70
7.4.240.0070.00016.75
7.4.230.0030.00316.72
7.4.220.0040.00316.61
7.4.210.0080.00616.81
7.4.200.0030.00316.64
7.4.130.0120.00716.67
7.4.120.0220.00316.69
7.4.110.0130.00416.94
7.4.100.0100.00716.95
7.4.90.0210.00516.61
7.4.80.0160.00916.43
7.4.70.0040.01816.51
7.4.60.0080.01616.41
7.4.50.0170.00516.57
7.4.40.0110.01116.43
7.4.30.0150.01116.50
7.4.20.0110.01116.39
7.4.10.0130.00916.55
7.4.00.0210.00316.53
7.3.330.0040.00416.34
7.3.320.0030.00313.31
7.3.310.0030.00316.35
7.3.300.0040.00316.48
7.3.290.0090.00616.45
7.3.260.0180.00316.75
7.3.230.0030.01316.68
7.3.210.0190.00516.50
7.3.200.0170.00616.37
7.3.190.0150.00916.35
7.3.180.0140.01516.35
7.3.170.0160.00816.52
7.3.160.0180.00616.44
7.3.150.0110.01116.43
7.3.140.0110.01116.48
7.3.130.0270.00616.58
7.3.120.0170.01716.49
7.3.110.0310.00316.44
7.3.100.0170.01516.45
7.3.90.0150.01416.55
7.3.80.0260.00416.54
7.3.70.0230.01016.60
7.3.60.0250.00616.76
7.3.50.0150.01216.55
7.3.40.0170.00816.56
7.3.30.0140.00916.40
7.3.20.0130.00816.59
7.3.10.0140.01416.53
7.3.00.0120.01216.47
7.2.330.0160.00816.61
7.2.320.0180.00516.74
7.2.310.0180.00616.82
7.2.300.0200.00416.75
7.2.290.0170.00716.76
7.2.280.0200.00416.61
7.2.270.0180.00916.56
7.2.260.0220.01316.79
7.2.250.0190.01016.93
7.2.240.0200.01316.87
7.2.230.0170.01616.90
7.2.220.0200.01216.91
7.2.210.0290.00416.72
7.2.200.0250.00916.99
7.2.190.0200.02316.77
7.2.180.0140.00716.70
7.2.170.0040.01716.85
7.2.160.0100.01316.76
7.2.150.0130.00916.73
7.2.140.0140.00816.82
7.2.130.0200.00316.76
7.2.120.0100.01016.58
7.2.110.0210.00416.86
7.2.100.0110.01116.76
7.2.90.0360.00316.80
7.2.80.0200.00816.83
7.2.70.0220.00816.98
7.2.60.0240.00516.91
7.2.50.0190.00816.60
7.2.40.0200.00716.81
7.2.30.0230.00316.74
7.2.20.0200.00616.89
7.2.10.0170.01416.68
7.2.00.0210.01216.87

preferences:
210.09 ms | 403 KiB | 5 Q