3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hmac = hash_hmac("sha1", 'abcdefg', '#0123455'); var_export($hmac); var_export(sprintf("%1.1s%20.20s", '0', $hmac));

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.0110.00418.43
8.3.50.0130.00521.09
8.3.40.0100.01318.72
8.3.30.0140.00019.06
8.3.20.0040.00420.21
8.3.10.0040.00423.70
8.3.00.0000.00819.26
8.2.180.0140.00716.50
8.2.170.0070.01022.96
8.2.160.0000.01420.28
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00022.27
8.2.110.0060.00322.07
8.2.100.0090.00317.91
8.2.90.0040.00917.34
8.2.80.0050.00317.97
8.2.70.0000.00817.80
8.2.60.0030.00717.91
8.2.50.0030.00518.10
8.2.40.0080.00020.60
8.2.30.0100.00017.91
8.2.20.0040.00417.69
8.2.10.0000.00718.04
8.2.00.0000.00717.67
8.1.280.0100.00325.92
8.1.270.0080.00023.67
8.1.260.0140.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.96
8.1.230.0030.00719.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0080.00417.00
8.1.180.0000.00718.10
8.1.170.0030.00518.50
8.1.160.0070.00021.98
8.1.150.0030.00518.84
8.1.140.0040.00417.39
8.1.130.0000.00717.74
8.1.120.0030.00317.43
8.1.110.0000.00717.44
8.1.100.0000.00817.43
8.1.90.0050.00217.42
8.1.80.0030.00517.30
8.1.70.0000.00717.21
8.1.60.0060.00317.52
8.1.50.0000.00817.36
8.1.40.0040.00417.50
8.1.30.0040.00417.66
8.1.20.0020.00517.64
8.1.10.0040.00417.45
8.1.00.0000.00717.29
8.0.300.0000.00819.65
8.0.290.0030.00616.58
8.0.280.0000.00718.30
8.0.270.0040.00417.25
8.0.260.0000.00617.29
8.0.250.0060.00016.89
8.0.240.0000.00616.93
8.0.230.0000.00716.88
8.0.220.0000.00716.73
8.0.210.0000.00716.82
8.0.200.0000.00716.87
8.0.190.0030.00316.77
8.0.180.0030.00316.76
8.0.170.0040.00416.89
8.0.160.0040.00416.86
8.0.150.0000.00716.84
8.0.140.0070.00016.83
8.0.130.0040.00413.23
8.0.120.0080.00016.70
8.0.110.0050.00316.79
8.0.100.0000.00716.90
8.0.90.0040.00416.84
8.0.80.0040.01016.77
8.0.70.0040.00416.90
8.0.60.0040.00416.95
8.0.50.0040.00416.71
8.0.30.0140.01017.06
8.0.20.0110.01217.40
8.0.10.0050.00216.97
8.0.00.0070.01016.64
7.4.330.0020.00215.02
7.4.320.0030.00316.52
7.4.300.0030.00316.59
7.4.290.0000.00716.47
7.4.280.0050.00316.55
7.4.270.0030.00316.55
7.4.260.0040.00416.43
7.4.250.0070.00016.51
7.4.240.0020.00616.57
7.4.230.0060.00316.43
7.4.220.0060.01516.41
7.4.210.0120.00316.50
7.4.200.0000.00716.64
7.4.160.0100.00716.34
7.4.150.0120.00617.40
7.4.140.0150.00317.86
7.4.130.0080.01116.48
7.4.120.0120.01316.45
7.4.110.0080.01216.61
7.4.100.0090.00916.35
7.4.90.0060.01216.29
7.4.80.0100.00619.39
7.4.70.0100.00616.46
7.4.60.0070.01616.54
7.4.50.0080.00016.25
7.4.40.0150.00316.48
7.4.30.0060.01216.42
7.4.00.0060.01214.85
7.3.330.0000.00613.02
7.3.320.0030.00313.04
7.3.310.0030.00615.95
7.3.300.0070.00016.16
7.3.290.0090.00716.16
7.3.280.0120.00516.16
7.3.270.0120.01217.40
7.3.260.0100.00716.38
7.3.250.0080.01016.36
7.3.240.0130.00316.54
7.3.230.0060.01016.39
7.3.210.0000.01616.34
7.3.200.0060.01119.39
7.3.190.0090.00916.34
7.3.180.0040.01216.29
7.3.170.0100.00716.27
7.3.160.0090.00916.48
7.2.330.0000.01816.48
7.2.320.0150.00616.22
7.2.310.0030.01416.59
7.2.300.0140.00316.36
7.2.290.0060.01616.55
7.2.60.0030.01316.57
7.2.00.0170.01219.04
7.1.200.0060.00915.81
7.1.100.0070.00718.21
7.1.70.0090.00017.12
7.1.60.0100.01419.11
7.1.50.0120.00616.85
7.1.00.0070.07322.28
7.0.200.0040.00416.77
7.0.140.0100.06722.13
7.0.60.0070.05319.92
7.0.50.0070.05717.89
7.0.40.0100.05320.08
7.0.30.0230.04320.13
7.0.20.0300.04020.02
7.0.10.0070.06020.17
7.0.00.0070.09320.08
5.6.280.0070.07021.12
5.6.210.0070.08020.74
5.6.200.0030.04018.19
5.6.190.0070.04020.36
5.6.180.0170.07320.77
5.6.170.0200.04320.47
5.6.160.0170.07320.49
5.6.150.0030.04318.11
5.6.140.0070.07318.11
5.6.130.0070.07718.17
5.6.120.0100.08021.11
5.6.110.0100.08320.98
5.6.100.0100.08021.13
5.6.90.0100.04320.97
5.6.80.0070.08020.27
5.6.70.4200.03720.36
5.5.350.0130.08020.40
5.5.340.0130.07317.89
5.5.330.0070.08320.22
5.5.320.0170.08320.46
5.5.310.0300.08320.21
5.5.300.0170.07717.91
5.5.290.0000.06018.02
5.5.280.0070.07020.64
5.5.270.0070.08020.78
5.5.260.0100.06320.79
5.5.250.0070.04720.78
5.5.240.0200.07320.06
5.4.450.0930.05719.43
5.4.440.0900.07019.50
5.4.430.0770.06019.48
5.4.420.0670.00019.32
5.4.410.0600.00019.35
5.4.400.0630.00019.38
5.4.390.0870.00019.05
5.4.380.0630.00018.96
5.4.370.0630.00018.96
5.4.360.0600.00019.13
5.4.350.0630.00019.05
5.4.340.0060.03811.97
5.4.320.0060.04212.45
5.4.310.0130.04712.45
5.4.300.0060.05112.45
5.4.290.0030.04112.45
5.4.280.0030.03812.34
5.4.270.0080.03712.35
5.4.260.0060.04012.35
5.4.250.0090.06612.35
5.4.240.0140.05112.35
5.4.230.0060.04212.34
5.4.220.0060.04312.34
5.4.210.0040.03712.34
5.4.200.0080.03712.34
5.4.190.0050.03912.34
5.4.180.0090.03512.34
5.4.170.0050.03812.34
5.4.160.0040.03712.34
5.4.150.0060.03612.34
5.4.140.0060.03612.02
5.4.130.0060.03912.01
5.4.120.0070.03511.97
5.4.110.0080.03811.96
5.4.100.0090.04011.96
5.4.90.0050.04211.96
5.4.80.0060.04611.96
5.4.70.0080.03411.96
5.4.60.0050.03611.96
5.4.50.0030.04011.96
5.4.40.0090.03211.95
5.4.30.0080.03811.95
5.4.20.0090.03211.95
5.4.10.0060.03811.95
5.4.00.0070.03511.44
5.3.290.0080.03912.80
5.3.280.0070.04012.71
5.3.270.0150.05712.73
5.3.260.0040.04212.72
5.3.250.0060.04112.72
5.3.240.0060.04212.72
5.3.230.0050.04212.71
5.3.220.0090.04312.68
5.3.210.0040.04212.68
5.3.200.0050.03812.68
5.3.190.0100.04212.68
5.3.180.0090.03412.67
5.3.170.0050.03912.67
5.3.160.0080.03612.67
5.3.150.0070.04412.67
5.3.140.0080.03712.66
5.3.130.0060.04012.66
5.3.120.0070.04112.66
5.3.110.0100.04812.66
5.3.100.0100.04812.12
5.3.90.0100.05212.09
5.3.80.0070.03812.07
5.3.70.0160.03812.07
5.3.60.0060.04312.07
5.3.50.0080.03712.00
5.3.40.0020.04212.00
5.3.30.0050.03611.95
5.3.20.0070.03511.72
5.3.10.0060.03611.69
5.3.00.0070.03511.68
5.2.170.0050.0319.18
5.2.160.0040.0339.18
5.2.150.0060.0349.18
5.2.140.0040.0369.17
5.2.130.0050.0339.14
5.2.120.0060.0329.14
5.2.110.0090.0369.14
5.2.100.0060.0409.14
5.2.90.0050.0409.14
5.2.80.0040.0329.13
5.2.70.0020.0329.14
5.2.60.0030.0319.09
5.2.50.0060.0319.05
5.2.40.0060.0309.03
5.2.30.0030.0339.01
5.2.20.0020.0319.00
5.2.10.0090.0278.92
5.2.00.0040.0328.78
5.1.60.0040.0268.06
5.1.50.0040.0248.06
5.1.40.0050.0238.04
5.1.30.0070.0258.39
5.1.20.0060.0268.41
5.1.10.0060.0248.14
5.1.00.0060.0238.14
5.0.50.0020.0236.62
5.0.40.0030.0196.48
5.0.30.0020.0336.29
5.0.20.0030.0206.26
5.0.10.0030.0226.24
5.0.00.0030.0316.23
4.4.90.0020.0164.77
4.4.80.0030.0154.75
4.4.70.0020.0164.76
4.4.60.0020.0164.76
4.4.50.0010.0164.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0010.0174.84
4.4.10.0030.0154.84
4.4.00.0050.0224.76
4.3.110.0030.0154.67
4.3.100.0050.0174.66
4.3.90.0030.0154.63
4.3.80.0040.0254.58
4.3.70.0020.0184.63
4.3.60.0020.0164.63
4.3.50.0050.0134.63
4.3.40.0040.0234.54
4.3.30.0010.0173.28
4.3.20.0020.0173.26
4.3.10.0020.0173.21
4.3.00.0170.0207.28

preferences:
42.94 ms | 401 KiB | 5 Q