3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = '5e Dorpsstraat 41B'; $matchArr = array(); preg_match('/(\d+)/', $address, $matchArr); var_dump($matchArr); $number = array_pop($matchArr); $split = explode($number, $address); $lastPart = $number . array_pop($split); $firstPart = implode($number, $split); print 'First part: ' . $firstPart . "\n"; print 'Last part: ' . $lastPart . "\n";

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.00618.55
8.3.50.0100.01021.99
8.3.40.0150.00018.93
8.3.30.0060.00918.68
8.3.20.0000.00820.34
8.3.10.0040.00423.64
8.3.00.0040.00420.91
8.2.180.0120.00616.63
8.2.170.0040.01122.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0140.00021.04
8.2.110.0060.00321.18
8.2.100.0090.00317.84
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0080.00017.75
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0070.00319.94
8.2.30.0040.00418.10
8.2.20.0050.00317.76
8.2.10.0050.00218.15
8.2.00.0000.00717.89
8.1.280.0110.00025.92
8.1.270.0080.00023.94
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0050.00521.91
8.1.230.0110.00021.03
8.1.220.0080.00017.79
8.1.210.0060.00318.77
8.1.200.0030.00617.38
8.1.190.0030.00617.00
8.1.180.0080.00018.10
8.1.170.0040.00418.69
8.1.160.0000.00722.06
8.1.150.0080.00018.80
8.1.140.0040.00417.60
8.1.130.0070.00017.73
8.1.120.0040.00417.55
8.1.110.0000.00817.52
8.1.100.0040.00417.61
8.1.90.0000.00717.50
8.1.80.0000.00717.58
8.1.70.0080.00017.54
8.1.60.0000.00817.67
8.1.50.0050.00317.73
8.1.40.0050.00317.68
8.1.30.0000.00817.75
8.1.20.0060.00317.75
8.1.10.0060.00317.65
8.1.00.0040.00417.63
8.0.300.0040.00418.77
8.0.290.0030.00517.18
8.0.280.0030.00318.50
8.0.270.0050.00317.20
8.0.260.0040.00417.31
8.0.250.0030.00317.11
8.0.240.0000.00717.14
8.0.230.0000.00717.09
8.0.220.0030.00317.05
8.0.210.0000.00717.04
8.0.200.0000.00717.08
8.0.190.0040.00417.06
8.0.180.0000.00717.03
8.0.170.0080.00016.99
8.0.160.0070.00016.96
8.0.150.0000.00717.06
8.0.140.0040.00416.91
8.0.130.0050.00013.47
8.0.120.0000.00916.91
8.0.110.0040.00416.86
8.0.100.0000.00717.10
8.0.90.0060.00316.98
8.0.80.0120.00917.10
8.0.70.0040.00417.07
8.0.60.0040.00416.87
8.0.50.0040.00417.04
8.0.30.0150.01017.13
8.0.20.0060.01217.40
8.0.10.0030.00517.07
8.0.00.0090.01116.91
7.4.330.0060.00015.00
7.4.320.0000.00616.64
7.4.300.0000.00616.71
7.4.290.0000.00716.68
7.4.280.0000.00716.77
7.4.270.0040.00416.71
7.4.260.0030.00616.71
7.4.250.0000.00716.49
7.4.240.0040.00416.75
7.4.230.0070.00016.52
7.4.220.0140.00316.69
7.4.210.0130.00016.65
7.4.200.0000.00716.86
7.4.190.0080.00016.82
7.4.160.0060.01116.61
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0090.00816.57
7.4.120.0060.01216.75
7.4.110.0080.00916.75
7.4.100.0160.00616.75
7.4.90.0100.00716.50
7.4.80.0090.01019.39
7.4.70.0120.00416.60
7.4.60.0100.00716.58
7.4.50.0000.00816.57
7.4.40.0060.00916.82
7.4.30.0030.01316.53
7.4.10.0100.00515.00
7.4.00.0070.01114.97
7.3.330.0000.00813.14
7.3.320.0000.00613.25
7.3.310.0030.00316.35
7.3.300.0000.00816.43
7.3.290.0140.00016.53
7.3.280.0060.01316.44
7.3.270.0080.00817.40
7.3.260.0180.00616.46
7.3.250.0100.01016.55
7.3.240.0130.00316.56
7.3.230.0100.01616.66
7.3.210.0070.01116.59
7.3.200.0080.00819.39
7.3.190.0090.01316.64
7.3.180.0080.00816.31
7.3.170.0150.00616.40
7.3.160.0100.00616.36
7.3.130.0090.00914.91
7.3.120.0070.00715.02
7.3.110.0060.00715.17
7.3.100.0100.00514.90
7.3.90.0110.00415.05
7.3.80.0050.00715.14
7.3.70.0040.01115.09
7.3.60.0090.00615.02
7.3.50.0030.01114.93
7.3.40.0080.00714.99
7.3.30.0090.00414.88
7.3.20.0120.00316.85
7.3.10.0030.01116.79
7.3.00.0050.00716.78
7.2.330.0140.00316.87
7.2.320.0070.01516.77
7.2.310.0100.00716.78
7.2.300.0080.00916.75
7.2.290.0090.01216.83
7.2.260.0120.00615.19
7.2.250.0110.00515.35
7.2.240.0030.01015.29
7.2.230.0050.01015.07
7.2.220.0050.01215.25
7.2.210.0060.00815.49
7.2.200.0060.00515.27
7.2.190.0080.00615.11
7.2.180.0040.01015.13
7.2.170.0100.00715.08
7.2.160.0040.01114.93
7.2.150.0080.00516.70
7.2.140.0070.01016.95
7.2.130.0090.00616.92
7.2.120.0130.00617.12
7.2.110.0070.00717.20
7.2.100.0000.01117.08
7.2.90.0060.00917.23
7.2.80.0070.00716.89
7.2.70.0060.01117.14
7.2.60.0080.00317.05
7.2.50.0070.00416.96
7.2.40.0050.00816.76
7.2.30.0130.00616.99
7.2.20.0070.01017.20
7.2.10.0000.01216.95
7.2.00.0060.00917.28
7.1.330.0060.00815.91
7.1.320.0030.01015.94
7.1.310.0110.00515.93
7.1.300.0020.01115.87
7.1.290.0090.00615.92
7.1.280.0030.00815.85
7.1.270.0060.00715.98
7.1.260.0030.01015.80
7.1.250.0070.00715.93
7.1.240.0120.00415.81
7.1.230.0080.00315.96
7.1.220.0110.00415.89
7.1.210.0060.00615.82
7.1.200.0030.00615.89
7.1.190.0090.00915.81
7.1.180.0060.00615.94
7.1.170.0080.00815.74
7.1.160.0100.00315.59
7.1.150.0100.00315.86
7.1.140.0060.00815.75
7.1.130.0120.00615.74
7.1.120.0070.01015.74
7.1.110.0040.00715.93
7.1.100.0110.00315.68
7.1.90.0000.00915.96
7.1.80.0070.00315.92
7.1.70.0050.00616.50
7.1.60.0100.00717.83
7.1.50.0140.00725.31
7.1.40.0040.01415.77
7.1.30.0070.00715.80
7.1.20.0070.01015.94
7.1.10.0070.00715.63
7.1.00.0020.04719.05
7.0.330.0130.00315.55
7.0.320.0030.01015.10
7.0.310.0040.00815.47
7.0.300.0070.00315.46
7.0.290.0080.00815.55
7.0.280.0130.00315.57
7.0.270.0040.01115.55
7.0.260.0080.00415.27
7.0.250.0060.00915.36
7.0.240.0030.01015.41
7.0.230.0060.00315.58
7.0.220.0040.00815.54
7.0.210.0040.00815.87
7.0.200.0080.00216.22
7.0.190.0040.00715.34
7.0.180.0110.00315.68
7.0.170.0030.01015.50
7.0.160.0030.01015.80
7.0.150.0000.01215.52
7.0.140.0110.03518.75
7.0.130.0070.00715.66
7.0.120.0030.01015.43
7.0.110.0000.02818.62
7.0.100.0060.03118.73
7.0.90.0080.02518.66
7.0.80.0050.04518.71
7.0.70.0030.04318.73
7.0.60.0100.03818.55
7.0.50.0060.04118.66
7.0.40.0100.04016.51
7.0.30.0030.04916.69
7.0.20.0020.04616.72
7.0.10.0030.04716.68
7.0.00.0050.04516.75
5.6.400.0040.01414.21
5.6.390.0060.01214.09
5.6.380.0000.00814.00
5.6.370.0090.00314.55
5.6.360.0040.01114.37
5.6.350.0060.01314.23
5.6.340.0090.00614.27
5.6.330.0060.00914.36
5.6.320.0070.00714.14
5.6.310.0030.00614.32
5.6.300.0120.00314.39
5.6.290.0000.01614.51
5.6.280.0020.04217.62
5.6.270.0040.00814.10
5.6.260.0020.02417.46
5.6.250.0080.01917.40
5.6.240.0030.02417.50
5.6.230.0050.02017.51
5.6.220.0110.04217.42
5.6.210.0060.04117.46
5.6.200.0130.04017.47
5.6.190.0080.04317.43
5.6.180.0080.04317.57
5.6.170.0130.03717.42
5.6.160.0070.03317.55
5.6.150.0020.04617.51
5.6.140.0060.04517.53
5.6.130.0050.04917.51
5.6.120.0020.03917.46
5.6.110.0070.04317.57
5.6.100.0070.04517.32
5.6.90.0080.04117.55
5.6.80.0030.04417.21
5.6.70.0050.04617.24
5.6.60.0080.04017.09
5.6.50.0050.03817.20
5.6.40.0050.04017.06
5.6.30.0050.04217.11
5.6.20.0070.04817.19
5.6.10.0020.04117.36
5.6.00.0050.02817.04
5.5.380.0070.04415.82
5.5.370.0000.04315.80
5.5.360.0040.04515.78
5.5.350.0060.04015.78
5.5.340.0050.04216.19
5.5.330.0070.03916.20
5.5.320.0050.04615.97
5.5.310.0050.04116.11
5.5.300.0080.03516.25
5.5.290.0020.04516.21
5.5.280.0040.04016.06
5.5.270.0030.04316.09
5.5.260.0080.04215.97
5.5.250.0030.04516.01
5.5.240.0000.03715.89
5.5.230.0020.04215.70
5.5.220.0070.03715.63
5.5.210.0060.02215.63
5.5.200.0080.02315.69
5.5.190.0040.04215.54
5.5.180.0070.04215.87
5.5.170.0080.00713.83
5.5.160.0060.02515.62
5.5.150.0030.04115.82
5.5.140.0030.04015.60
5.5.130.0060.03315.66
5.5.120.0030.02515.85
5.5.110.0070.03715.49
5.5.100.0070.03215.85
5.5.90.0030.04315.74
5.5.80.0110.03315.60
5.5.70.0020.02515.63
5.5.60.0060.03815.87
5.5.50.0050.02615.59
5.5.40.0020.04615.96
5.5.30.0050.02515.55
5.5.20.0060.04115.73
5.5.10.0050.03915.75
5.5.00.0030.02715.78
5.4.450.0040.04215.25
5.4.440.0050.04015.15
5.4.430.0050.03915.14
5.4.420.0050.04315.31
5.4.410.0040.02715.15
5.4.400.0070.02515.09
5.4.390.0020.04115.06
5.4.380.0030.04014.84
5.4.370.0060.03515.11
5.4.360.0050.03715.05
5.4.350.0030.03814.91
5.4.340.0020.04014.90
5.4.330.0030.00311.05
5.4.320.0100.02814.96
5.4.310.0000.03915.10
5.4.300.0080.03614.99
5.4.290.0030.03915.01
5.4.280.0030.03615.16
5.4.270.0000.04314.96
5.4.260.0050.03814.78
5.4.250.0000.04414.86
5.4.240.0020.02815.03
5.4.230.0000.03514.99
5.4.220.0030.04214.98
5.4.210.0030.04214.89
5.4.200.0030.04315.01
5.4.190.0020.04215.19
5.4.180.0020.03915.08
5.4.170.0020.04214.96
5.4.160.0030.04214.85
5.4.150.0140.03514.92
5.4.140.0080.03513.75
5.4.130.0090.03013.56
5.4.120.0050.04213.51
5.4.110.0050.03913.84
5.4.100.0050.03813.56
5.4.90.0050.03513.72
5.4.80.0050.03513.54
5.4.70.0030.04013.70
5.4.60.0020.04113.70
5.4.50.0040.03713.74
5.4.40.0070.02713.69
5.4.30.0020.03613.54
5.4.20.0000.02613.63
5.4.10.0050.03713.59
5.4.00.0080.02513.46
5.3.290.0020.03912.44
5.3.280.0070.03812.54
5.3.270.0050.03812.49
5.3.260.0070.03812.51
5.3.250.0020.04212.59
5.3.240.0040.03012.50
5.3.230.0020.02512.57
5.3.220.0080.03712.50
5.3.210.0060.04012.34
5.3.200.0050.03712.36
5.3.190.0020.04012.47
5.3.180.0070.02712.50
5.3.170.0030.04012.58
5.3.160.0070.03812.35
5.3.150.0030.03012.53
5.3.140.0030.03912.53
5.3.130.0030.03812.45
5.3.120.0050.04412.46
5.3.110.0030.04212.36
5.3.100.0020.03512.21
5.3.90.0030.03712.28
5.3.80.0030.03812.26
5.3.70.0050.03412.18
5.3.60.0020.04212.19
5.3.50.0050.03412.20
5.3.40.0020.02912.17
5.3.30.0030.03611.99
5.3.20.0050.03211.86
5.3.10.0030.04211.85
5.3.00.0030.03311.78
5.2.170.0030.06011.14
5.2.160.0030.06011.09
5.2.150.0030.05311.15
5.2.140.0000.04011.09
5.2.130.0070.05711.11
5.2.120.0030.04011.09
5.2.110.0030.06011.11
5.2.100.0000.06011.05
5.2.90.0000.06011.06
5.2.80.0030.04311.04
5.2.70.0070.05711.09
5.2.60.0030.05710.96
5.2.50.0000.05310.95
5.2.40.0070.05011.06
5.2.30.0070.06010.92
5.2.20.0030.06310.91
5.2.10.0000.06710.75
5.2.00.0030.05710.71
5.1.60.0000.0479.81
5.1.50.0070.02710.16
5.1.40.0000.05010.22
5.1.30.0000.04010.41
5.1.20.0070.05310.28
5.1.10.0070.03010.01
5.1.00.0030.0539.98
5.0.50.0100.0379.67
5.0.40.0000.0479.67
5.0.30.0070.0579.67
5.0.20.0030.0409.67
5.0.10.0030.0479.67
5.0.00.0000.0639.67
4.4.90.0000.0309.67
4.4.80.0000.0339.67
4.4.70.0030.0339.67
4.4.60.0030.0279.67
4.4.50.0000.0339.67
4.4.40.0000.0509.67
4.4.30.0030.0309.67
4.4.20.0000.0339.67
4.4.10.0070.0279.67
4.4.00.0000.0339.67
4.3.110.0000.0379.67
4.3.100.0030.0309.67
4.3.90.0100.0239.67
4.3.80.0030.0509.67
4.3.70.0030.0309.67
4.3.60.0000.0339.67
4.3.50.0000.0379.67
4.3.40.0030.0509.67
4.3.30.0030.0339.67
4.3.20.0000.0379.67
4.3.10.0000.0379.67
4.3.00.0000.0339.67

preferences:
52.12 ms | 401 KiB | 5 Q