3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 4; $hexString = dechex($number); $result = str_pad($hexString,6,"0",STR_PAD_LEFT); echo($result);

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.0180.00316.50
8.3.50.0060.00916.04
8.3.40.0110.00418.63
8.3.30.0120.00318.64
8.3.20.0070.00020.16
8.3.10.0000.00721.78
8.3.00.0040.00422.13
8.2.180.0180.00416.32
8.2.170.0090.00922.96
8.2.160.0070.00718.99
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00720.94
8.2.120.0080.00026.35
8.2.110.0090.00022.37
8.2.100.0060.00617.72
8.2.90.0040.00419.14
8.2.80.0050.00318.05
8.2.70.0100.00317.50
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0000.00820.41
8.2.30.0050.00320.94
8.2.20.0040.00418.10
8.2.10.0000.00718.13
8.2.00.0000.00718.05
8.1.280.0120.00325.92
8.1.270.0040.00422.06
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0040.00822.00
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0070.00017.22
8.1.180.0060.00318.10
8.1.170.0040.00418.53
8.1.160.0040.00418.92
8.1.150.0000.00720.52
8.1.140.0040.00419.40
8.1.130.0030.00518.73
8.1.120.0040.00417.35
8.1.110.0000.00717.26
8.1.100.0000.00717.29
8.1.90.0000.00717.38
8.1.80.0000.00717.32
8.1.70.0000.00717.34
8.1.60.0040.00417.54
8.1.50.0040.00417.40
8.1.40.0040.00417.46
8.1.30.0000.00817.47
8.1.20.0040.00417.64
8.1.10.0000.00817.50
8.1.00.0080.00017.45
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0030.00418.43
8.0.270.0070.00017.21
8.0.260.0030.00316.74
8.0.250.0060.00016.95
8.0.240.0050.00216.90
8.0.230.0080.00016.81
8.0.220.0060.00016.77
8.0.210.0040.00416.85
8.0.200.0030.00316.77
8.0.190.0000.00816.77
8.0.180.0030.00316.87
8.0.170.0070.00016.80
8.0.160.0070.00316.77
8.0.150.0030.00416.76
8.0.140.0070.00016.66
8.0.130.0030.00313.28
8.0.120.0000.00816.76
8.0.110.0000.00916.70
8.0.100.0000.00816.82
8.0.90.0040.00416.71
8.0.80.0140.00616.81
8.0.70.0030.00616.87
8.0.60.0040.00416.68
8.0.50.0000.00716.59
8.0.30.0110.00717.01
8.0.20.0120.00617.40
8.0.10.0040.00416.94
8.0.00.0040.01316.62
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0000.00616.52
7.4.290.0040.00416.31
7.4.280.0070.00016.41
7.4.270.0070.00016.34
7.4.260.0080.00016.42
7.4.250.0040.00416.51
7.4.240.0030.00316.31
7.4.230.0070.00016.58
7.4.220.0070.01016.48
7.4.210.0070.01216.44
7.4.200.0030.00316.27
7.4.160.0090.01116.40
7.4.150.0100.00717.40
7.4.140.0060.01117.86
7.4.130.0090.01516.48
7.4.120.0080.01016.39
7.4.110.0070.01016.41
7.4.100.0140.01116.51
7.4.90.0000.01816.16
7.4.80.0140.00719.39
7.4.70.0110.00416.36
7.4.60.0030.01316.45
7.4.50.0100.00316.51
7.4.40.0100.01016.38
7.4.30.0130.00316.56
7.4.00.0100.00715.03
7.3.330.0060.00013.02
7.3.320.0000.00513.11
7.3.310.0030.00316.16
7.3.300.0030.00316.04
7.3.290.0030.00316.09
7.3.280.0080.00916.18
7.3.270.0120.00417.40
7.3.260.0100.00616.38
7.3.250.0090.00816.33
7.3.240.0090.01116.37
7.3.230.0060.01216.45
7.3.210.0060.01016.12
7.3.200.0000.01616.10
7.3.190.0100.01316.60
7.3.180.0130.00316.36
7.3.170.0090.00616.18
7.3.160.0090.00616.52
7.2.330.0060.01216.50
7.2.320.0060.01016.67
7.2.310.0060.01116.41
7.2.300.0030.01416.45
7.2.290.0060.01616.64
7.2.60.0000.01516.91
7.2.00.0060.00919.11
7.1.200.0040.00815.67
7.1.100.0000.00918.19
7.1.70.0090.00717.03
7.1.60.0220.01335.03
7.1.50.0160.01834.76
7.1.40.0290.01534.38
7.1.30.0190.01534.48
7.1.20.0270.01034.54
7.1.10.0100.01016.50
7.1.00.0060.01016.58
7.0.200.0070.01316.46
7.0.190.0070.01316.73
7.0.180.0080.00816.30
7.0.170.0110.00716.18
7.0.160.0090.01216.12
7.0.150.0070.00716.45
7.0.140.0030.01316.43
7.0.130.0070.01016.23
7.0.120.0080.00816.38
7.0.110.0050.01016.19
7.0.100.0090.00616.03
7.0.90.0030.01316.48
7.0.80.0140.00816.18
7.0.70.0110.00616.47
7.0.60.0030.01315.97
7.0.50.0100.00516.25
7.0.40.0040.01116.38
7.0.30.0050.01016.61
7.0.20.0060.01416.32
7.0.10.0120.01216.17
7.0.00.0070.01316.35

preferences:
38.83 ms | 401 KiB | 5 Q