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($json); $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.60.0110.01518.68
8.3.50.0090.01216.35
8.3.40.0160.00719.08
8.3.30.0160.00619.01
8.3.20.0040.00421.11
8.3.10.0030.00622.12
8.3.00.0050.00519.91
8.2.180.0130.01018.79
8.2.170.0130.00322.96
8.2.160.0120.00320.29
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00420.60
8.2.120.0080.00026.35
8.2.110.0070.00420.63
8.2.100.0090.00317.97
8.2.90.0040.00419.34
8.2.80.0080.00018.18
8.2.70.0060.00317.63
8.2.60.0080.00018.16
8.2.50.0000.00818.18
8.2.40.0040.00422.32
8.2.30.0040.00421.11
8.2.20.0000.00818.36
8.2.10.0030.00618.37
8.2.00.0000.00818.30
8.1.280.0060.01525.92
8.1.270.0200.00024.04
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0070.00321.08
8.1.230.0080.00419.30
8.1.220.0040.00417.90
8.1.210.0030.00518.77
8.1.200.0000.01017.48
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0030.00718.75
8.1.160.0040.00419.23
8.1.150.0060.00320.83
8.1.140.0060.00619.78
8.1.130.0000.00719.09
8.1.120.0040.00417.59
8.1.110.0030.00517.55
8.1.100.0080.00017.70
8.1.90.0030.00617.63
8.1.80.0030.00617.64
8.1.70.0070.00017.61
8.1.60.0000.00817.74
8.1.50.0000.00817.63
8.1.40.0030.00717.62
8.1.30.0000.00817.81
8.1.20.0070.00317.80
8.1.10.0040.00417.60
8.1.00.0000.00717.56
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0000.00718.56
8.0.270.0080.00017.51
8.0.260.0030.00317.09
8.0.250.0070.00017.16
8.0.240.0050.00317.13
8.0.230.0030.00317.11
8.0.220.0070.00017.08
8.0.210.0040.00417.04
8.0.200.0040.00417.15
8.0.190.0040.00417.16
8.0.180.0000.00817.08
8.0.170.0030.00317.25
8.0.160.0040.00417.11
8.0.150.0040.00417.05
8.0.140.0080.00017.05
8.0.130.0030.00313.61
8.0.120.0000.00817.16
8.0.110.0050.00317.21
8.0.100.0000.00817.07
8.0.90.0000.00717.17
8.0.80.0120.00617.22
8.0.70.0000.00817.08
8.0.60.0040.00417.16
8.0.50.0040.00417.12
8.0.30.0090.01017.24
8.0.20.0130.00917.40
8.0.10.0000.00817.21
8.0.00.0140.00616.97
7.4.330.0020.00215.55
7.4.320.0030.00316.71
7.4.300.0070.00016.73
7.4.290.0070.00416.54
7.4.280.0040.00416.73
7.4.270.0000.00716.67
7.4.260.0000.00513.50
7.4.250.0050.00316.68
7.4.240.0030.00616.76
7.4.230.0000.00716.63
7.4.220.0100.01016.88
7.4.210.0150.00416.84
7.4.200.0040.00416.89
7.4.160.0090.00916.59
7.4.150.0070.01017.40
7.4.140.0130.01017.86
7.4.130.0130.01016.87
7.4.120.0100.01416.78
7.4.110.0090.00916.64
7.4.100.0130.01016.80
7.4.90.0060.01216.88
7.4.80.0100.00919.39
7.4.70.0060.01116.74
7.4.60.0030.01516.64
7.4.50.0040.01416.67
7.4.40.0090.00916.85
7.4.30.0030.01417.00
7.4.00.0040.01515.07
7.3.330.0120.00013.56
7.3.320.0000.00613.55
7.3.310.0080.00016.53
7.3.300.0000.00716.38
7.3.290.0130.00616.55
7.3.280.0080.01016.56
7.3.270.0160.00617.40
7.3.260.0070.01016.63
7.3.250.0090.00916.59
7.3.240.0100.01216.57
7.3.230.0090.00916.61
7.3.210.0110.00816.54
7.3.200.0100.01016.74
7.3.190.0110.00616.63
7.3.180.0130.00316.74
7.3.170.0060.01216.72
7.3.160.0100.00716.59
7.2.330.0160.00616.81
7.2.320.0160.00316.88
7.2.310.0090.00916.54
7.2.300.0030.01316.36
7.2.290.0080.01116.71
7.2.60.0060.00617.16
7.2.00.0100.01318.68
7.1.200.0100.00316.04
7.1.100.0050.00318.37
7.1.70.0060.00617.52
7.1.60.0230.01733.45
7.1.50.5870.01733.25
7.1.40.0300.02732.83
7.1.30.1930.01733.20
7.1.20.0330.01032.98
7.1.10.0070.01714.82
7.1.00.0100.01015.26
7.0.200.5470.01015.24
7.0.190.5700.01014.88
7.0.180.0970.01014.57
7.0.170.2600.02014.78
7.0.160.0030.02014.63
7.0.150.0030.02014.55
7.0.140.0070.01014.93
7.0.130.3670.01714.92
7.0.120.1530.00314.79
7.0.110.0130.01314.93
7.0.100.0370.01714.61
7.0.90.0100.01014.56
7.0.80.4730.01014.87
7.0.70.4930.00714.61
7.0.60.6470.01314.68
7.0.50.4400.01314.71
7.0.40.0100.01314.80
7.0.30.0070.01714.69
7.0.20.0170.00714.81
7.0.10.3830.01715.04
7.0.00.3600.01715.04

preferences:
42.64 ms | 401 KiB | 5 Q