3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlKey = 'dfbhkjdsfhsdkfkj-565576-786.html'; $oldUrlKey = null; if (preg_match('/^.*-[0-9]+(-[0-9]+)\.html$/', $urlKey, $matches)) { $oldUrlKey = str_replace($matches[1], '', $urlKey); } echo $urlKey; echo '<br>' .$oldUrlKey;

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.0160.00316.88
8.3.50.0120.00618.29
8.3.40.0080.00818.67
8.3.30.0110.00418.88
8.3.20.0040.00419.00
8.3.10.0000.00818.85
8.3.00.0090.00019.63
8.2.180.0140.00718.54
8.2.170.0090.00622.96
8.2.160.0080.00818.91
8.2.150.0030.00624.18
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0090.00017.90
8.2.110.0040.00722.37
8.2.100.0030.00917.97
8.2.90.0060.00318.16
8.2.80.0040.00418.05
8.2.70.0040.00417.88
8.2.60.0030.00618.16
8.2.50.0000.00817.93
8.2.40.0060.00319.82
8.2.30.0050.00317.81
8.2.20.0100.00017.95
8.2.10.0000.00717.82
8.2.00.0040.00417.77
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00923.88
8.1.230.0070.00422.63
8.1.220.0080.00017.74
8.1.210.0100.00018.77
8.1.200.0060.00317.48
8.1.190.0090.00017.36
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0020.00518.92
8.1.150.0100.00018.73
8.1.140.0000.00817.54
8.1.130.0040.00417.55
8.1.120.0060.00317.57
8.1.110.0000.00817.51
8.1.100.0040.00417.56
8.1.90.0030.00517.46
8.1.80.0040.00417.50
8.1.70.0000.00717.52
8.1.60.0000.00817.68
8.1.50.0040.00417.66
8.1.40.0070.00017.51
8.1.30.0080.00017.73
8.1.20.0050.00317.77
8.1.10.0060.00317.71
8.1.00.0040.00417.53
8.0.300.0050.00319.77
8.0.290.0060.00316.88
8.0.280.0030.00518.58
8.0.270.0000.00717.33
8.0.260.0000.00716.93
8.0.250.0060.00317.12
8.0.240.0030.00617.13
8.0.230.0060.00317.11
8.0.220.0030.00617.09
8.0.210.0000.00717.03
8.0.200.0060.00017.09
8.0.190.0030.00517.04
8.0.180.0040.00417.10
8.0.170.0050.00316.96
8.0.160.0040.00417.11
8.0.150.0080.00016.95
8.0.140.0050.00516.91
8.0.130.0030.00313.51
8.0.120.0000.01016.98
8.0.110.0040.00417.02
8.0.100.0040.00417.08
8.0.90.0040.00416.94
8.0.80.0160.00616.95
8.0.70.0040.00416.80
8.0.60.0040.00416.96
8.0.50.0040.00416.79
8.0.30.0120.00917.13
8.0.20.0130.00617.13
8.0.10.0000.00717.19
8.0.00.0070.01216.96
7.4.330.0050.00013.11
7.4.320.0000.00616.69
7.4.300.0000.00716.75
7.4.290.0070.00016.55
7.4.280.0050.00216.68
7.4.270.0000.00716.77
7.4.260.0000.00613.42
7.4.250.0060.00316.58
7.4.240.0040.00416.68
7.4.230.0030.00616.65
7.4.220.0030.01716.74
7.4.210.0080.00816.70
7.4.200.0000.00716.76
7.4.190.0000.00716.75
7.4.160.0030.01316.67
7.4.150.0100.00716.84
7.4.140.0070.01717.86
7.4.130.0030.01416.70
7.4.120.0110.01116.72
7.4.110.0080.01616.71
7.4.100.0110.01116.54
7.4.90.0120.00916.86
7.4.80.0110.00619.39
7.4.70.0130.00316.73
7.4.60.0120.00416.54
7.4.50.0040.00016.75
7.4.40.0040.00816.70
7.4.30.0080.00816.62
7.4.00.0060.00914.96
7.3.330.0000.00713.28
7.3.320.0030.00313.23
7.3.310.0040.00416.38
7.3.300.0060.00016.47
7.3.290.0060.00716.48
7.3.280.0100.01016.36
7.3.270.0150.00316.37
7.3.260.0070.01016.70
7.3.240.0030.01516.77
7.3.230.0090.00916.69
7.3.210.0150.00316.42
7.3.200.0160.00016.59
7.3.190.0080.01216.42
7.3.180.0090.01416.78
7.3.170.0090.00616.48
7.3.160.0030.01316.50
7.3.120.0070.01115.04
7.3.10.0070.00716.61
7.3.00.0070.01016.93
7.2.330.0070.01116.86
7.2.320.0120.01216.92
7.2.310.0060.01816.67
7.2.300.0100.00616.74
7.2.290.0030.01516.89
7.2.130.0090.00617.33
7.2.120.0100.00317.09
7.2.110.0080.00817.25
7.2.100.0030.01016.81
7.2.90.0110.00417.21
7.2.80.0110.00416.99
7.2.70.0170.00017.19
7.2.60.0000.01117.03
7.2.50.0070.00417.16
7.2.40.0090.00316.93
7.2.30.0030.01017.33
7.2.20.0060.00617.32
7.2.10.0060.00616.87
7.2.00.0000.01416.82
7.1.250.0030.01315.95
7.1.100.0030.00818.31
7.1.70.0040.00417.14
7.1.60.0100.01419.21
7.1.50.0090.01217.22
7.1.00.0030.07722.32
7.0.200.0030.00716.75
7.0.140.0000.07022.01
7.0.120.0070.07022.13
7.0.60.0070.08719.91
7.0.50.0070.03717.83
7.0.40.0000.05717.74
7.0.30.0070.08317.80
7.0.20.0100.08017.68
7.0.10.0030.07017.80
7.0.00.0070.08017.72
5.6.280.0030.07021.12
5.6.210.0100.05320.76
5.6.200.0030.04018.09
5.6.190.0070.08018.16
5.6.180.0000.05018.22
5.6.170.0070.08018.16
5.6.160.0130.07718.11
5.6.150.0100.06718.21
5.6.140.0030.07318.15
5.6.130.0030.04318.21
5.6.120.0070.04018.20
5.6.110.0030.08718.18
5.6.100.0070.07318.18
5.6.90.0100.07718.13
5.6.80.0100.08017.49
5.6.70.0070.07317.57
5.6.60.0030.08017.57
5.6.50.0070.04017.50
5.6.40.0070.08017.54
5.6.30.0170.06717.53
5.6.20.0070.04017.55
5.6.10.0100.03317.50
5.6.00.0130.07017.44
5.5.350.0270.07320.52
5.5.340.0030.04017.96
5.5.330.0130.04017.98
5.5.320.0030.08717.91
5.5.310.0070.04718.00
5.5.300.0230.06017.95
5.5.290.0100.07317.91
5.5.280.0000.09017.91
5.5.270.0070.05717.88
5.5.260.0170.03717.97
5.5.250.0100.07717.77
5.5.240.0130.07017.37
5.5.230.0100.07717.40
5.5.220.0070.05717.32
5.5.210.0030.08017.29
5.5.200.0170.07017.30
5.5.190.0100.07717.36
5.5.180.0100.06317.27
5.5.160.0030.08017.32
5.5.150.0030.07317.29
5.5.140.0070.08017.29
5.5.130.0070.04017.30
5.5.120.0030.07017.33
5.5.110.0130.07317.32
5.5.100.0170.04317.14
5.5.90.0070.06317.14
5.5.80.0030.06717.25
5.5.70.0170.05017.11
5.5.60.0030.08017.31
5.5.50.0070.04317.20
5.5.40.0070.07317.15
5.5.30.0070.05017.11
5.5.20.0030.04317.25
5.5.10.0130.07017.18
5.5.00.0030.06717.12
5.4.450.0100.03319.34
5.4.440.0100.06719.43
5.4.430.0030.05719.44
5.4.420.0170.03719.27
5.4.410.0070.03719.18
5.4.400.0130.07019.26
5.4.390.0030.08018.89
5.4.380.0030.08018.98
5.4.370.0000.05318.92
5.4.360.0070.07719.21
5.4.350.0130.06019.09
5.4.340.0100.05719.04
5.4.320.0070.07018.89
5.4.310.0070.07319.01
5.4.300.0130.05319.09
5.4.290.0100.05319.09
5.4.280.0100.07718.98
5.4.270.0170.07019.20
5.4.260.0070.07718.98
5.4.250.0130.06718.98
5.4.240.0070.07319.25
5.4.230.0070.04719.02
5.4.220.0000.08719.11
5.4.210.0070.06718.98
5.4.200.0000.04318.97
5.4.190.0130.07319.11
5.4.180.0100.03719.13
5.4.170.0070.07319.11
5.4.160.0100.07019.02
5.4.150.0170.06718.99
5.4.140.0000.06016.37
5.4.130.0030.08016.25
5.4.120.0100.06316.27
5.4.110.0000.05016.23
5.4.100.0070.07016.24
5.4.90.0000.07716.27
5.4.80.0070.04016.26
5.4.70.0000.04316.29
5.4.60.0100.07316.29
5.4.50.0030.08016.23
5.4.40.0070.07316.41
5.4.30.0030.05016.33
5.4.20.0070.05716.22
5.4.10.0070.05316.22
5.4.00.0030.07315.73
5.3.290.0000.08014.74
5.3.280.0000.05014.53
5.3.270.0100.04714.57
5.3.260.0070.07714.68
5.3.250.0100.07014.42
5.3.240.0030.06714.68
5.3.230.0070.07714.42
5.3.220.0030.04314.34
5.3.210.0200.06314.64
5.3.200.0100.07314.64
5.3.190.0070.05314.50
5.3.180.0070.05314.50
5.3.170.0030.07714.50
5.3.160.0130.07314.38
5.3.150.0000.04314.52
5.3.140.0070.06014.53
5.3.130.0000.04314.46
5.3.120.0130.04314.50
5.3.110.0100.06014.51
5.3.100.0170.05713.97
5.3.90.0100.07313.95
5.3.80.0100.07713.97
5.3.70.0100.07313.95
5.3.60.0100.07013.75
5.3.50.0030.04713.88
5.3.40.0000.05313.88
5.3.30.0100.07013.84
5.3.20.0100.06713.65
5.3.10.0070.07313.59
5.3.00.0100.06713.57
5.2.170.0000.05311.29
5.2.160.0030.04711.08
5.2.150.0000.06011.06
5.2.140.0070.04310.96
5.2.130.0000.05311.24
5.2.120.0030.06711.25
5.2.110.0030.05711.05
5.2.100.0230.04011.05
5.2.90.0070.06310.88
5.2.80.0070.05310.86
5.2.70.0100.04311.04
5.2.60.0000.04011.08
5.2.50.0030.04010.96
5.2.40.0030.02710.94
5.2.30.0100.04310.89
5.2.20.0100.05310.96
5.2.10.0070.05010.89
5.2.00.0000.06010.64
5.1.60.0030.0539.97
5.1.50.0070.05710.06
5.1.40.0000.04710.02
5.1.30.0000.03010.17
5.1.20.0030.04710.38
5.1.10.0070.05310.04
5.1.00.0070.05710.09
5.0.50.0030.0438.61
5.0.40.0030.0408.38
5.0.30.0030.0608.15
5.0.20.0070.0138.14
5.0.10.0030.0508.37
5.0.00.0000.0708.20
4.4.90.0000.0277.66
4.4.80.0000.0377.66
4.4.70.0000.0237.66
4.4.60.0030.0277.66
4.4.50.0000.0377.66
4.4.40.0070.0507.66
4.4.30.0000.0407.66
4.4.20.0030.0277.66
4.4.10.0070.0337.66
4.4.00.0000.0407.66
4.3.110.0000.0377.66
4.3.100.0030.0207.66
4.3.90.0000.0307.66
4.3.80.0030.0507.66
4.3.70.0070.0207.66
4.3.60.0030.0207.66
4.3.50.0000.0377.66
4.3.40.0030.0337.66
4.3.30.0000.0207.66
4.3.20.0000.0407.66
4.3.10.0030.0337.66
4.3.00.0000.0377.66

preferences:
47.36 ms | 401 KiB | 5 Q