3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '5 11.48 3 USD 6 771446 16 IT Books. Qty: 2 17 Books Online Inc. 14 www.sample.com 15 123456789012345 8 99999999 19 pgw@mail.sample.com 1 1 --14 20030105153021 16 F2B2DD7E603A7ADA 33 https://www.sample.com/shop/reply'; $key = pack('H*', '00112233445566778899AABBCCDDEEFF'); $expected = 'FACC882CA67E109E409E3974DDEDA8AAB13A5E48'; $result = hash_hmac('sha1', $string, $key); $result = strtoupper($result); echo "Expected: $expected".PHP_EOL; echo "Actual result: $result".PHP_EOL;

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.00416.47
8.3.50.0100.00821.88
8.3.40.0100.00318.67
8.3.30.0150.00619.06
8.3.20.0040.00419.98
8.3.10.0040.00423.66
8.3.00.0040.00417.50
8.2.180.0080.00818.29
8.2.170.0140.00718.77
8.2.160.0070.01022.96
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00420.95
8.2.110.0050.00522.25
8.2.100.0110.00417.72
8.2.90.0050.00319.09
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0050.00518.03
8.2.30.0000.00717.93
8.2.20.0040.00417.59
8.2.10.0000.00817.89
8.2.00.0000.00718.10
8.1.280.0110.01125.92
8.1.270.0090.00920.38
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0040.00819.01
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.00
8.1.180.0090.00018.10
8.1.170.0040.00418.52
8.1.160.0000.00721.99
8.1.150.0000.00718.95
8.1.140.0080.00017.40
8.1.130.0070.00017.86
8.1.120.0030.00317.37
8.1.110.0030.00517.35
8.1.100.0000.00717.31
8.1.90.0040.00417.45
8.1.80.0030.00317.43
8.1.70.0000.00717.41
8.1.60.0000.00917.54
8.1.50.0030.00517.34
8.1.40.0050.00317.41
8.1.30.0040.00417.64
8.1.20.0000.00817.48
8.1.10.0040.00417.47
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0070.00018.44
8.0.270.0000.00717.29
8.0.260.0060.00017.29
8.0.250.0040.00416.82
8.0.240.0050.00316.94
8.0.230.0040.00416.83
8.0.220.0000.00716.90
8.0.210.0040.00416.78
8.0.200.0030.00316.88
8.0.190.0040.00416.99
8.0.180.0050.00316.80
8.0.170.0070.00016.80
8.0.160.0040.00416.88
8.0.150.0000.00716.86
8.0.140.0070.00016.75
8.0.130.0030.00313.31
8.0.120.0040.00416.86
8.0.110.0000.00716.82
8.0.100.0000.00716.92
8.0.90.0040.00416.73
8.0.80.0070.01316.85
8.0.70.0040.00416.75
8.0.60.0070.00016.88
8.0.50.0040.00416.84
8.0.30.0160.00917.10
8.0.20.0120.01017.40
8.0.10.0040.00416.76
8.0.00.0160.00616.93
7.4.330.0030.00315.03
7.4.320.0060.00316.57
7.4.300.0070.00016.55
7.4.290.0000.00716.57
7.4.280.0000.00916.44
7.4.270.0000.00616.36
7.4.260.0020.00516.44
7.4.250.0050.00216.48
7.4.240.0020.00516.38
7.4.230.0000.00816.27
7.4.220.0100.01616.33
7.4.210.0040.01116.43
7.4.200.0030.00316.32
7.4.160.0070.00716.21
7.4.150.0100.00717.40
7.4.140.0090.01417.86
7.4.130.0130.00716.44
7.4.120.0100.00816.61
7.4.110.0070.01016.36
7.4.100.0030.01316.50
7.4.90.0120.00916.41
7.4.80.0150.00619.39
7.4.70.0120.00816.54
7.4.60.0060.01016.50
7.4.50.0040.00416.38
7.4.40.0120.00316.36
7.4.30.0060.01216.52
7.4.00.0090.00715.04
7.3.330.0050.00513.12
7.3.320.0030.00313.00
7.3.310.0030.00316.26
7.3.300.0060.00016.27
7.3.290.0030.00316.10
7.3.280.0120.00716.30
7.3.270.0130.00317.40
7.3.260.0090.00916.52
7.3.250.0080.01016.35
7.3.240.0090.00916.29
7.3.230.0040.01416.45
7.3.210.0130.00316.63
7.3.200.0110.00619.39
7.3.190.0080.00716.50
7.3.180.0070.01016.16
7.3.170.0070.01016.66
7.3.160.0110.00616.50
7.3.120.0080.01014.86
7.3.110.0030.01214.89
7.3.100.0060.01114.72
7.3.90.0070.01214.62
7.3.80.0050.01014.57
7.3.70.0060.00614.81
7.3.60.0060.00814.75
7.3.50.0070.00614.82
7.3.40.0090.00314.80
7.3.30.0060.00714.57
7.3.20.0040.01116.46
7.3.10.0090.00516.62
7.3.00.0110.00316.79
7.2.330.0080.00916.65
7.2.320.0140.00416.79
7.2.310.0130.00616.66
7.2.300.0120.00316.71
7.2.290.0100.00816.63
7.2.250.0080.00914.92
7.2.240.0070.01114.97
7.2.230.0070.01014.76
7.2.220.0070.00814.90
7.2.210.0080.00915.20
7.2.200.0060.00715.08
7.2.190.0090.00414.94
7.2.180.0020.01315.03
7.2.170.0060.01114.88
7.1.330.0050.00715.67
7.1.320.0060.00715.93
7.1.310.0080.00715.61
7.1.300.0070.00615.57
7.1.290.0060.00615.73
7.1.280.0040.01015.78
7.1.270.0060.01015.68
7.1.260.0060.01015.79
7.1.70.0000.01017.27
7.1.60.0040.00717.21
7.1.50.0090.00616.98
7.1.00.0000.08022.48
7.0.200.0030.00616.68
7.0.60.0000.04719.96
7.0.50.0100.06317.79
7.0.40.0070.04720.03
7.0.30.0200.05020.33
7.0.20.0300.08020.00
7.0.10.0070.08720.33
7.0.00.0100.05020.09
5.6.280.0000.07721.09
5.6.210.0130.07320.75
5.6.200.0170.07018.17
5.6.190.0100.06720.43
5.6.180.0130.05020.27
5.6.170.0270.04320.52
5.6.160.0130.07720.49
5.6.150.0100.06718.19
5.6.140.0030.04018.15
5.6.130.0070.08018.22
5.6.120.0100.08020.98
5.6.110.0170.07320.97
5.6.100.0030.08721.00
5.6.90.0100.08320.98
5.6.80.0170.05720.51
5.6.70.4070.04720.27
5.5.350.0370.07320.39
5.5.340.0100.08017.95
5.5.330.0070.03720.23
5.5.320.0370.06020.18
5.5.310.0170.04020.30
5.5.300.0100.05017.91
5.5.290.0070.04017.98
5.5.280.0000.06720.84
5.5.270.0070.08720.81
5.5.260.0170.06020.79
5.5.250.0070.07320.46
5.5.240.3870.04020.06
5.4.450.0470.04019.57
5.4.440.0430.06019.21
5.4.430.0400.03719.45
5.4.420.0130.06719.48
5.4.410.0070.06718.91
5.4.400.0200.04718.78
5.4.390.0130.05718.59
5.4.380.0200.06718.66
5.4.370.0170.07018.69
5.4.360.0030.06318.45
5.4.350.0230.04318.50
5.4.340.0070.05718.49
5.4.320.0070.06018.71
5.4.310.0070.05718.56
5.4.300.0200.04318.63
5.4.290.0030.06018.59
5.4.280.0070.06018.77
5.4.270.0070.05718.50
5.4.260.0170.05718.71
5.4.250.0130.05318.48
5.4.240.0130.05318.77
5.4.230.0170.06318.49
5.4.220.0100.05318.61
5.4.210.0130.05018.50
5.4.200.0100.05016.48
5.4.190.0200.04318.61
5.4.180.0030.06018.70
5.4.170.0230.04318.67
5.4.160.0070.06318.49
5.4.150.0130.06318.50
5.4.140.0170.05016.07
5.4.130.0170.04016.35
5.4.120.0130.04716.17
5.4.110.0130.04716.04
5.4.100.0200.04316.29
5.4.90.0170.06316.35
5.4.80.0400.05316.22
5.4.70.0170.04316.14
5.4.60.0030.05316.34
5.4.50.0130.04316.17
5.4.40.0030.05716.05
5.4.30.0130.04716.21
5.4.20.0170.04316.21
5.4.10.0100.05016.14
5.4.00.0070.06315.72
5.3.290.0030.06014.64
5.3.280.0200.05014.57
5.3.270.0100.05714.69
5.3.260.0170.04714.68
5.3.250.0030.05714.61
5.3.240.0200.04014.50
5.3.230.0130.05714.49
5.3.220.0130.07014.56
5.3.210.0070.06014.55
5.3.200.0170.04314.49
5.3.190.0070.05714.55
5.3.180.0130.05014.54
5.3.170.0170.04314.54
5.3.160.0130.04714.47
5.3.150.0100.05714.61
5.3.140.0070.05714.48
5.3.130.0170.05014.46
5.3.120.0130.05714.48
5.3.110.0130.05314.62
5.3.100.0070.05714.13
5.3.90.0130.05014.07
5.3.80.0130.04714.00
5.3.70.0200.04014.01
5.3.60.0170.05013.99
5.3.50.0100.04713.88
5.3.40.0030.05313.93
5.3.30.0030.05313.82
5.3.20.0100.04713.79
5.3.10.0170.04313.57
5.3.00.0170.05313.59
5.2.170.0070.05711.18
5.2.160.0130.03711.13
5.2.150.0170.03311.14
5.2.140.0130.03711.14
5.2.130.0130.04711.06
5.2.120.0100.03711.07
5.2.110.0030.04311.05
5.2.100.0070.04011.02
5.2.90.0000.04711.18
5.2.80.0070.04311.08
5.2.70.0130.03711.13
5.2.60.0070.04711.05
5.2.50.0070.04311.00
5.2.40.0100.03711.00
5.2.30.0100.04710.95
5.2.20.0130.03710.91
5.2.10.0100.03710.88
5.2.00.0070.04010.77
5.1.60.0130.02710.06
5.1.50.0030.03710.01
5.1.40.0100.0479.97
5.1.30.0070.03710.38
5.1.20.0030.04010.50
5.1.10.0000.04010.04
5.1.00.0030.03710.18
5.0.50.0070.0278.57
5.0.40.0030.0308.50
5.0.30.0070.0438.24
5.0.20.0100.0238.32
5.0.10.0030.0338.20
5.0.00.0030.0438.36
4.4.90.0100.0175.91
4.4.80.0000.0275.82
4.4.70.0000.0275.89
4.4.60.0000.0275.89
4.4.50.0030.0235.92
4.4.40.0100.0305.90
4.4.30.0100.0135.87
4.4.20.0070.0205.97
4.4.10.0030.0235.95
4.4.00.0030.0375.91
4.3.110.0030.0235.88
4.3.100.0030.0235.75
4.3.90.0030.0205.86
4.3.80.0030.0335.82
4.3.70.0030.0205.80
4.3.60.0000.0275.91
4.3.50.0070.0205.81
4.3.40.0030.0335.85
4.3.30.0000.0234.55
4.3.20.0030.0234.56
4.3.10.0070.0174.51
4.3.00.0130.01715.86

preferences:
39.31 ms | 401 KiB | 5 Q