3v4l.org

run code in 300+ PHP versions simultaneously
<?php $commands['api_key'] = '789'; $commands['nonce'] = 555; $message = json_encode($commands); print($message); $signature = hash_hmac('sha256', $message, '123'); print($signature);

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.4.120.0120.00824.11
8.4.110.0030.00620.61
8.4.100.0100.01117.89
8.4.90.0120.00917.71
8.4.80.0050.00422.44
8.4.70.0110.00617.80
8.4.60.0130.00719.01
8.4.50.0070.00918.85
8.4.40.0100.01021.01
8.4.30.0030.01317.58
8.4.20.0130.00617.76
8.4.10.0030.00619.50
8.3.250.0120.00816.54
8.3.240.0140.00517.12
8.3.230.0100.00516.82
8.3.220.0080.01117.10
8.3.210.0090.00816.52
8.3.200.0050.00416.41
8.3.190.0130.00616.85
8.3.180.0110.00817.18
8.3.170.0070.01118.71
8.3.160.0100.01016.80
8.3.150.0120.00917.16
8.3.140.0080.00016.65
8.3.130.0030.00718.71
8.3.120.0060.00320.77
8.3.110.0100.00020.94
8.3.100.0060.00316.60
8.3.90.0040.00426.77
8.3.80.0000.01117.97
8.3.70.0090.00916.63
8.3.60.0100.00716.36
8.3.50.0140.00621.99
8.3.40.0070.00718.79
8.3.30.0110.00418.71
8.3.20.0040.00420.25
8.3.10.0080.00021.78
8.3.00.0000.00822.32
8.2.290.0070.00320.39
8.2.280.0050.00418.24
8.2.270.0090.00917.26
8.2.260.0110.00416.36
8.2.250.0000.00818.38
8.2.240.0120.00817.21
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0070.01126.77
8.2.200.0110.00018.29
8.2.190.0070.00716.58
8.2.180.0180.00418.31
8.2.170.0120.00922.96
8.2.160.0140.00020.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00222.08
8.2.120.0070.00026.35
8.2.110.0090.00019.16
8.2.100.0040.00817.91
8.2.90.0030.00617.75
8.2.80.0050.00318.97
8.2.70.0030.00517.63
8.2.60.0030.00518.16
8.2.50.0000.00818.10
8.2.40.0000.00822.10
8.2.30.0050.00219.28
8.2.20.0060.00317.75
8.2.10.0000.00718.18
8.2.00.0000.00817.62
8.1.330.0090.00921.98
8.1.320.0120.00918.09
8.1.310.0070.01016.65
8.1.300.0160.00320.04
8.1.290.0000.01018.88
8.1.280.0130.00725.92
8.1.270.0050.00323.80
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0030.00622.59
8.1.230.0090.00320.94
8.1.220.0040.00418.77
8.1.210.0030.00518.93
8.1.200.0030.00517.22
8.1.190.0030.00617.23
8.1.180.0080.00018.10
8.1.170.0000.00818.50
8.1.160.0000.00722.15
8.1.150.0040.00418.84
8.1.140.0020.00517.34
8.1.130.0040.00417.55
8.1.120.0000.00717.27
8.1.110.0000.00717.41
8.1.100.0000.00817.42
8.1.90.0040.00417.29
8.1.80.0040.00417.35
8.1.70.0040.00417.44
8.1.60.0000.00717.49
8.1.50.0050.00317.51
8.1.40.0040.00417.42
8.1.30.0080.00017.62
8.1.20.0030.00617.64
8.1.10.0040.00417.58
8.1.00.0040.00417.51
8.0.300.0050.00319.97
8.0.290.0030.00616.75
8.0.280.0030.00318.45
8.0.270.0000.00716.73
8.0.260.0030.00316.83
8.0.250.0000.00716.89
8.0.240.0050.00216.96
8.0.230.0000.00716.95
8.0.220.0030.00316.88
8.0.210.0020.00516.71
8.0.200.0000.00616.84
8.0.190.0000.00816.91
8.0.180.0070.00016.82
8.0.170.0040.00416.86
8.0.160.0070.00016.79
8.0.150.0000.00716.81
8.0.140.0000.00716.82
8.0.130.0030.00313.30
8.0.120.0090.00016.69
8.0.110.0080.00016.86
8.0.100.0040.00416.87
8.0.90.0070.00016.92
8.0.80.0040.01116.74
8.0.70.0040.00416.71
8.0.60.0000.00816.71
8.0.50.0000.00716.77
8.0.30.0060.01117.18
8.0.20.0120.00817.40
8.0.10.0070.00016.99
8.0.00.0160.00617.03
7.4.330.0030.00315.08
7.4.320.0000.00616.41
7.4.300.0000.00616.35
7.4.290.0000.00716.58
7.4.280.0000.00716.43
7.4.270.0000.00716.44
7.4.260.0090.00016.43
7.4.250.0050.00216.39
7.4.240.0030.00316.55
7.4.230.0030.00316.39
7.4.220.0150.00316.55
7.4.210.0090.00916.38
7.4.200.0070.00016.29
7.4.160.0110.00816.44
7.4.150.0110.00717.40
7.4.140.0060.01217.86
7.4.130.0080.00816.49
7.4.120.0100.00716.40
7.4.110.0100.00716.35
7.4.100.0070.01016.41
7.4.90.0000.01816.44
7.4.80.0100.00619.39
7.4.70.0070.01116.53
7.4.60.0100.00716.49
7.4.50.0030.01216.35
7.4.40.0120.00316.45
7.4.30.0140.00316.54
7.4.00.0070.00814.91
7.3.330.0030.00313.02
7.3.320.0030.00313.26
7.3.310.0030.00616.18
7.3.300.0000.00616.26
7.3.290.0050.00316.13
7.3.280.0080.00816.31
7.3.270.0030.01517.40
7.3.260.0150.00516.55
7.3.250.0100.00816.37
7.3.240.0140.00516.24
7.3.230.0110.00616.39
7.3.210.0060.01016.35
7.3.200.0110.00516.38
7.3.190.0100.00716.24
7.3.180.0070.01016.34
7.3.170.0090.00916.32
7.3.160.0090.00916.64
7.3.120.0080.00814.90
7.3.110.0030.01014.85
7.3.100.0000.01415.00
7.3.90.0150.00014.75
7.3.80.0000.01615.12
7.3.70.0060.00914.80
7.3.60.0030.00714.64
7.3.50.0100.00714.70
7.3.40.0030.00914.57
7.3.30.0050.00514.77
7.3.20.0110.00416.54
7.3.10.0030.01016.49
7.3.00.0070.00616.47
7.2.330.0100.01016.74
7.2.320.0110.00716.66
7.2.310.0160.00016.74
7.2.300.0130.00516.79
7.2.290.0030.01216.49
7.2.250.0030.01414.67
7.2.240.0030.01614.89
7.2.230.0000.00914.95
7.2.220.0000.01114.93
7.2.210.0060.00614.84
7.2.200.0070.00715.09
7.2.190.0080.00314.93
7.2.180.0000.01015.02
7.2.170.0060.00915.00
7.2.130.0070.00716.54
7.2.120.0050.00516.62
7.2.110.0090.00916.65
7.2.100.0150.00016.72
7.2.90.0090.01216.82
7.2.80.0110.00416.70
7.2.70.0170.00316.58
7.2.60.0050.00816.77
7.2.50.0110.00416.36
7.2.40.0090.00616.39
7.2.30.0130.00616.81
7.2.20.0060.00316.66
7.2.10.0000.01316.47
7.2.00.0020.01218.14
7.1.330.0090.00315.91
7.1.320.0000.00916.02
7.1.310.0040.01115.61
7.1.300.0040.00715.73
7.1.290.0040.01115.92
7.1.280.0060.00315.59
7.1.270.0030.00615.99
7.1.260.0060.00615.57
7.1.250.0060.01515.46
7.1.200.0090.00615.46
7.1.70.0070.00716.87
7.1.60.0190.00417.16
7.1.00.0030.07322.36
7.0.200.0040.00715.04
7.0.100.0130.05320.22
7.0.90.0130.06019.88
7.0.80.0130.05019.99
7.0.70.0100.05720.04
7.0.60.0130.06020.03
7.0.50.0100.05720.32
7.0.40.0100.05320.27
7.0.30.0100.05720.38
7.0.20.0070.06020.33
7.0.10.0200.05320.34
7.0.00.0030.06320.21
5.6.250.0130.05720.55
5.6.240.0100.06020.82
5.6.230.0170.05720.64
5.6.220.0130.06020.62
5.6.210.0170.05320.73
5.6.200.0170.05321.08
5.6.190.0100.05321.03
5.6.180.0130.05321.05
5.6.170.0130.05321.16
5.6.160.0070.05721.01
5.6.150.0100.05321.11
5.6.140.0070.05721.07
5.6.130.0130.05321.07
5.6.120.0030.06721.01
5.6.110.0170.05020.98
5.6.100.0000.06320.99
5.6.90.0070.06021.09
5.6.80.0000.07020.43
5.6.70.0130.04720.50
5.6.60.0100.05320.44
5.6.50.0030.06020.48
5.6.40.0070.06020.34
5.6.30.0200.04020.42
5.6.20.0070.05720.48
5.6.10.0030.06020.52
5.6.00.0170.04720.43

preferences:
28.96 ms | 403 KiB | 5 Q