3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(20); $query_data = array('track' => 'lo que quieres buscar'); $user = 'username'; // replace with your account $pass = 'password'; // replace with your account $fp = fsockopen("stream.twitter.com", 80, $errno, $errstr, 20); if(!$fp){ print "$errstr ($errno)\n"; } else { $request = "GET /1/statuses/filter.json?" . http_build_query($query_data) . " HTTP/1.1\r\n"; $request .= "Host: stream.twitter.com\r\n"; $request .= "Authorization: Basic " . base64_encode($user . ':' . $pass) . "\r\n\r\n"; //fwrite($fp, $request); while(!feof($fp)){ $json = fgets($fp); echo($data); $data = json_decode($json, true); if($data){ // // Do something with the data! // var_dump($data); } } fclose($fp); }

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.70.0070.01518.56
8.3.60.0150.00018.68
8.3.50.0100.00716.80
8.3.40.0110.00419.27
8.3.30.0040.01118.96
8.3.20.0030.00521.11
8.3.10.0000.00822.02
8.3.00.0080.00019.85
8.2.180.0110.00718.67
8.2.170.0070.00722.96
8.2.160.0170.00320.64
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00020.54
8.2.120.0040.00726.35
8.2.110.0030.00821.35
8.2.100.0040.00818.03
8.2.90.0040.00419.30
8.2.80.0040.00418.15
8.2.70.0040.00417.75
8.2.60.0030.00518.17
8.2.50.0040.00418.16
8.2.40.0000.00922.39
8.2.30.0040.00421.20
8.2.20.0040.00418.27
8.2.10.0000.00718.42
8.2.00.0050.00218.30
8.1.280.0120.00325.92
8.1.270.0070.00024.16
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00319.69
8.1.230.0040.00822.20
8.1.220.0040.00417.80
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0090.00318.83
8.1.160.0040.00419.29
8.1.150.0050.00320.88
8.1.140.0060.00619.82
8.1.130.0000.00719.06
8.1.120.0040.00417.55
8.1.110.0000.00817.63
8.1.100.0040.00417.56
8.1.90.0040.00417.64
8.1.80.0030.00517.55
8.1.70.0070.00017.58
8.1.60.0040.00417.84
8.1.50.0030.00517.65
8.1.40.0030.00917.60
8.1.30.0040.00417.78
8.1.20.0000.00917.79
8.1.10.0000.00817.60
8.1.00.0000.00817.45
8.0.300.0050.00318.77
8.0.290.0030.00616.88
8.0.280.0070.00018.60
8.0.270.0000.00717.34
8.0.260.0000.00717.07
8.0.250.0000.00717.24
8.0.240.0040.00417.08
8.0.230.0030.00317.15
8.0.220.0030.00317.05
8.0.210.0040.00417.09
8.0.200.0070.00017.12
8.0.190.0040.00417.17
8.0.180.0000.00717.13
8.0.170.0070.00017.01
8.0.160.0070.00017.11
8.0.150.0000.00717.03
8.0.140.0000.00717.17
8.0.130.0060.00013.68
8.0.120.0000.00917.13
8.0.110.0000.00717.19
8.0.100.0030.00517.09
8.0.90.0040.00417.07
8.0.80.0090.00917.20
8.0.70.0000.00817.14
8.0.60.0020.00517.07
8.0.50.0070.00017.07
8.0.30.0060.01217.31
8.0.20.0140.01117.40
8.0.10.0080.00017.10
8.0.00.0070.01117.02
7.4.330.0000.00515.55
7.4.320.0000.00616.80
7.4.300.0000.00716.60
7.4.290.0000.00816.51
7.4.280.0080.00016.67
7.4.270.0020.00516.65
7.4.260.0050.00013.57
7.4.250.0030.00516.66
7.4.240.0000.00716.84
7.4.230.0040.00416.89
7.4.220.0160.00316.88
7.4.210.0130.00916.92
7.4.200.0050.00316.85
7.4.160.0120.00516.68
7.4.150.0070.02117.40
7.4.140.0100.01117.86
7.4.130.0140.00916.80
7.4.120.0100.01116.76
7.4.110.0190.00016.64
7.4.100.0030.01516.75
7.4.90.0110.00716.50
7.4.80.0070.01119.39
7.4.70.0130.00416.78
7.4.60.0080.00816.89
7.4.50.0080.00616.76
7.4.40.0140.00316.53
7.4.30.0070.01016.71
7.4.00.0100.00715.25
7.3.330.0030.00613.38
7.3.320.0030.00313.31
7.3.310.0030.00616.72
7.3.300.0000.00716.56
7.3.290.0060.01016.56
7.3.280.0100.00716.55
7.3.270.0090.00917.40
7.3.260.0140.00516.60
7.3.250.0160.00416.57
7.3.240.0150.00616.61
7.3.230.0030.01516.58
7.3.210.0030.01516.51
7.3.200.0090.00916.84
7.3.190.0130.00316.61
7.3.180.0090.00916.48
7.3.170.0030.01316.88
7.3.160.0090.01216.54
7.2.330.0110.00716.57
7.2.320.0150.00316.66
7.2.310.0030.01616.53
7.2.300.0120.00616.66
7.2.290.0090.00916.88
7.2.60.0030.01317.09
7.2.00.0140.00319.56
7.1.200.0050.00515.94
7.1.100.0040.00818.62
7.1.70.0070.00317.32
7.1.60.0330.01733.75
7.1.50.1270.02333.24
7.1.40.2670.02332.84
7.1.30.0400.02032.87
7.1.20.2530.02033.05
7.1.10.0030.01315.21
7.1.00.0200.00715.02
7.0.200.0100.01014.99
7.0.190.0330.01314.88
7.0.180.2530.01014.41
7.0.170.2770.01014.53
7.0.160.2270.00714.68
7.0.150.1000.01014.77
7.0.140.0400.01014.71
7.0.130.2130.01315.03
7.0.120.2630.01014.83
7.0.110.0130.01314.64
7.0.100.2800.01014.61
7.0.90.2700.00714.91
7.0.80.2230.01314.65
7.0.70.2600.01314.63
7.0.60.2370.01314.64
7.0.50.2330.01014.76
7.0.40.2430.01015.12
7.0.30.2830.00714.57
7.0.20.2670.01314.86
7.0.10.2430.01714.86
7.0.00.2700.01714.85

preferences:
55.14 ms | 401 KiB | 5 Q