3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = str_pad(dechex(18583), 8, "0", STR_PAD_LEFT); $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.0100.01016.63
8.3.50.0110.01021.98
8.3.40.0040.01118.68
8.3.30.0030.01018.77
8.3.20.0030.00620.32
8.3.10.0080.00023.66
8.3.00.0060.00319.04
8.2.180.0070.00718.42
8.2.170.0090.00922.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.13
8.2.110.0070.00322.25
8.2.100.0090.00317.78
8.2.90.0080.00019.17
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0050.00318.04
8.2.50.0060.00318.07
8.2.40.0040.00419.88
8.2.30.0000.00818.16
8.2.20.0070.00017.66
8.2.10.0070.00017.98
8.2.00.0060.00317.48
8.1.280.0120.00325.92
8.1.270.0080.00023.82
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00620.33
8.1.230.0080.00417.45
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0040.00718.36
8.1.160.0000.00721.95
8.1.150.0030.00518.51
8.1.140.0030.00517.31
8.1.130.0030.00317.88
8.1.120.0000.00717.40
8.1.110.0050.00517.40
8.1.100.0040.00417.27
8.1.90.0070.00017.46
8.1.80.0000.00717.39
8.1.70.0030.00317.39
8.1.60.0000.01217.48
8.1.50.0040.00417.41
8.1.40.0040.00417.46
8.1.30.0090.00217.54
8.1.20.0090.00017.49
8.1.10.0040.00417.32
8.1.00.0080.00017.39
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.32
8.0.270.0030.00517.07
8.0.260.0030.00317.09
8.0.250.0070.00016.79
8.0.240.0040.00416.88
8.0.230.0000.00716.88
8.0.220.0040.00416.86
8.0.210.0000.00716.82
8.0.200.0090.00016.80
8.0.190.0000.00816.90
8.0.180.0050.00316.73
8.0.170.0080.00016.86
8.0.160.0000.00716.85
8.0.150.0070.00016.81
8.0.140.0040.00416.66
8.0.130.0030.00313.21
8.0.120.0050.00216.71
8.0.110.0040.00416.82
8.0.100.0040.00416.88
8.0.90.0000.00716.70
8.0.80.0140.00716.75
8.0.70.0040.00416.64
8.0.60.0000.00716.86
8.0.50.0030.00316.88
8.0.30.0120.00716.95
8.0.20.0110.01117.40
8.0.10.0000.00816.81
8.0.00.0070.01016.74
7.4.330.0050.00015.00
7.4.320.0040.00416.34
7.4.300.0000.00616.38
7.4.290.0040.00416.53
7.4.280.0070.00016.53
7.4.270.0030.00316.46
7.4.260.0000.00716.55
7.4.250.0000.00816.49
7.4.240.0060.00216.47
7.4.230.0030.00316.55
7.4.220.0130.00716.39
7.4.210.0120.00516.50
7.4.200.0000.00716.63
7.4.190.0000.00716.68
7.4.160.0090.00616.39
7.4.150.0180.00017.40
7.4.140.0070.01017.86
7.4.130.0110.00616.46
7.4.120.0090.01216.32
7.4.110.0170.00316.41
7.4.100.0090.00916.19
7.4.90.0100.01316.42
7.4.80.0130.01019.39
7.4.70.0070.01016.32
7.4.60.0060.01316.48
7.4.50.0040.00416.21
7.4.40.0120.00916.49
7.4.30.0060.00916.39
7.4.00.0030.01214.80
7.3.330.0030.00312.96
7.3.320.0020.00212.94
7.3.310.0050.00216.20
7.3.300.0030.00316.14
7.3.290.0080.00516.11
7.3.280.0070.00916.13
7.3.270.0100.00717.40
7.3.260.0110.01216.35
7.3.250.0110.00616.25
7.3.240.0060.01716.18
7.3.230.0110.00616.39
7.3.210.0040.01216.25
7.3.200.0120.00916.23
7.3.190.0080.00816.47
7.3.180.0090.00616.46
7.3.170.0030.01316.27
7.3.160.0130.00316.11
7.3.120.0040.01014.39
7.2.330.0100.00716.39
7.2.320.0090.01116.48
7.2.310.0030.01316.50
7.2.300.0070.01316.57
7.2.290.0090.00816.66
7.2.00.0030.01219.27
7.1.100.0060.00618.09
7.1.70.0040.01216.88
7.1.60.0030.01017.16
7.1.50.0150.00916.88
7.1.00.0100.07022.49
7.0.200.0000.01716.49
7.0.140.0170.05322.21
7.0.60.0130.06020.07
7.0.50.0130.07017.90
7.0.40.0100.04017.66
7.0.30.0000.06017.70
7.0.20.0100.08017.77
7.0.10.0030.08317.78
7.0.00.0070.06017.79
5.6.280.0030.07321.07
5.6.210.0100.06320.61
5.6.200.0070.07318.06
5.6.190.0000.08018.09
5.6.180.0000.04318.18
5.6.170.0070.08018.15
5.6.160.0030.04018.18
5.6.150.0070.04018.07
5.6.140.0030.04018.08
5.6.130.0030.06318.22
5.6.120.0070.04718.06
5.6.110.0130.08018.12
5.6.100.0070.05318.21
5.6.90.0030.05718.11
5.6.80.0100.05317.62
5.6.70.0030.08317.56
5.6.60.0100.06317.54
5.6.50.0170.07317.54
5.6.40.0070.06717.50
5.6.30.0100.06017.54
5.6.20.0070.08317.46
5.6.10.0070.05017.57
5.6.00.0230.06017.45
5.5.350.0300.06320.48
5.5.340.0030.08718.02
5.5.330.0030.05018.02
5.5.320.0100.07317.91
5.5.310.0030.06717.91
5.5.300.0030.04017.88
5.5.290.0030.04317.98
5.5.280.0030.06717.98
5.5.270.0130.07017.97
5.5.260.0100.08318.01
5.5.250.0130.07317.73
5.5.240.0170.07317.34
5.5.230.0130.04017.35
5.5.220.0100.07017.29
5.5.210.0030.08017.29
5.5.200.0100.06717.27
5.5.190.0000.06717.36
5.5.180.0030.09017.32
5.5.160.0100.07717.30
5.5.150.0100.07717.26
5.5.140.0070.07717.25
5.5.130.0070.07717.36
5.5.120.0070.07717.36
5.5.110.0070.04317.32
5.5.100.0070.07717.23
5.5.90.0100.05017.27
5.5.80.0030.05017.27
5.5.70.0130.05017.19
5.5.60.0030.04317.24
5.5.50.0030.04017.25
5.5.40.0070.07017.27
5.5.30.0070.05717.26
5.5.20.0170.06317.15
5.5.10.0030.05317.21
5.5.00.0100.06717.21
5.4.450.0070.04319.17
5.4.440.0100.07719.55
5.4.430.0030.06019.33
5.4.420.0130.03019.41
5.4.410.0130.05719.30
5.4.400.0100.07019.13
5.4.390.0070.08018.98
5.4.380.0170.06318.98
5.4.370.0000.08018.98
5.4.360.0100.07318.89
5.4.350.0030.05318.96
5.4.340.0070.05719.12
5.4.320.0030.08319.03
5.4.310.0070.06319.07
5.4.300.0070.07019.09
5.4.290.0100.07019.02
5.4.280.0130.06019.20
5.4.270.0100.06319.20
5.4.260.0100.07318.98
5.4.250.0070.06318.96
5.4.240.0030.07719.12
5.4.230.0130.07019.00
5.4.220.0030.07319.08
5.4.210.0100.03718.97
5.4.200.0070.04718.96
5.4.190.0100.06318.97
5.4.180.0000.07019.06
5.4.170.0100.05718.96
5.4.160.0000.06318.93
5.4.150.0100.07319.18
5.4.140.0100.07016.46
5.4.130.0030.07016.35
5.4.120.0070.07316.32
5.4.110.0030.06316.28
5.4.100.0070.06716.29
5.4.90.0070.07716.16
5.4.80.0030.04716.50
5.4.70.0030.07316.23
5.4.60.0100.06716.23
5.4.50.0000.07016.20
5.4.40.0170.05316.39
5.4.30.0170.06016.21
5.4.20.0030.07716.35
5.4.10.0000.05316.20
5.4.00.0130.06015.60
5.3.290.0070.07714.58
5.3.280.0070.04014.42
5.3.270.0170.07014.38
5.3.260.0170.06714.53
5.3.250.0030.07014.54
5.3.240.0070.07714.59
5.3.230.0100.05314.55
5.3.220.0070.08014.34
5.3.210.0030.07014.54
5.3.200.0030.07714.53
5.3.190.0000.08014.50
5.3.180.0030.04014.53
5.3.170.0100.06714.64
5.3.160.0070.07314.48
5.3.150.0070.07014.38
5.3.140.0030.06014.41
5.3.130.0070.07714.36
5.3.120.0100.07714.63
5.3.110.0130.03714.46
5.3.100.0070.03713.95
5.3.90.0030.03713.97
5.3.80.0030.06713.95
5.3.70.0030.03713.97
5.3.60.0030.03313.77
5.3.50.0100.03013.89
5.3.40.0000.04013.70
5.3.30.0100.03013.65
5.3.20.0030.03713.61
5.3.10.0000.03713.59
5.3.00.0070.03013.60
5.2.170.0000.03311.12
5.2.160.0000.03311.13
5.2.150.0000.03010.97
5.2.140.0000.03011.04
5.2.130.0030.02711.06
5.2.120.0030.02710.92
5.2.110.0030.02711.07
5.2.100.0130.02010.99
5.2.90.0070.03010.92
5.2.80.0030.02711.06
5.2.70.0070.02311.08
5.2.60.0030.02711.00
5.2.50.0000.03010.91
5.2.40.0000.03010.93
5.2.30.0030.02711.11
5.2.20.0030.03310.91
5.2.10.0030.02710.88
5.2.00.0130.01710.61
5.1.60.0030.0239.91
5.1.50.0030.0209.97
5.1.40.0000.02710.04
5.1.30.0030.02310.19
5.1.20.0030.02310.38
5.1.10.0000.0279.89
5.1.00.0000.02710.22
5.0.50.0000.0238.61
5.0.40.0000.0208.54
5.0.30.0000.0308.36
5.0.20.0000.0208.11
5.0.10.0000.0208.10
5.0.00.0000.0307.98
4.4.90.0030.0137.55
4.4.80.0030.0137.55
4.4.70.0000.0177.55
4.4.60.0030.0137.55
4.4.50.0000.0177.55
4.4.40.0000.0277.55
4.4.30.0000.0177.55
4.4.20.0070.0137.55
4.4.10.0000.0137.55
4.4.00.0000.0237.55
4.3.110.0000.0177.55
4.3.100.0030.0107.55
4.3.90.0000.0137.55
4.3.80.0000.0237.55
4.3.70.0000.0137.55
4.3.60.0000.0137.55
4.3.50.0030.0137.55
4.3.40.0000.0237.55
4.3.30.0000.0177.55
4.3.20.0000.0137.55
4.3.10.0000.0137.55
4.3.00.0000.0137.55

preferences:
32.89 ms | 401 KiB | 5 Q