3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'stn'; $password = '$ta7$T5d'; $url = 'https://purpleportal.net/api/location/v1/ping'; $token = base64_encode($username . ':' . $password); $curl = curl_init(); $headers = [ "Content-Type: application/json", "Authorization: basic " . $token, ]; curl_setopt_array($curl, [ CURLOPT_RETURNTRANSFER => 1, CURLOPT_HEADER => true, CURLOPT_URL => $url, CURLOPT_HTTPHEADER => $headers ]); $output = curl_exec($curl); // $info = curl_getinfo($curl, CURLINFO_HTTP_CODE); // var_dump($info); var_dump($output);

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.0140.00716.63
8.3.50.0160.00521.21
8.3.40.0110.00718.84
8.3.30.0070.00718.79
8.3.20.0000.00720.19
8.3.10.0040.00421.90
8.3.00.0040.00419.68
8.2.180.0120.00618.29
8.2.170.0070.00722.96
8.2.160.0130.01019.26
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0030.00620.47
8.2.100.0080.00417.88
8.2.90.0000.00819.17
8.2.80.0030.00617.97
8.2.70.0050.00317.75
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0050.00321.14
8.2.30.0000.00719.83
8.2.20.0040.00417.88
8.2.10.0040.00418.06
8.2.00.0070.00018.11
8.1.280.0070.00725.92
8.1.270.0000.00820.23
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00624.06
8.1.230.0090.00317.42
8.1.220.0040.00417.80
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0050.00322.04
8.1.150.0000.00918.84
8.1.140.0070.00017.48
8.1.130.0030.00517.68
8.1.120.0030.00417.52
8.1.110.0050.00317.39
8.1.100.0000.00717.37
8.1.90.0040.00417.50
8.1.80.0060.00317.50
8.1.70.0040.00417.55
8.1.60.0000.00717.51
8.1.50.0040.00417.52
8.1.40.0050.00317.56
8.1.30.0040.00817.69
8.1.20.0040.00417.68
8.1.10.0040.00417.50
8.1.00.0000.00717.54
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0030.00318.46
8.0.270.0070.00017.29
8.0.260.0030.00617.29
8.0.250.0030.00516.95
8.0.240.0000.00717.05
8.0.230.0030.00317.09
8.0.220.0000.00716.98
8.0.210.0050.00216.97
8.0.200.0000.00717.00
8.0.190.0040.00416.93
8.0.180.0000.00717.07
8.0.170.0050.00316.98
8.0.160.0030.00316.99
8.0.150.0050.00217.00
8.0.140.0020.00516.94
8.0.130.0060.00013.34
8.0.120.0000.00816.93
8.0.110.0070.00016.88
8.0.100.0050.00316.90
8.0.90.0050.00216.88
8.0.80.0060.01017.02
8.0.70.0040.00416.81
8.0.60.0000.00716.92
8.0.50.0000.00717.05
8.0.30.0100.00816.96
8.0.20.0150.00717.40
8.0.10.0040.00416.94
8.0.00.0070.01116.80
7.4.330.0030.00315.08
7.4.320.0000.00716.63
7.4.300.0030.00316.55
7.4.290.0000.00616.54
7.4.280.0000.00716.67
7.4.270.0070.00016.57
7.4.260.0070.00016.42
7.4.250.0030.00316.49
7.4.240.0030.00416.53
7.4.230.0000.00716.56
7.4.220.0070.01116.61
7.4.210.0100.00816.65
7.4.200.0070.00016.47
7.4.160.0030.01216.46
7.4.150.0140.00417.40
7.4.140.0110.00617.86
7.4.130.0100.00816.52
7.4.120.0100.00816.60
7.4.110.0110.01116.68
7.4.100.0110.01116.57
7.4.90.0100.00716.57
7.4.80.0070.01019.39
7.4.70.0100.01016.42
7.4.60.0100.00716.58
7.4.50.0040.00416.69
7.4.40.0070.01016.39
7.4.30.0140.00816.52
7.4.00.0110.00415.10
7.3.330.0050.00013.17
7.3.320.0000.00513.21
7.3.310.0030.00316.20
7.3.300.0000.00616.24
7.3.290.0040.00416.18
7.3.280.0090.00716.32
7.3.270.0120.01217.40
7.3.260.0060.01016.45
7.3.250.0090.00816.45
7.3.240.0160.01116.54
7.3.230.0140.01116.41
7.3.210.0100.00716.36
7.3.200.0060.01016.51
7.3.190.0130.00316.37
7.3.180.0120.00916.48
7.3.170.0070.01016.41
7.3.160.0030.01316.32
7.2.330.0060.01216.44
7.2.320.0150.00316.45
7.2.310.0130.00916.72
7.2.300.0070.01016.79
7.2.290.0100.00716.32
7.2.60.0060.00916.88
7.2.00.0000.00919.57
7.1.200.0100.00015.82
7.1.100.0070.00718.04
7.1.70.0000.00717.00
7.1.60.0060.01920.03
7.1.50.0070.01416.54
7.1.00.0030.07722.41
7.0.200.0620.00614.64
7.0.60.0030.09020.03
7.0.50.0070.05017.88
7.0.40.0000.07020.05
7.0.30.0200.05020.22
7.0.20.0200.08320.17
7.0.10.0170.07720.13
7.0.00.0130.07020.00
5.6.280.0070.06320.98
5.6.210.0030.08320.76
5.6.200.0170.07018.21
5.6.190.0070.08720.39
5.6.180.0170.07720.77
5.6.170.0270.08020.32
5.6.160.0030.04320.37
5.6.150.0100.05718.22
5.6.140.0030.06718.11
5.6.130.0030.04018.22
5.6.120.0100.07321.11
5.6.110.0070.06721.10
5.6.100.0100.05320.97
5.6.90.0070.06721.01
5.6.80.0000.04320.36
5.6.70.2400.06020.38
5.5.350.0200.08320.33
5.5.340.0000.04317.91
5.5.330.0070.05320.21
5.5.320.3700.04720.27
5.5.310.0300.07320.24
5.5.300.0030.04317.91
5.5.290.0030.05717.92
5.5.280.0130.07020.77
5.5.270.0100.08320.73
5.5.260.0100.07720.76
5.5.250.0100.05720.79
5.5.240.0200.05720.24
5.4.450.0630.06019.12
5.4.440.0800.05719.13
5.4.430.0630.05019.48
5.4.420.0700.06019.15
5.4.410.0600.05319.39
5.4.400.0670.04719.20
5.4.390.0430.06319.14
5.4.380.0630.05019.16
5.4.370.0800.03319.19
5.4.360.0600.04319.28
5.4.350.0570.05719.20
5.4.340.0630.06319.33
5.4.320.0470.07318.99
5.4.310.0530.05018.99
5.4.300.0430.05719.00
5.4.290.0770.05018.77
5.4.280.0430.05719.27
5.4.270.0530.04718.99
5.4.260.0470.06018.77
5.4.250.0500.05018.98
5.4.240.0130.06719.30
5.4.230.0100.07319.33
5.4.220.0200.06719.19
5.4.210.0600.05319.16
5.4.200.0670.05019.14
5.4.190.0600.05719.25
5.4.180.0830.06719.30
5.4.170.0630.06719.15
5.4.160.0600.05319.13
5.4.150.0670.05718.97
5.4.140.0670.05016.42
5.4.130.0500.06316.48
5.4.120.0570.05016.37
5.4.110.0570.05316.07
5.4.100.0630.04316.49
5.4.90.0670.04016.52
5.4.80.0500.04716.41
5.4.70.0030.05016.37
5.4.60.0200.07316.36
5.4.50.0070.06716.36
5.4.40.0370.05716.43
5.4.30.0170.03716.39
5.4.20.0330.06316.19

preferences:
61 ms | 401 KiB | 5 Q