3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urlKey = 'ftrcvgbhnjk-2000-4628-20.html'; $oldUrlKey = null; if (preg_match('/^.*-[0-9]+(-[0-9]+)\.html$/', $urlKey, $matches)) { substr_replace($urlKey, '', strpos($matches[1]), strlen($matches[1])); $index[$oldUrlKey] = '----'; } var_dump($matches); echo $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.0090.01218.68
8.3.50.0090.00922.06
8.3.40.0040.01118.93
8.3.30.0090.00619.23
8.3.20.0070.00020.15
8.3.10.0040.00423.65
8.3.00.0080.00019.02
8.2.180.0100.01018.91
8.2.170.0040.01122.96
8.2.160.0080.00819.03
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00021.04
8.2.110.0000.00922.29
8.2.100.0070.00418.03
8.2.90.0000.00719.28
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0000.00921.13
8.2.30.0080.00018.34
8.2.20.0040.00417.96
8.2.10.0050.00218.09
8.2.00.0050.00517.89
8.1.280.0100.00725.92
8.1.270.0090.00023.88
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00922.23
8.1.230.0000.01119.07
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.38
8.1.180.0100.00018.10
8.1.170.0040.00418.71
8.1.160.0000.00822.04
8.1.150.0000.00718.73
8.1.140.0040.00417.46
8.1.130.0040.00417.92
8.1.120.0040.00417.48
8.1.110.0060.00317.59
8.1.100.0000.00717.50
8.1.90.0030.00717.55
8.1.80.0040.00417.54
8.1.70.0100.00017.50
8.1.60.0030.00617.56
8.1.50.0030.00517.74
8.1.40.0050.00317.64
8.1.30.0000.00817.73
8.1.20.0000.00817.84
8.1.10.0080.00017.71
8.1.00.0040.00417.67
8.0.300.0070.00018.77
8.0.290.0070.00016.93
8.0.280.0030.00318.33
8.0.270.0040.00417.18
8.0.260.0030.00317.27
8.0.250.0000.00717.01
8.0.240.0040.00417.13
8.0.230.0000.00717.19
8.0.220.0040.00416.92
8.0.210.0000.00717.04
8.0.200.0070.00017.00
8.0.190.0040.00417.09
8.0.180.0060.00317.05
8.0.170.0040.00417.05
8.0.160.0030.00317.04
8.0.150.0080.00016.90
8.0.140.0000.00716.97
8.0.130.0000.00713.43
8.0.120.0000.00817.00
8.0.110.0030.00517.05
8.0.100.0040.00417.04
8.0.90.0000.00716.91
8.0.80.0060.00916.97
8.0.70.0000.00816.89
8.0.60.0050.00216.92
8.0.50.0040.00416.91
8.0.30.0110.00717.23
8.0.20.0080.01117.44
8.0.10.0070.00017.04
8.0.00.0110.00817.04
7.4.330.0000.00715.00
7.4.320.0000.00716.76
7.4.300.0030.00316.66
7.4.290.0050.00216.56
7.4.280.0000.00616.65
7.4.270.0070.00016.59
7.4.260.0040.00416.73
7.4.250.0070.00016.67
7.4.240.0070.00016.65
7.4.230.0030.00316.82
7.4.220.0090.00916.75
7.4.210.0080.00716.70
7.4.200.0000.00716.78
7.4.190.0040.00416.93
7.4.160.0060.01016.82
7.4.150.0110.00717.40
7.4.140.0110.00917.86
7.4.130.0110.00716.69
7.4.120.0100.00716.72
7.4.110.0070.01016.68
7.4.100.0040.01716.75
7.4.90.0120.00616.69
7.4.80.0080.01319.39
7.4.70.0080.00816.55
7.4.60.0060.01016.76
7.4.50.0000.00616.69
7.4.40.0100.01016.86
7.4.30.0100.00716.68
7.4.00.0070.01015.28
7.3.330.0050.00013.30
7.3.320.0000.00513.26
7.3.310.0070.00016.54
7.3.300.0030.00316.38
7.3.290.0060.00816.58
7.3.280.0070.00916.54
7.3.270.0130.01017.40
7.3.260.0120.00616.90
7.3.250.0110.01016.58
7.3.240.0030.01516.64
7.3.230.0090.00916.58
7.3.210.0080.01416.73
7.3.200.0100.01119.39
7.3.190.0070.01016.86
7.3.180.0120.00616.52
7.3.170.0070.01016.47
7.3.160.0170.00316.82
7.3.120.0070.00714.80
7.3.10.0090.01016.73
7.3.00.0130.00216.52
7.2.330.0100.00716.75
7.2.320.0150.00616.77
7.2.310.0110.00616.58
7.2.300.0140.00416.82
7.2.290.0110.01416.71
7.2.130.0060.01116.70
7.2.120.0080.00816.73
7.2.110.0080.00716.98
7.2.100.0150.00516.77
7.2.90.0110.00616.77
7.2.80.0090.00916.85
7.2.70.0140.00716.87
7.2.60.0130.00716.72
7.2.50.0140.00417.01
7.2.40.0090.00716.87
7.2.30.0140.00516.79
7.2.20.0100.00716.89
7.2.10.0100.00716.88
7.2.00.0070.00817.61
7.1.250.0070.00715.94
7.1.240.0100.00715.55
7.1.230.0040.01115.47
7.1.220.0140.00015.63
7.1.210.0080.00415.96
7.1.200.0080.00515.75
7.1.190.0100.00315.88
7.1.180.0070.00715.92
7.1.170.0030.01015.62
7.1.160.0110.00315.79
7.1.150.0070.01015.60
7.1.140.0070.00715.84
7.1.130.0100.00315.93
7.1.120.0120.00615.96
7.1.110.0080.00615.58
7.1.100.0030.00917.26
7.1.90.0040.00816.04
7.1.80.0030.00715.89
7.1.70.0070.00316.58
7.1.60.0130.00717.68
7.1.50.0050.01216.44
7.1.40.0070.00715.75
7.1.30.0090.00615.84
7.1.20.0090.00315.79
7.1.10.0080.00615.89
7.1.00.0090.04319.18
7.0.330.0100.00315.48
7.0.320.0100.00715.65
7.0.310.0150.00015.49
7.0.300.0140.00315.14
7.0.290.0090.00315.11
7.0.280.0100.00315.54
7.0.270.0100.00615.35
7.0.260.0080.00415.47
7.0.250.0110.00415.52
7.0.240.0080.00815.42
7.0.230.0070.00715.55
7.0.220.0090.00615.13
7.0.210.0070.00715.47
7.0.200.0030.00716.03
7.0.190.0060.00615.64
7.0.180.0070.00715.54
7.0.170.0030.00915.51
7.0.160.0070.00715.25
7.0.150.0090.00615.33
7.0.140.0050.03818.88
7.0.130.0090.00315.59
7.0.120.0070.00315.53
7.0.110.0100.00315.55
7.0.100.0120.00315.30
7.0.90.0030.01015.37
7.0.80.0100.00315.31
7.0.70.0150.00015.38
7.0.60.0050.04617.65
7.0.50.0090.04416.67
7.0.40.0020.04915.49
7.0.30.0090.04015.63
7.0.20.0030.04315.55
7.0.10.0120.03415.52
7.0.00.0100.03815.66
5.6.380.0060.00614.35
5.6.370.0120.00314.27
5.6.360.0000.00914.53
5.6.350.0080.00513.91
5.6.340.0060.00614.56
5.6.330.0000.00814.61
5.6.320.0000.01014.56
5.6.310.0060.00614.47
5.6.300.0090.00014.73
5.6.290.0070.00714.57
5.6.280.0040.04017.76
5.6.270.0070.00714.21
5.6.260.0030.00914.66
5.6.250.0070.00414.61
5.6.240.0000.01114.56
5.6.230.0030.01014.23
5.6.220.0090.00614.09
5.6.210.0020.03217.46
5.6.200.0060.02616.33
5.6.190.0040.04416.22
5.6.180.0080.04016.21
5.6.170.0070.03716.13
5.6.160.0050.03816.15
5.6.150.0120.03816.24
5.6.140.0080.02716.16
5.6.130.0080.04516.10
5.6.120.0090.02716.36
5.6.110.0030.03316.44
5.6.100.0100.04316.26
5.6.90.0050.04516.27
5.6.80.0070.04215.82
5.6.70.0070.03515.93
5.6.60.0100.03015.78
5.6.50.0000.04715.71
5.6.40.0070.04715.85
5.6.30.0020.03515.85
5.6.20.0020.02915.80
5.6.10.0080.04415.91
5.6.00.0050.04215.84
5.5.380.0070.00011.05
5.5.370.0000.00710.90
5.5.360.0030.01010.90
5.5.350.2190.02115.68
5.5.340.0050.02814.57
5.5.330.0070.02514.67
5.5.320.0090.03914.57
5.5.310.0080.02814.42
5.5.300.0050.04114.49
5.5.290.0100.02314.58
5.5.280.0050.04214.39
5.5.270.0060.03314.45
5.5.260.0030.02314.50
5.5.250.0080.03514.38
5.5.240.0070.03814.12
5.5.230.0050.04314.27
5.5.220.0020.04514.13
5.5.210.0030.02814.14
5.5.200.0060.03614.06
5.5.190.0050.02814.27
5.5.180.0030.04514.15
5.5.170.0040.00810.90
5.5.160.0020.04814.22
5.5.150.0050.04214.15
5.5.140.0020.03114.18
5.5.130.0060.02314.25
5.5.120.0040.02414.11
5.5.110.0050.03614.25
5.5.100.0080.04214.10
5.5.90.0030.04514.13
5.5.80.0030.02214.13
5.5.70.0060.04014.21
5.5.60.0030.03114.15
5.5.50.0040.03714.16
5.5.40.0020.04514.01
5.5.30.0030.04214.01
5.5.20.0100.03514.09
5.5.10.0100.03614.16
5.5.00.0080.04014.05
5.4.450.0050.02715.15
5.4.440.0080.04015.16
5.4.430.0110.03615.09
5.4.420.0040.02415.10
5.4.410.0100.03915.15
5.4.400.0080.04015.11
5.4.390.0110.02514.88
5.4.380.0100.04015.04
5.4.370.0100.03714.94
5.4.360.0080.02515.07
5.4.350.0100.03515.15
5.4.340.0070.03115.01
5.4.330.0030.00610.90
5.4.320.0030.04515.02
5.4.310.0080.03415.10
5.4.300.0030.02914.94
5.4.290.0080.04014.93
5.4.280.0020.02515.26
5.4.270.0070.03015.02
5.4.260.0050.04415.03
5.4.250.0100.03714.90
5.4.240.0030.04314.96
5.4.230.0070.04015.16
5.4.220.0120.03915.13
5.4.210.0030.04115.00
5.4.200.0070.03415.10
5.4.190.0030.03415.08
5.4.180.0070.02615.02
5.4.170.0060.03914.97
5.4.160.0110.03614.93
5.4.150.0150.03114.93
5.4.140.0050.03113.73
5.4.130.0020.04313.63
5.4.120.0050.03113.62
5.4.110.0050.04013.69
5.4.100.0080.03313.64
5.4.90.0080.02713.73
5.4.80.0090.02813.63
5.4.70.0020.03113.62
5.4.60.0050.02013.57
5.4.50.0020.03213.62
5.4.40.0080.03513.71
5.4.30.0050.04013.72
5.4.20.0030.04113.68
5.4.10.0080.03713.67
5.4.00.0050.03513.39
5.3.290.0080.03312.78
5.3.280.0030.02412.70
5.3.270.0070.02712.69
5.3.260.0100.02012.72
5.3.250.0030.03812.67
5.3.240.0090.02212.66
5.3.230.0050.02112.64
5.3.220.0010.02512.70
5.3.210.0060.04012.73
5.3.200.0090.03212.71
5.3.190.0040.03712.71
5.3.180.0120.03512.71
5.3.170.0010.03412.66
5.3.160.0100.02112.70
5.3.150.0110.01712.71
5.3.140.0110.03212.77
5.3.130.0070.02512.65
5.3.120.0030.04312.70
5.3.110.0130.01812.69
5.3.100.0070.03912.38
5.3.90.0020.03112.44
5.3.80.0090.03712.44
5.3.70.0100.02812.44
5.3.60.0100.01912.44
5.3.50.0090.04112.30
5.3.40.0060.04112.40
5.3.30.0030.03712.37
5.3.20.0050.02512.28
5.3.10.0140.02612.25
5.3.00.0070.03212.22
5.2.170.0090.02711.02
5.2.160.0060.03311.01
5.2.150.0050.02411.01
5.2.140.0070.03411.00
5.2.130.0040.03611.01
5.2.120.0060.03010.87
5.2.110.0080.02810.98
5.2.100.0090.03010.98
5.2.90.0030.03510.99
5.2.80.0030.03410.99
5.2.70.0050.02011.01
5.2.60.0070.03010.95
5.2.50.0010.02110.87
5.2.40.0030.03510.93
5.2.30.0060.02510.92
5.2.20.0100.03010.93
5.2.10.0020.02210.87
5.2.00.0030.03510.81
5.1.60.0060.02810.48
5.1.50.0030.02810.41
5.1.40.0060.02310.46
5.1.30.0020.03310.60
5.1.20.0070.02510.62
5.1.10.0060.02310.49
5.1.00.0060.03110.50
5.0.50.0070.0179.73
5.0.40.0020.0199.68
5.0.30.0030.0349.54
5.0.20.0020.0249.57
5.0.10.0020.0259.45
5.0.00.0020.0359.54
4.4.90.0030.0199.40
4.4.80.0030.0159.40
4.4.70.0000.0239.40
4.4.60.0010.0189.40
4.4.50.0010.0159.40
4.4.40.0020.0309.40
4.4.30.0020.0159.40
4.4.20.0040.0189.40
4.4.10.0060.0179.40
4.4.00.0020.0299.40
4.3.110.0010.0189.40
4.3.100.0050.0089.40
4.3.90.0040.0159.40
4.3.80.0020.0209.40
4.3.70.0000.0139.40
4.3.60.0030.0099.40
4.3.50.0020.0099.40
4.3.40.0010.0139.40
4.3.30.0020.0109.40
4.3.20.0040.0079.40
4.3.10.0020.0089.40
4.3.00.0000.0089.40

preferences:
36 ms | 401 KiB | 5 Q