3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '5e Dorpsstraat41-B'; $matchArr = array(); preg_match_all('/(\d+)/', $string, $matchArr); $houseNumber = array_pop($matchArr[0]); $houseNumberStartPos = strrpos($address, $houseNumber); $streetName = substr(0, $houseNumberStartPos, $address); print $streetName;

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.0140.00716.63
8.3.50.0050.01022.14
8.3.40.0070.00719.04
8.3.30.0070.00719.04
8.3.20.0000.00820.33
8.3.10.0000.00823.54
8.3.00.0000.00719.08
8.2.180.0070.00717.13
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00620.95
8.2.110.0050.00522.21
8.2.100.0110.00020.40
8.2.90.0000.00719.25
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0040.00420.11
8.2.30.0000.00718.39
8.2.20.0040.00418.02
8.2.10.0070.00018.20
8.2.00.0000.00817.88
8.1.280.0070.00725.92
8.1.270.0080.00023.83
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0040.00422.01
8.1.230.0070.00419.09
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.34
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0030.00518.66
8.1.160.0000.00821.88
8.1.150.0040.00418.72
8.1.140.0040.00417.48
8.1.130.0030.00317.77
8.1.120.0040.00417.52
8.1.110.0000.00717.59
8.1.100.0070.00017.43
8.1.90.0070.00017.58
8.1.80.0070.00017.61
8.1.70.0000.00817.53
8.1.60.0100.00017.63
8.1.50.0040.00417.50
8.1.40.0080.00017.59
8.1.30.0040.00417.65
8.1.20.0040.00417.66
8.1.10.0040.00417.55
8.1.00.0080.00017.66
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0000.00718.34
8.0.270.0000.00717.19
8.0.260.0030.00317.15
8.0.250.0000.00717.04
8.0.240.0030.00317.05
8.0.230.0000.00717.14
8.0.220.0070.00017.01
8.0.210.0040.00416.93
8.0.200.0000.00717.11
8.0.190.0000.00717.08
8.0.180.0080.00017.09
8.0.170.0040.00417.01
8.0.160.0000.00716.91
8.0.150.0030.00316.94
8.0.140.0040.00416.95
8.0.130.0000.00513.40
8.0.120.0060.00317.11
8.0.110.0040.00416.93
8.0.100.0050.00216.86
8.0.90.0000.00716.91
8.0.80.0070.00817.02
8.0.70.0000.00816.89
8.0.60.0000.00717.09
8.0.50.0040.00417.07
8.0.30.0100.01017.04
8.0.20.0110.00717.40
8.0.10.0070.00017.11
8.0.00.0120.00817.01
7.4.330.0050.00015.00
7.4.320.0030.00316.65
7.4.300.0030.00316.66
7.4.290.0030.00316.73
7.4.280.0080.00016.78
7.4.270.0050.00216.67
7.4.260.0000.00816.62
7.4.250.0040.00416.64
7.4.240.0060.00116.73
7.4.230.0030.00316.77
7.4.220.0070.01116.70
7.4.210.0070.00716.71
7.4.200.0000.00716.77
7.4.190.0040.00416.70
7.4.160.0030.01316.63
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0080.00916.71
7.4.120.0130.00616.78
7.4.110.0110.00616.91
7.4.100.0140.00316.53
7.4.90.0100.01016.73
7.4.80.0030.01319.39
7.4.70.0110.00516.73
7.4.60.0100.00716.57
7.4.50.0040.00016.46
7.4.40.0100.00616.73
7.4.30.0080.00816.73
7.4.00.0100.00615.04
7.3.330.0030.00313.41
7.3.320.0000.00513.20
7.3.310.0000.00816.39
7.3.300.0040.00416.50
7.3.290.0060.00916.43
7.3.280.0080.00816.46
7.3.270.0050.01117.40
7.3.260.0170.00016.71
7.3.250.0090.01116.55
7.3.240.0140.00416.53
7.3.230.0090.00916.48
7.3.210.0100.00716.62
7.3.200.0030.01319.39
7.3.190.0100.00716.53
7.3.180.0100.00616.46
7.3.170.0100.00616.88
7.3.160.0130.00316.76
7.3.120.0060.00915.18
7.2.330.0060.01216.77
7.2.320.0030.01316.61
7.2.310.0070.01016.62
7.2.300.0130.00316.53
7.2.290.0100.00716.80
7.1.70.0040.00417.33
7.1.60.0070.01719.70
7.1.50.0170.01017.09
7.1.00.0070.07322.42
7.0.200.0040.00417.05
7.0.140.0070.07022.08
7.0.60.0070.07719.91
7.0.50.0070.04317.90
7.0.40.0200.07020.11
7.0.30.0430.07020.11
7.0.20.0270.05320.02
7.0.10.0100.05020.14
7.0.00.0070.04020.14
5.6.280.0030.07320.90
5.6.210.0130.07320.66
5.6.200.0070.07718.08
5.6.190.0030.07020.43
5.6.180.0300.06320.40
5.6.170.0500.06720.52
5.6.160.0030.08720.52
5.6.150.0070.03718.16
5.6.140.0070.08318.17
5.6.130.0070.07718.18
5.6.120.0100.08021.02
5.6.110.0100.08021.00
5.6.100.0000.05321.13
5.6.90.0130.06320.94
5.6.80.0170.03320.40
5.5.350.0030.07020.36
5.5.340.0070.08017.91
5.5.330.0070.08320.46
5.5.320.0300.05320.27
5.5.310.0300.07720.28
5.5.300.0070.06018.01
5.5.290.0100.04018.01
5.5.280.0070.05320.79
5.5.270.0170.07320.75
5.5.260.0070.03720.83
5.5.250.0000.04720.54
5.5.240.2700.03720.04
5.4.450.0170.04719.57
5.4.440.0270.05019.43
5.4.430.0130.04719.45
5.4.420.0170.04719.40
5.4.410.0230.04019.41
5.4.400.0530.03019.24
5.4.390.0130.05019.09
5.4.380.0370.05018.77
5.4.370.0470.04718.71
5.4.360.0330.05318.49
5.4.350.0300.06718.45
5.4.340.0200.05718.44
5.4.320.0040.04012.45
5.4.310.0070.04112.45
5.4.300.0060.04512.45
5.4.290.0080.03612.45
5.4.280.0070.03512.34
5.4.270.0080.03612.35
5.4.260.0060.04012.34
5.4.250.0070.03812.34
5.4.240.0070.04212.34
5.4.230.0140.04612.34
5.4.220.0170.06612.34
5.4.210.0150.07412.34
5.4.200.0080.06012.34
5.4.190.0080.04412.34
5.4.180.0090.03612.34
5.4.170.0050.03912.34
5.4.160.0080.03412.34
5.4.150.0090.03412.34
5.4.140.0080.03412.02
5.4.130.0070.03412.01
5.4.120.0080.03411.97
5.4.110.0060.03511.96
5.4.100.0040.03711.97
5.4.90.0080.03411.96
5.4.80.0060.03711.97
5.4.70.0050.03511.96
5.4.60.0060.03511.96
5.4.50.0070.03511.96
5.4.40.0040.03811.95
5.4.30.0060.03711.95
5.4.20.0050.03611.95
5.4.10.0060.03511.95
5.4.00.0020.04011.43
5.3.290.0040.04612.80
5.3.280.0050.04212.71
5.3.270.0070.04312.72
5.3.260.0050.04312.72
5.3.250.0060.04512.72
5.3.240.0070.03512.72
5.3.230.0070.03612.71
5.3.220.0060.04712.68
5.3.210.0100.03912.68
5.3.200.0040.04212.68
5.3.190.0100.04612.68
5.3.180.0080.04012.67
5.3.170.0060.03712.67
5.3.160.0060.03612.67
5.3.150.0040.03912.68
5.3.140.0050.04712.66
5.3.130.0060.04712.66
5.3.120.0050.04212.66
5.3.110.0080.04112.66
5.3.100.0100.03312.12
5.3.90.0070.03612.09
5.3.80.0080.03412.08
5.3.70.0070.03512.08
5.3.60.0060.03612.06
5.3.50.0080.03412.00
5.3.40.0020.04012.00
5.3.30.0040.03611.94
5.3.20.0050.03611.72
5.3.10.0130.02811.69
5.3.00.0060.03611.68
5.2.170.0050.0309.17
5.2.160.0100.0249.18
5.2.150.0030.0329.18
5.2.140.0020.0339.17
5.2.130.0040.0299.14
5.2.120.0070.0279.13
5.2.110.0050.0309.14
5.2.100.0080.0299.14
5.2.90.0050.0289.14
5.2.80.0070.0329.13
5.2.70.0040.0469.14
5.2.60.0090.0299.09
5.2.50.0060.0349.05
5.2.40.0060.0289.04
5.2.30.0060.0409.01
5.2.20.0070.0289.00
5.2.10.0060.0308.94
5.2.00.0100.0348.80
5.1.60.0090.0358.08
5.1.50.0080.0398.07
5.1.40.0140.0348.05
5.1.30.0170.0528.41
5.1.20.0070.0398.43
5.1.10.0040.0468.15
5.1.00.0190.0728.15
5.0.50.0030.0386.63
5.0.40.0060.0256.49
5.0.30.0070.0446.30
5.0.20.0100.0246.27
5.0.10.0040.0196.25
5.0.00.0050.0356.25
4.4.90.0040.0164.78
4.4.80.0080.0164.75
4.4.70.0050.0144.75
4.4.60.0050.0204.75
4.4.50.0030.0224.77
4.4.40.0060.0384.71
4.4.30.0040.0164.76
4.4.20.0040.0234.84
4.4.10.0050.0214.85
4.4.00.0030.0474.76
4.3.110.0040.0264.67
4.3.100.0040.0254.66
4.3.90.0030.0234.63
4.3.80.0060.0424.58
4.3.70.0070.0194.63
4.3.60.0070.0194.63
4.3.50.0020.0254.63
4.3.40.0020.0344.54
4.3.30.0030.0213.29
4.3.20.0030.0193.27
4.3.10.0010.0163.23
4.3.00.0230.03014.24

preferences:
48 ms | 401 KiB | 5 Q