3v4l.org

run code in 300+ PHP versions simultaneously
<?php $signature = 'sha512=FDE5518801C115C4886311877B4C37F6C26ABACE01ADB973EF372FB51C8F1E5321A83717161AD7DEFFD46F5013900E68B6220F3B25E9302A4208A9C673D32749'; $json = '{"notificationId":"4bbba8fb-1d32-46b6-a513-a9ca2fed885c","eventType":"net.authorize.customer.subscription.created","eventDate":"2019-11-27T06:20:36.3621687Z","webhookId":"a2929d59-147e-4400-a2bb-b3bd25a0311d","payload":{"name":"Test subscription","amount":290.00,"status":"active","profile":{"customerProfileId":1921894828,"customerPaymentProfileId":1834842681,"customerShippingAddressId":1879009509},"entityName":"subscription","id":"6168233"}}'; $secret = 'F7B582AFFA9372866965456CFAC0D1B1219258F955FD5266D1A96BF9BE3C85F7D54C7CDFF9EF3EE7D3916EACB5EE920167F557BBB307288C17FBD169F0257AB4'; //To check the header and signature is true if (hash_equals(strtolower($signature), 'sha512=' . hash_hmac('sha512', $json, $secret))) { echo 'valid'; }else{ echo 'invalid'; }

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.70.0060.00816.63
8.3.60.0070.00718.05
8.3.50.0110.00418.25
8.3.40.0120.00318.72
8.3.30.0110.00418.59
8.3.20.0020.00520.79
8.3.10.0080.00020.31
8.3.00.0040.00420.58
8.2.190.0060.01216.63
8.2.180.0040.01116.75
8.2.170.0040.01122.96
8.2.160.0110.00422.13
8.2.150.0150.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00819.95
8.2.110.0100.00020.95
8.2.100.0070.00417.91
8.2.90.0030.00618.03
8.2.80.0000.00819.02
8.2.70.0060.00218.51
8.2.60.0040.00518.58
8.2.50.0050.00418.60
8.2.40.0050.00319.19
8.2.30.0050.00318.89
8.2.20.0050.00318.67
8.2.10.0050.00318.75
8.2.00.0030.00618.84
8.1.280.0110.00325.92
8.1.270.0040.00420.68
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00022.02
8.1.230.0110.00022.68
8.1.220.0090.00017.74
8.1.210.0000.00818.86
8.1.200.0040.00518.36
8.1.190.0030.00618.29
8.1.180.0040.00618.49
8.1.170.0040.00518.54
8.1.160.0040.00418.72
8.1.150.0060.00318.44
8.1.140.0050.00418.45
8.1.130.0050.00318.19
8.1.120.0060.00318.21
8.1.110.0040.00518.21
8.1.100.0050.00418.18
8.1.90.0040.00518.22
8.1.80.0050.00418.21
8.1.70.0030.00518.20
8.1.60.0040.00418.26
8.1.50.0060.00318.21
8.1.40.0040.00518.24
8.1.30.0030.00518.26
8.1.20.0040.00418.47
8.1.10.0050.00318.22
8.1.00.0040.00518.46
8.0.300.0040.00420.03
8.0.290.0040.00417.99
8.0.280.0040.00418.33
8.0.270.0070.00118.12
8.0.260.0040.00418.03
8.0.250.0050.00318.06
8.0.240.0030.00518.11
8.0.230.0040.00418.11
8.0.220.0020.00618.05
8.0.210.0050.00318.01
8.0.200.0030.00518.10
8.0.190.0050.00218.10
8.0.180.0030.00418.10
8.0.170.0040.00518.12
8.0.160.0040.00418.06
8.0.150.0040.00418.05
8.0.140.0040.00418.00
8.0.130.0040.00417.34
8.0.120.0020.00618.01
8.0.110.0030.00418.06
8.0.100.0040.00418.03
8.0.90.0030.00518.00
8.0.80.0060.00517.92
8.0.70.0030.00617.95
8.0.60.0030.00517.98
8.0.50.0060.00217.95
8.0.30.0070.00617.72
8.0.20.0050.00617.85
8.0.10.0030.00718.05
8.0.00.0080.00617.85
7.4.330.0020.00317.24
7.4.320.0100.00417.78
7.4.300.0100.00317.75
7.4.290.0080.00617.80
7.4.280.0110.00417.72
7.4.270.0080.00517.80
7.4.260.0100.00417.11
7.4.250.0110.00317.75
7.4.240.0100.00417.29
7.4.230.0090.00517.44
7.4.220.0080.00517.28
7.4.210.0090.00717.45
7.4.200.0080.00617.42
7.4.190.0110.00417.69
7.4.180.0120.00417.66
7.4.160.0060.00917.45
7.4.150.0120.00317.45
7.4.140.0110.00617.49
7.4.130.0110.00517.26
7.4.120.0100.00617.27
7.4.110.0090.00717.24
7.4.100.0080.00817.28
7.4.90.0110.00517.25
7.4.80.0080.00817.77
7.4.70.0090.00717.26
7.4.60.0080.00717.24
7.4.50.0080.00817.27
7.4.40.0090.00717.23
7.4.30.0110.00417.40
7.4.20.0080.00717.41
7.4.10.0090.00717.00
7.4.00.0100.00616.50
7.3.330.0090.00517.34
7.3.320.0090.00516.72
7.3.310.0120.00217.39
7.3.300.0100.00417.38
7.3.290.0090.00517.05
7.3.280.0090.00617.38
7.3.270.0100.00517.37
7.3.260.0100.00717.21
7.3.250.0090.00717.38
7.3.240.0110.00616.85
7.3.230.0120.00517.22
7.3.220.0110.00617.37
7.3.210.0120.00517.17
7.3.200.0140.00317.16
7.3.190.0120.00417.17
7.3.180.0120.00517.19
7.3.170.0120.00417.20
7.3.160.0120.00517.14
7.3.150.0110.00517.34
7.3.140.0120.00517.36
7.3.130.0150.00216.84
7.3.120.0090.00616.34
7.3.110.0110.00716.29
7.3.100.0100.00616.29
7.3.90.0080.00816.35
7.3.80.0100.00616.30
7.3.70.0100.00516.30
7.3.60.0090.00716.28
7.3.50.0100.00716.31
7.3.40.0090.00816.33
7.3.30.0090.00616.31
7.3.20.0150.00516.50
7.3.10.0100.00616.51
7.3.00.0100.00816.47
7.2.340.0080.00617.75
7.2.330.0110.00717.26
7.2.320.0120.00617.25
7.2.310.0120.00617.26
7.2.300.0110.00717.27
7.2.290.0110.00617.25
7.2.280.0140.00417.40
7.2.270.0130.00417.37
7.2.260.0150.00517.00
7.2.250.0090.00816.38
7.2.240.0110.00816.41
7.2.230.0100.00816.33
7.2.220.0110.00616.44
7.2.210.0100.00716.46
7.2.200.0120.00716.42
7.2.190.0130.00516.36
7.2.180.0120.00516.44
7.2.170.0140.00316.46
7.2.160.0110.00716.44
7.2.150.0140.00516.65
7.2.140.0140.00516.65
7.2.130.0110.00616.73
7.2.120.0110.00616.72
7.2.110.0130.00716.71
7.2.100.0120.00716.72
7.2.90.0150.00516.77
7.2.80.0100.01016.74
7.2.70.0120.00816.65
7.2.60.0130.00816.73
7.2.50.0080.01216.68
7.2.40.0100.00916.70
7.2.30.0140.00516.75
7.2.20.0120.00716.81
7.2.10.0130.00616.66
7.2.00.0120.00516.68
7.1.330.0130.00516.05
7.1.320.0130.00516.07
7.1.310.0100.00616.09
7.1.300.0110.00516.04
7.1.290.0110.00716.06
7.1.280.0110.00615.99
7.1.270.0100.00716.05
7.1.260.0090.00716.11
7.1.250.0120.00516.05
7.1.240.0130.00516.32
7.1.230.0100.00716.38
7.1.220.0230.00416.29
7.1.210.0130.00616.36
7.1.200.0150.00416.37
7.1.190.0130.00616.31
7.1.180.0130.00816.33
7.1.170.0120.00516.33
7.1.160.0110.00616.36
7.1.150.0120.00516.28
7.1.140.0100.00716.31
7.1.130.0110.00716.36
7.1.120.0180.00616.33
7.1.110.0140.00516.33
7.1.100.0130.00716.32
7.1.90.0110.00616.27
7.1.80.0130.00516.27
7.1.70.0130.00716.28
7.1.60.0170.00516.29
7.1.50.0130.00716.33
7.1.40.0110.00716.37
7.1.30.0100.00716.35
7.1.20.0090.00816.26
7.1.10.0090.00916.35
7.1.00.0110.00816.36

preferences:
18 ms | 401 KiB | 5 Q