3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = array('www.roi.ru/api/petition/309.json', 'www.roi.ru/api/petition/401.json'); $urls2 = array('api.vkontakte.ru/method/users.get?uids=1', 'api.vkontakte.ru/method/users.get?uids=2'); $cmh = curl_multi_init(); $tasks = array(); foreach ($urls2 as $url) { $ch = curl_init('https://'.$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $tasks[$url] = $ch; curl_multi_add_handle($cmh, $ch); } $active = null; do { $mrc = curl_multi_exec($cmh, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM); while ($active && ($mrc == CURLM_OK)) { if (curl_multi_select($cmh) != -1) { do { $mrc = curl_multi_exec($cmh, $active); $info = curl_multi_info_read($cmh); if ($info['msg'] == CURLMSG_DONE) { $ch = $info['handle']; $url = array_search($ch, $tasks); $tasks[$url] = curl_multi_getcontent($ch); curl_multi_remove_handle($cmh, $ch); curl_close($ch); } } while ($mrc == CURLM_CALL_MULTI_PERFORM); } } curl_multi_close($cmh); echo "<br><pre>"; var_dump($tasks); echo "</pre>"; ?>

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.4.20.0070.01418.07
8.4.10.0030.00617.86
8.3.140.0140.00317.18
8.3.130.0040.00418.44
8.3.120.0030.00618.73
8.3.110.0040.00420.94
8.3.100.0060.00318.60
8.3.90.0040.00426.77
8.3.80.0030.00718.55
8.3.70.0150.00318.28
8.3.60.0120.00618.31
8.3.50.0120.00322.94
8.3.40.0040.01118.70
8.3.30.0140.00018.84
8.3.20.0040.00420.21
8.3.10.0000.00821.77
8.3.00.0050.00318.98
8.2.260.0000.00818.43
8.2.250.0060.01216.82
8.2.240.0070.01117.05
8.2.230.0030.00622.58
8.2.220.0090.00024.06
8.2.210.0080.00026.77
8.2.200.0040.00718.41
8.2.190.0070.01416.75
8.2.180.0060.00916.63
8.2.170.0110.00422.96
8.2.160.0070.01019.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0100.00021.02
8.2.100.0040.00717.78
8.2.90.0030.00517.84
8.2.80.0080.00018.98
8.2.70.0040.00417.75
8.2.60.0030.00617.50
8.2.50.0000.00817.68
8.2.40.0080.00018.16
8.2.30.0050.00318.09
8.2.20.0000.00817.63
8.2.10.0040.00417.97
8.2.00.0040.00418.10
8.1.310.0030.00518.23
8.1.300.0090.00017.91
8.1.290.0040.00718.88
8.1.280.0130.01025.92
8.1.270.0040.00423.91
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00319.13
8.1.230.0070.00420.84
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0030.00517.62
8.1.160.0040.00418.91
8.1.150.0050.00318.80
8.1.140.0030.00619.46
8.1.130.0000.00717.62
8.1.120.0030.00617.33
8.1.110.0030.00517.41
8.1.100.0040.00417.45
8.1.90.0040.00417.45
8.1.80.0000.00717.41
8.1.70.0000.00717.45
8.1.60.0000.00817.45
8.1.50.0050.00317.56
8.1.40.0000.00817.55
8.1.30.0030.00517.66
8.1.20.0040.00417.67
8.1.10.0030.00617.68
8.1.00.0000.01017.43
8.0.300.0040.00420.34
8.0.290.0000.00916.88
8.0.280.0000.00718.42
8.0.270.0000.00717.11
8.0.260.0030.00318.33
8.0.250.0000.00716.88
8.0.240.0060.00317.06
8.0.230.0000.00716.92
8.0.220.0070.00016.99
8.0.210.0000.00816.95
8.0.200.0080.00016.88
8.0.190.0050.00216.99
8.0.180.0000.00816.88
8.0.170.0030.00516.93
8.0.160.0000.00716.93
8.0.150.0030.00516.86
8.0.140.0040.00416.82
8.0.130.0090.00013.28
8.0.120.0040.00416.88
8.0.110.0050.00316.89
8.0.100.0000.00816.95
8.0.90.0020.00516.92
8.0.80.0040.01416.99
8.0.70.0080.00016.89
8.0.60.0040.00416.82
8.0.50.0040.00416.81
8.0.30.0080.01017.01
8.0.20.0130.00717.40
8.0.10.0060.00317.01
8.0.00.0180.00416.71
7.4.330.0000.00415.08
7.4.320.0000.00716.58
7.4.300.0030.00316.55
7.4.290.0000.00816.50
7.4.280.0050.00516.58
7.4.270.0030.00316.55
7.4.260.0030.00316.54
7.4.250.0000.00916.55
7.4.240.0040.00416.55
7.4.230.0000.00716.57
7.4.220.0040.01416.75
7.4.210.0070.00716.63
7.4.200.0000.00716.45
7.4.160.0040.01216.54
7.4.150.0110.00717.40
7.4.140.0090.00817.86
7.4.130.0090.00816.45
7.4.120.0140.00416.54
7.4.110.0120.00616.44
7.4.100.0090.01216.46
7.4.90.0130.01016.59
7.4.80.0130.00319.39
7.4.70.0130.00316.53
7.4.60.0030.01316.71
7.4.50.0140.00016.62
7.4.40.0100.01316.53
7.4.30.0090.00616.69
7.4.00.0000.01515.19
7.3.330.0000.00513.04
7.3.320.0050.00013.21
7.3.310.0000.00816.23
7.3.300.0070.00016.33
7.3.290.0050.01116.29
7.3.280.0110.00716.31
7.3.270.0130.00317.40
7.3.260.0090.00916.40
7.3.250.0110.00716.41
7.3.240.0060.01116.50
7.3.230.0100.00716.39
7.3.210.0090.01216.34
7.3.200.0190.00316.24
7.3.190.0100.00716.49
7.3.180.0100.01016.21
7.3.170.0130.00516.45
7.3.160.0100.01016.42
7.2.330.0090.01516.67
7.2.320.0070.01016.23
7.2.310.0000.02316.44
7.2.300.0070.01016.60
7.2.290.0100.00716.41
7.2.60.0240.00416.16
7.2.00.0100.00019.27
7.1.200.0120.00315.50
7.1.100.0040.00717.85
7.1.70.0060.00316.69
7.1.60.0110.01419.90
7.1.50.0110.01116.85
7.1.00.0000.08022.37
7.0.200.0130.00614.63
7.0.70.0330.06320.09
7.0.60.0130.05720.06
7.0.50.0170.06020.47
7.0.40.0170.05320.38
7.0.30.0030.08020.47
7.0.20.0300.06020.31
7.0.10.0170.06320.30
7.0.00.0130.06320.40
5.6.280.0130.06320.94
5.6.220.0130.06020.69
5.6.210.0170.08020.65
5.6.200.0130.06321.11
5.6.190.0130.06021.14
5.6.180.0200.05321.09
5.6.170.0070.06321.12
5.6.160.0200.05720.99
5.6.150.0200.05321.09
5.6.140.0170.05721.19
5.6.130.0230.05721.18
5.6.120.0170.05721.18
5.6.110.0230.05321.18
5.6.100.0130.06320.99
5.6.90.0130.06021.00
5.6.80.0170.05320.49
5.6.70.0170.05320.56
5.6.60.0200.07720.46
5.6.50.0130.06020.57
5.6.40.0130.05720.47
5.6.30.0170.05020.46
5.6.20.0200.05020.54
5.6.10.0070.06020.49
5.6.00.0100.06020.45
5.5.360.0330.07320.39
5.5.350.0230.05020.48
5.5.340.0170.08020.96
5.5.330.0230.04720.90
5.5.320.0170.05320.93
5.5.310.0200.05320.83
5.5.300.0130.06020.87
5.5.290.0300.04320.78
5.5.280.0170.06020.93
5.5.270.0100.06320.96
5.5.260.0200.05320.96
5.5.250.0200.07320.77
5.5.240.0170.06020.30
5.5.230.0300.05320.30
5.5.220.0170.05020.20
5.5.210.0100.05720.34
5.5.200.0300.05020.22
5.5.190.0130.06020.16
5.5.180.0200.05720.35
5.5.160.0030.06720.31
5.5.150.0130.05320.07
5.5.140.0100.05720.35
5.5.130.0130.06020.29
5.5.120.0100.06020.32
5.5.110.0230.04720.32
5.5.100.0200.05320.23
5.5.90.0130.06320.08
5.5.80.0230.05720.25
5.5.70.0100.07020.16
5.5.60.0200.05720.13
5.5.50.0070.05720.12
5.5.40.0100.05720.13
5.5.30.0100.05720.22
5.5.20.0170.05320.16
5.5.10.0100.05720.19
5.5.00.0170.05320.13

preferences:
35.28 ms | 403 KiB | 5 Q