3v4l.org

run code in 300+ PHP versions simultaneously
<?php // jSON Request URL $json_url = 'https://creativecommons.tankerkoenig.de/json/detail.php?callback=jQuery21109931204902741544_1440230150966&id=fb79c457-543a-4ff6-ba70-cd270ac2110a&apikey=00000000-0000-0000-0000-000000000001&_=1440230150968'; $username = ‘your_username’; // authentication $password = ‘your_password’; // authentication // jSON String for request $json_string = 'station->e5'; // Initializing curl $ch = curl_init( $json_url ); // Configuring curl options $options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_USERPWD => $username . ":" . $password, // authentication CURLOPT_HTTPHEADER => array(‘Content-type: application/json’) , CURLOPT_POSTFIELDS => $json_string ); // Setting curl options curl_setopt_array( $ch, $options ); // Getting results $result = curl_exec($ch); // Getting jSON result string ?>

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)
5.6.120.0130.06721.15
5.6.110.0030.04721.02
5.6.100.0030.08721.08
5.6.90.0170.07720.96
5.6.80.0030.08720.29
5.6.70.3630.04720.50
5.5.280.0070.04320.87
5.5.270.0200.07320.88
5.5.260.0100.08320.76
5.5.250.0070.04020.54
5.5.240.0230.07320.23
5.4.440.0830.05719.45
5.4.430.0670.06019.16
5.4.420.0870.05019.47
5.4.410.0970.06319.46
5.4.400.0970.04319.02
5.4.390.0930.06019.15
5.4.380.0900.05719.06
5.4.370.0900.05018.84
5.4.360.0830.05318.84
5.4.350.0770.05719.30
5.4.340.0730.06319.23
5.4.320.0830.05319.04
5.4.310.0700.05019.03
5.4.300.0800.05019.03
5.4.290.0770.05719.14
5.4.280.0770.05719.28
5.4.270.0830.05319.25
5.4.260.0830.04719.12
5.4.250.0800.05019.12
5.4.240.0630.06719.27
5.4.230.0930.05019.14
5.4.220.0770.04719.27
5.4.210.0670.05319.15
5.4.200.0670.05016.95
5.4.190.0770.04718.93
5.4.180.0670.05319.06
5.4.170.0630.05719.18
5.4.160.0800.04019.17
5.4.150.0730.05318.99
5.4.140.0700.05016.36
5.4.130.0700.04316.57
5.4.120.0700.04716.51
5.4.110.0730.05016.41
5.4.100.0870.06716.38
5.4.90.0670.05316.43
5.4.80.0870.05016.50
5.4.70.0700.05016.36
5.4.60.0830.04716.52
5.4.50.0870.04016.40
5.4.40.0830.05316.54
5.4.30.0830.04716.27
5.4.20.0870.04316.52
5.4.10.0870.04016.47
5.4.00.0830.04715.84
5.3.290.0800.05714.60
5.3.280.0670.05314.58
5.3.270.0900.04714.44
5.3.260.0730.06714.55
5.3.250.0800.05714.59
5.3.240.0730.06014.46
5.3.230.0900.06314.58
5.3.220.0900.04714.52
5.3.210.0730.06014.41
5.3.200.0770.05314.40
5.3.190.0970.04714.55
5.3.180.0830.05014.42
5.3.170.0770.05714.39
5.3.160.0830.05314.41
5.3.150.0770.05714.40
5.3.140.0870.05014.57
5.3.130.0900.04314.64
5.3.120.0970.04314.50
5.3.110.0900.06314.39
5.3.100.0930.04713.92
5.3.90.0600.06313.89
5.3.80.0800.05013.98
5.3.70.0870.05013.85
5.3.60.0770.05713.87
5.3.50.0830.05013.72
5.3.40.0770.04714.04
5.3.30.0730.06013.84
5.3.20.0670.04313.71
5.3.10.0070.04713.63
5.3.00.0070.05013.47
5.2.170.0270.03710.99
5.2.160.0700.04011.00
5.2.150.0700.05010.94
5.2.140.0670.04710.99
5.2.130.0530.03710.97
5.2.120.0070.03710.90
5.2.110.0030.04310.96
5.2.100.0500.03011.13
5.2.90.0670.03710.95
5.2.80.0570.05010.93
5.2.70.0800.03310.95
5.2.60.0630.04011.10
5.2.50.0570.05011.04
5.2.40.0670.04310.84
5.2.30.0500.04310.80
5.2.20.0600.04011.00
5.2.10.0470.04310.86
5.2.00.0470.03310.57
5.1.60.0530.03010.02
5.1.50.0500.03710.16
5.1.40.0500.0439.86
5.1.30.0530.03710.26
5.1.20.0600.03010.26
5.1.10.0470.04010.09
5.1.00.0470.04310.12
5.0.50.0330.0338.54
5.0.40.0130.0308.27
5.0.30.0270.0438.10
5.0.20.0270.0278.20
5.0.10.0300.0238.01
5.0.00.0330.0408.08
4.4.90.0270.0235.85
4.4.80.0200.0275.84
4.4.70.0230.0235.82
4.4.60.0270.0205.79
4.4.50.0270.0205.81
4.4.40.0270.0335.84
4.4.30.0230.0275.82
4.4.20.0270.0175.86
4.4.10.0130.0275.86
4.4.00.0230.0335.87
4.3.110.0270.0235.74
4.3.100.0270.0135.77
4.3.90.0270.0205.70
4.3.80.0230.0375.66
4.3.70.0230.0235.76
4.3.60.0300.0205.75
4.3.50.0200.0275.66
4.3.40.0400.0275.71
4.3.30.0130.0234.50
4.3.20.0200.0174.41
4.3.10.0100.0234.37
4.3.00.0070.0236.99

preferences:
145.54 ms | 1394 KiB | 7 Q