3v4l.org

run code in 300+ PHP versions simultaneously
<?php const HASH_ALGORITHM = "sha256"; $public_key = 'PUBLIC_KEY'; $private_key = 'PRIVATE_KEY'; $payload = array( "first_name" => "User", "last_name" =>"Test", "email" => "user.oc@test.com", "network" => "Open Colleges", "parent_email" => "oc@alffie.com", "password"=>"@UserTest12345", "confirm"=>"@UserTest12345", "phone"=>"0412345678", "role"=>"Student" ); $payload = json_encode($payload); $signature = base64_encode(hash_hmac(HASH_ALGORITHM, $payload, utf8_encode($private_key))); echo $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.3.60.0070.00716.63
8.3.50.0140.01017.99
8.3.40.0040.01120.49
8.3.30.0150.00018.84
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.180.0070.00725.92
8.2.170.0040.01118.94
8.2.160.0090.00622.96
8.2.150.0070.01025.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.12
8.2.110.0030.00622.20
8.2.100.0120.00017.91
8.2.90.0000.00817.75
8.2.80.0080.00018.77
8.2.70.0040.00417.75
8.2.60.0000.00717.63
8.2.50.0040.00417.59
8.2.40.0000.00819.77
8.2.30.0000.00817.62
8.2.20.0040.00417.93
8.2.10.0000.00719.27
8.2.00.0000.00719.21
8.1.280.0110.00825.92
8.1.270.0050.00223.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00320.20
8.1.230.0080.00417.83
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0070.00017.62
8.1.160.0060.00318.88
8.1.150.0050.00218.69
8.1.140.0000.00817.44
8.1.130.0040.00418.89
8.1.120.0060.00317.38
8.1.110.0000.00717.36
8.1.100.0050.00217.41
8.1.90.0040.00417.35
8.1.80.0080.00017.50
8.1.70.0030.00317.45
8.1.60.0000.00817.48
8.1.50.0080.00017.49
8.1.40.0020.00517.55
8.1.30.0000.00817.64
8.1.20.0040.00417.70
8.1.10.0050.00317.40
8.1.00.0040.00417.36
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00817.93
8.0.270.0070.00016.68
8.0.260.0000.00618.44
8.0.250.0030.00416.87
8.0.240.0000.00716.90
8.0.230.0020.00516.83
8.0.220.0030.00316.82
8.0.210.0030.00316.80
8.0.200.0000.00616.90
8.0.190.0030.00516.95
8.0.180.0030.00516.80
8.0.170.0040.00416.89
8.0.160.0000.00716.79
8.0.150.0070.00016.83
8.0.140.0040.00416.86
8.0.130.0050.00013.27
8.0.120.0040.00416.88
8.0.110.0030.00316.93
8.0.100.0050.00316.77
8.0.90.0030.00716.92
8.0.80.0000.00816.93
8.0.70.0000.00816.91
8.0.60.0030.00616.82
8.0.50.0030.00516.97
8.0.30.0070.00016.86
8.0.20.0030.00616.98
8.0.10.0030.00516.95
8.0.00.0000.00717.14
7.4.330.0000.00515.55
7.4.320.0000.00716.60
7.4.300.0040.00416.61
7.4.290.0000.00816.40
7.4.280.0040.00416.44
7.4.270.0000.00716.55
7.4.260.0050.00013.22
7.4.250.0030.00516.47
7.4.240.0070.00016.65
7.4.230.0040.00416.69
7.4.220.0040.00416.50
7.4.210.0050.00316.39
7.4.200.0000.00716.61
7.4.190.0040.00416.31
7.4.180.0080.00016.55
7.4.160.0000.00716.66
7.4.150.0000.00716.60
7.4.140.0040.00416.45
7.4.130.0040.00416.20
7.4.120.0040.00416.46
7.4.110.0050.00216.49
7.4.100.0040.00416.57
7.4.90.0000.00716.25
7.4.80.0000.00716.63
7.4.70.0040.00416.44
7.4.60.0040.00416.55
7.4.50.0030.00316.51
7.4.40.0040.00416.34
7.4.30.0050.00216.34
7.4.20.0040.00416.63
7.4.10.0000.00716.56
7.4.00.0030.00316.39
7.3.330.0000.00716.22
7.3.320.0030.00313.06
7.3.310.0000.00616.05
7.3.300.0070.00016.27
7.3.290.0000.00716.22
7.3.280.0070.00016.29
7.3.270.0000.00916.18
7.3.260.0030.00516.26
7.3.250.0030.00616.31
7.3.240.0000.00916.30
7.3.230.0030.00516.21
7.3.220.0000.00716.06
7.3.210.0000.00716.18
7.3.200.0020.00516.18
7.3.190.0070.00016.23
7.3.180.0000.00716.29
7.3.170.0000.00716.22
7.3.160.0000.00716.16
7.3.150.0030.00316.16
7.3.140.0000.00716.04
7.3.130.0000.00816.23
7.3.120.0000.00716.12
7.3.110.0050.00216.13
7.3.100.0020.00516.18
7.3.90.0000.00716.49
7.3.80.0000.00716.01
7.3.70.0000.00716.30
7.3.60.0000.00716.42
7.3.50.0000.00716.39
7.3.40.0070.00016.33
7.3.30.0070.00016.25
7.3.20.0060.00316.38
7.3.10.0060.00616.30
7.3.00.0080.00016.36

preferences:
38.18 ms | 400 KiB | 5 Q