3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://devices.carnivalmobile.com/v7/devices/5c971fcf4a0af7000b5af4dc/messages.json'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); //curl_setopt($ch, CURLOPT_USERPWD, "$login:$password"); $headers = array( 'Content-Type:application/json', 'Authorization: Basic MjMxNjAxMzFhY2M1OjkxNzFlNWUzZjU2NDcxYTZlOTUxYjUzZjMwMjg=' ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); curl_close($ch); $json = json_decode($result); foreach($json->messages as $deal) { echo "<b>" . $deal->custom->universalLink . "</b> (" . $deal->title . ") <br /><br />"; }

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.0060.00916.50
8.3.50.0090.00518.09
8.3.40.0090.00919.24
8.3.30.0120.00318.46
8.3.20.0030.00524.18
8.3.10.0020.00524.66
8.3.00.0040.00426.16
8.2.180.0000.01425.92
8.2.170.0080.00822.96
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00226.35
8.2.110.0080.00022.30
8.2.100.0060.00619.45
8.2.90.0040.00417.75
8.2.80.0000.00818.90
8.2.70.0100.00017.63
8.2.60.0030.00617.90
8.2.50.0080.00018.07
8.2.40.0000.00718.03
8.2.30.0040.00418.11
8.2.20.0030.00518.06
8.2.10.0050.00219.12
8.2.00.0000.00719.12
8.1.280.0100.01025.92
8.1.270.0090.00023.99
8.1.260.0000.00728.09
8.1.250.0120.00428.09
8.1.240.0030.00620.70
8.1.230.0110.00017.77
8.1.220.0030.00517.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0000.00722.05
8.1.150.0000.00718.95
8.1.140.0020.00518.88
8.1.130.0000.00720.00
8.1.120.0040.00417.40
8.1.110.0040.00417.33
8.1.100.0020.00517.44
8.1.90.0000.00717.45
8.1.80.0060.00317.38
8.1.70.0000.00717.34
8.1.60.0040.00417.54
8.1.50.0000.00817.53
8.1.40.0030.00617.50
8.1.30.0000.00717.60
8.1.20.0040.00417.60
8.1.10.0000.00817.48
8.1.00.0000.00817.51
8.0.300.0000.00720.55
8.0.290.0020.00516.75
8.0.280.0070.00018.39
8.0.270.0040.00418.02
8.0.260.0000.00620.18
8.0.250.0070.00016.95
8.0.240.0030.00516.96
8.0.230.0040.00416.96
8.0.220.0040.00416.77
8.0.210.0040.00416.91
8.0.200.0070.00016.92
8.0.190.0080.00016.98
8.0.180.0040.00416.83
8.0.170.0030.00616.96
8.0.160.0050.00316.86
8.0.150.0070.00016.85
8.0.140.0000.00816.78
8.0.130.0030.00313.36
8.0.120.0000.00716.83
8.0.110.0040.00416.80
8.0.100.0000.00716.68
8.0.90.0000.00916.75
8.0.80.0060.00916.80
8.0.70.0050.00216.78
8.0.60.0040.00416.76
8.0.50.0000.00816.99
8.0.30.0080.01217.27
8.0.20.0030.01516.71
8.0.10.0050.00216.96
8.0.00.0090.00916.71
7.4.330.0040.00015.55
7.4.320.0040.00416.50
7.4.300.0000.00616.51
7.4.290.0040.00416.49
7.4.280.0040.00416.59
7.4.270.0030.00516.61
7.4.260.0030.00313.34
7.4.250.0000.00716.46
7.4.240.0050.00216.48
7.4.230.0030.00616.69
7.4.220.0030.00316.52
7.4.210.0090.00716.48
7.4.200.0000.00716.71
7.4.130.0080.00916.43
7.4.120.0120.00816.36
7.4.110.0030.01516.63
7.4.100.0090.00816.62
7.4.90.0140.00616.40
7.4.80.0110.00919.39
7.4.70.0080.00816.55
7.4.60.0080.01115.97
7.4.50.0140.01416.55
7.4.40.0200.00816.47
7.4.30.0220.00616.39
7.4.20.0230.00416.44
7.4.10.0170.00916.29
7.4.00.0130.01016.09
7.3.330.0000.00716.18
7.3.320.0060.00013.02
7.3.310.0040.00416.41
7.3.300.0030.00316.18
7.3.290.0040.01116.26
7.3.260.0180.00416.36
7.3.240.0080.00916.44
7.3.230.0120.00616.41
7.3.210.0100.00716.47
7.3.200.0090.00616.43
7.3.190.0130.00316.51
7.3.180.0250.00316.17
7.3.170.0220.00916.19
7.3.160.0200.01016.10
7.3.150.0160.01216.37
7.3.140.0200.01016.13
7.3.130.0270.00616.37
7.3.120.0250.00716.17
7.3.110.0280.00016.13
7.3.100.0170.01216.41
7.3.90.0190.01116.07
7.3.80.0270.00616.11
7.3.70.0240.00916.16
7.3.60.0180.01016.11
7.3.50.0170.00716.13
7.3.40.0180.01215.89
7.3.30.0200.01316.09
7.3.20.0190.01116.14
7.3.10.0210.00816.29
7.3.00.0220.00616.11
7.2.330.0060.01216.28
7.2.320.0170.00416.25
7.2.310.0200.00816.44
7.2.300.0150.01516.04
7.2.290.0190.01116.47
7.2.280.0130.01316.44
7.2.270.0230.00716.22
7.2.260.0190.01116.29
7.2.250.0210.00916.23
7.2.240.0190.00916.52
7.2.230.0290.00016.36
7.2.220.0230.00916.36
7.2.210.0140.01816.43
7.2.200.0170.00816.27
7.2.190.0220.00316.39
7.2.180.0120.01716.32
7.2.170.0200.01016.23
7.2.160.0240.01116.24
7.2.150.0250.00716.31
7.2.140.0260.00416.41
7.2.130.0260.00416.30
7.2.120.0190.01016.41
7.2.110.0230.01716.47
7.2.100.0330.00716.28
7.2.90.0300.01316.32
7.2.80.0260.00016.26
7.2.70.0280.00016.43
7.2.60.0590.00916.25
7.2.50.0230.01116.27
7.2.40.0230.00616.36
7.2.30.0170.01516.46
7.2.20.0230.00816.25
7.2.10.0270.01416.27
7.2.00.0070.01016.35

preferences:
44.93 ms | 401 KiB | 5 Q