3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = str_pad(dechex(1), 8, "0", STR_PAD_LEFT); $hash = implode(str_split($hash, 2), '/'); $hash2 = substr_replace($hash, 'f', 0, 1); printf("hash = %s, new hash = %s", $hash, $hash2);

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.75
8.3.50.0120.01017.56
8.3.40.0060.00918.64
8.3.30.0040.01118.79
8.3.20.0060.00318.64
8.3.10.0030.00620.66
8.3.00.0050.00319.23
8.2.180.0140.00716.88
8.2.170.0080.00622.96
8.2.160.0090.00620.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.73
8.2.110.0090.00020.36
8.2.100.0000.01217.90
8.2.90.0040.00419.09
8.2.80.0000.00718.13
8.2.70.0030.00617.50
8.2.60.0040.00418.04
8.2.50.0030.00518.10
8.2.40.0000.00718.22
8.2.30.0040.00417.91
8.2.20.0060.00319.44
8.2.10.0040.00417.76
8.2.00.0080.00017.56
8.1.280.0040.01225.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00322.09
8.1.230.0100.00717.64
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.12
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0090.00018.73
8.1.160.0000.00718.82
8.1.150.0040.00418.57
8.1.140.0050.00317.28
8.1.130.0000.00817.82
8.1.120.0060.00317.46
8.1.110.0000.00717.31
8.1.100.0000.00717.44
8.1.90.0040.00417.41
8.1.80.0050.00217.37
8.1.70.0030.00317.32
8.1.60.0060.00317.51
8.1.50.0040.00417.50
8.1.40.0090.00017.42
8.1.30.0050.00217.65
8.1.20.0000.00717.58
8.1.10.0040.00417.64
8.1.00.0040.00417.37
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.25
8.0.270.0030.00317.20
8.0.260.0030.00316.82
8.0.250.0040.00416.94
8.0.240.0000.00716.84
8.0.230.0050.00216.95
8.0.220.0000.00716.96
8.0.210.0030.00316.77
8.0.200.0080.00316.84
8.0.190.0070.00017.02
8.0.180.0070.00316.80
8.0.170.0090.00016.75
8.0.160.0000.00716.96
8.0.150.0000.00816.91
8.0.140.0040.00416.86
8.0.130.0060.00013.32
8.0.120.0040.00416.91
8.0.110.0040.00416.72
8.0.100.0080.00016.68
8.0.90.0040.00416.72
8.0.80.0130.00916.88
8.0.70.0040.00416.96
8.0.60.0000.00716.77
8.0.50.0000.00716.95
8.0.30.0090.00917.13
8.0.20.0120.00616.92
8.0.10.0000.00716.90
8.0.00.0140.00816.73
7.4.330.0050.00012.85
7.4.320.0030.00316.45
7.4.300.0030.00316.43
7.4.290.0060.00016.35
7.4.280.0040.00416.53
7.4.270.0000.00816.55
7.4.260.0000.00613.16
7.4.250.0040.00416.47
7.4.240.0000.00716.46
7.4.230.0030.00316.51
7.4.220.0140.00416.41
7.4.210.0050.01216.53
7.4.200.0000.00716.61
7.4.190.0070.00016.30
7.4.160.0030.01416.48
7.4.150.0030.01516.48
7.4.140.0100.00716.40
7.4.130.0050.01316.62
7.4.120.0100.00716.54
7.4.110.0120.00616.45
7.4.100.0100.01016.53
7.4.90.0070.01016.41
7.4.80.0070.01416.49
7.4.70.0150.00616.62
7.4.60.0080.00816.55
7.4.50.0100.00216.25
7.4.40.0000.01516.58
7.4.30.0130.00316.54
7.4.00.0120.00314.46
7.3.330.0060.00013.00
7.3.320.0030.00312.98
7.3.310.0000.00716.11
7.3.300.0030.00316.14
7.3.290.0100.01016.17
7.3.280.0070.01016.18
7.3.270.0100.00716.42
7.3.260.0100.00716.18
7.3.250.0130.00916.17
7.3.240.0100.00716.14
7.3.230.0110.00616.22
7.3.210.0060.01416.38
7.3.200.0080.00819.39
7.3.190.0100.01016.08
7.3.180.0060.00916.21
7.3.170.0190.00616.36
7.3.160.0070.00716.23
7.3.120.0070.00714.96
7.2.330.0100.01216.59
7.2.320.0080.01516.56
7.2.310.0060.01016.37
7.2.300.0090.00616.43
7.2.290.0100.00716.22
7.2.00.0120.00819.07
7.1.100.0030.01017.96
7.1.70.0030.00917.00
7.1.60.0170.00719.40
7.1.50.0090.00916.83
7.1.00.0030.05022.31
7.0.200.0290.00414.59
7.0.140.0070.07022.18
7.0.120.0030.05022.00
7.0.60.0030.04019.95
7.0.50.0000.04017.81
7.0.40.0130.08020.07
7.0.30.0370.04020.05
7.0.20.0370.07020.02
7.0.10.0100.06720.30
7.0.00.0070.09020.09
5.6.280.0070.07021.04
5.6.210.0070.08720.50
5.6.200.0030.06318.09
5.6.190.0100.07720.64
5.6.180.3770.03720.61
5.6.170.0170.04720.71
5.6.160.0030.08320.41
5.6.150.0030.09018.21
5.6.140.0030.07318.21
5.6.130.0000.09318.12
5.6.120.0070.05721.02
5.6.110.0100.07020.88
5.6.100.0070.03720.96
5.6.90.0070.04321.01
5.6.80.0070.08020.50
5.6.70.4500.03320.39
5.5.350.0000.09020.37
5.5.340.0030.04317.98
5.5.330.0030.04320.06
5.5.320.0170.06320.18
5.5.310.0270.07720.30
5.5.300.0130.06017.98
5.5.290.0070.05017.89
5.5.280.0100.04720.88
5.5.270.0070.04320.72
5.5.260.0070.08020.95
5.5.250.0130.08020.71
5.5.240.0130.06720.16
5.4.450.0100.05719.52
5.4.440.0170.03719.41
5.4.430.0030.08019.40
5.4.420.0170.06319.40
5.4.410.0070.07319.33
5.4.400.0000.08318.79
5.4.390.0070.08019.15
5.4.380.0030.06319.18
5.4.370.0100.07719.08
5.4.360.0130.06718.91
5.4.350.0070.05019.14
5.4.340.0130.06319.18
5.4.320.0070.04718.79
5.4.310.0030.08318.97
5.4.300.0100.07018.80
5.4.290.0070.06318.91
5.4.280.0070.08019.17
5.4.270.0070.07319.18
5.4.260.0100.04719.14
5.4.250.0070.07019.07
5.4.240.0070.07719.07
5.4.230.0030.06319.13
5.4.220.0130.06719.19
5.4.210.0070.08019.17
5.4.200.0130.06319.17
5.4.190.0030.08019.06
5.4.180.0070.06319.07
5.4.170.0130.06319.16
5.4.160.0100.03719.12
5.4.150.0030.04019.05
5.4.140.0070.03316.34
5.4.130.0000.04016.43
5.4.120.0030.03716.47
5.4.110.0000.04016.31
5.4.100.0000.03716.23
5.4.90.0000.04016.41
5.4.80.0000.03716.38
5.4.70.0000.04016.23
5.4.60.0030.04016.24
5.4.50.0030.03716.34
5.4.40.0000.03716.21
5.4.30.0070.03016.23
5.4.20.0000.03716.58
5.4.10.0070.03016.57
5.4.00.0030.03315.73
5.3.290.0070.07314.75
5.3.280.0070.07714.61
5.3.270.0030.08314.48
5.3.260.0030.05314.54
5.3.250.0030.04314.55
5.3.240.0070.03314.57
5.3.230.0070.03714.68
5.3.220.0000.04014.49
5.3.210.0100.03014.66
5.3.200.0000.03714.47
5.3.190.0100.03314.65
5.3.180.0000.03714.50
5.3.170.0000.03714.49
5.3.160.0070.03314.48
5.3.150.0070.03014.48
5.3.140.0030.03314.48
5.3.130.0030.04014.49
5.3.120.0000.04014.44
5.3.110.0070.03314.51
5.3.100.0070.04013.98
5.3.90.0000.03713.95
5.3.80.0000.03714.03
5.3.70.0100.03313.98
5.3.60.0000.03713.97
5.3.50.0030.03313.91
5.3.40.0070.03013.78
5.3.30.0030.03313.72
5.3.20.0000.04013.53
5.3.10.0000.03713.57
5.3.00.0030.03313.58
5.2.170.0000.03010.97
5.2.160.0030.03011.15
5.2.150.0000.03311.30
5.2.140.0030.02710.96
5.2.130.0000.03011.11
5.2.120.0030.02711.03
5.2.110.0030.03311.09
5.2.100.0030.03011.05
5.2.90.0000.03010.95
5.2.80.0030.02711.24
5.2.70.0070.02710.91
5.2.60.0070.02310.93
5.2.50.0030.02710.94
5.2.40.0030.02711.00
5.2.30.0030.02710.91
5.2.20.0000.03010.90
5.2.10.0030.02710.81
5.2.00.0030.03010.76
5.1.60.0070.0209.99
5.1.50.0030.0609.94
5.1.40.0070.0309.98
5.1.30.0000.04010.29
5.1.20.0130.04010.52
5.1.10.0030.04010.06
5.1.00.0030.0409.97
5.0.50.0070.0208.45
5.0.40.0070.0308.42
5.0.30.0030.0338.22
5.0.20.0000.0378.34
5.0.10.0030.0378.32
5.0.00.0030.0478.20
4.4.90.0000.0177.96
4.4.80.0000.0177.96
4.4.70.0030.0137.96
4.4.60.0000.0177.96
4.4.50.0000.0137.96
4.4.40.0070.0307.96
4.4.30.0000.0277.96
4.4.20.0000.0377.96
4.4.10.0030.0377.96
4.4.00.0000.0477.96
4.3.110.0030.0237.96
4.3.100.0100.0277.96
4.3.90.0030.0277.96
4.3.80.0000.0307.96
4.3.70.0000.0177.96
4.3.60.0030.0137.96
4.3.50.0030.0377.96
4.3.40.0030.0537.96
4.3.30.0000.0277.96
4.3.20.0030.0237.96
4.3.10.0000.0337.96
4.3.00.0000.0337.96

preferences:
38.34 ms | 401 KiB | 5 Q