3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parsed_url = parse_url($url = "http://en.wikipedia.org/w/api.php?action=query&prop=extracts|info&titles=**VARIABLE**&format=json&explaintext&redirects&inprop=url&indexpageids"); $params = []; parse_str($parsed_url['query'], $params); $title = 'Some example';// $data->query->pages->$pageid->title; $params['titles'] = $title; $parsed_url['query'] = http_build_query($params); $url = $parsed_url['scheme'] . '://' . $parsed_url['host'] . $parsed_url['path']. '?' . $parsed_url['query']; echo $url;

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.140.0030.00617.26
8.3.130.0080.00018.15
8.3.120.0040.00420.90
8.3.110.0060.00320.94
8.3.100.0030.01924.06
8.3.90.0110.00726.77
8.3.80.0060.00317.97
8.3.70.0040.01118.43
8.3.60.0160.00618.43
8.3.50.0110.00416.68
8.3.40.0070.00720.04
8.3.30.0160.00018.77
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.250.0040.00416.52
8.2.240.0050.00318.85
8.2.230.0000.01122.58
8.2.220.0120.00337.54
8.2.210.0150.00426.77
8.2.200.0060.00316.63
8.2.190.0160.00616.58
8.2.180.0070.01116.50
8.2.170.0110.00718.95
8.2.160.0060.01222.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00326.16
8.2.110.0060.00320.97
8.2.100.0040.00820.38
8.2.90.0000.01119.28
8.2.80.0000.00818.28
8.2.70.0040.00418.05
8.2.60.0100.00018.05
8.2.50.0050.00318.16
8.2.40.0040.00418.04
8.2.30.0040.00418.13
8.2.20.0040.00417.76
8.2.10.0050.00317.65
8.2.00.0030.00617.63
8.1.300.0030.00617.81
8.1.290.0030.00630.84
8.1.280.0150.00625.92
8.1.270.0090.00023.69
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0000.00822.25
8.1.230.0000.01220.79
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0000.00818.84
8.1.160.0040.00418.92
8.1.150.0070.00417.63
8.1.140.0030.00817.63
8.1.130.0070.00317.63
8.1.120.0070.00317.63
8.1.110.0090.00017.63
8.1.100.0060.00317.63
8.1.90.0090.00017.63
8.1.80.0000.00917.63
8.1.70.0040.00719.35
8.1.60.0060.00319.52
8.1.50.0070.00217.63
8.1.40.0070.00317.63
8.1.30.0070.00717.69
8.1.20.0060.00617.71
8.1.10.0000.00917.63
8.1.00.0020.00717.63
8.0.300.0040.00419.66
8.0.290.0000.00716.63
8.0.280.0000.00818.49
8.0.270.0030.00718.71
8.0.260.0060.00317.63
8.0.250.0000.00917.63
8.0.240.0060.00317.63
8.0.230.0060.00617.63
8.0.220.0060.00317.63
8.0.210.0060.00617.63
8.0.200.0090.00017.63
8.0.190.0090.00017.63
8.0.180.0040.00817.63
8.0.170.0120.00017.63
8.0.160.0120.00617.63
8.0.150.0000.01017.63
8.0.140.0070.00217.63
8.0.130.0050.00517.63
8.0.120.0000.01017.63
8.0.110.0110.00017.63
8.0.100.0070.00417.63
8.0.90.0100.00017.63
8.0.80.0030.00518.51
8.0.70.0040.00418.45
8.0.60.0080.00018.64
8.0.50.0040.00417.63
8.0.30.0000.00817.63
8.0.20.0020.00517.63
8.0.10.0000.00817.63

preferences:
46.79 ms | 403 KiB | 5 Q