3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getTweets($hash_tag) { $url = 'http://search.twitter.com/search.atom?q='.urlencode($hash_tag) ; echo "<p>Connecting to <strong>$url</strong> ...</p>"; $ch = curl_init($url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE); $xml = curl_exec ($ch); curl_close ($ch); //If you want to see the response from Twitter, uncomment this next part out: echo "<p>Response:</p>"; echo "<pre>".htmlspecialchars($xml)."</pre>"; $affected = 0; $twelement = new SimpleXMLElement($xml); foreach ($twelement->entry as $entry) { $text = trim($entry->title); $author = trim($entry->author->name); $time = strtotime($entry->published); $id = $entry->id; echo "<p>Tweet from ".$author.": <strong>".$text."</strong> <em>Posted ".date('n/j/y g:i a',$time)."</em></p>"; } return true ; } getTweets('#cats'); ?>

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.0030.01218.43
8.3.50.0070.00922.09
8.3.40.0040.01418.84
8.3.30.0110.00319.10
8.3.20.0000.00720.39
8.3.10.0050.00321.92
8.3.00.0080.00022.51
8.2.180.0070.00716.88
8.2.170.0060.00922.96
8.2.160.0070.00720.94
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0000.00817.75
8.2.110.0070.00322.29
8.2.100.0040.00817.91
8.2.90.0080.00020.50
8.2.80.0030.00619.09
8.2.70.0040.00419.65
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0040.00420.55
8.2.30.0050.00318.15
8.2.20.0050.00317.80
8.2.10.0000.00717.79
8.2.00.0070.00017.79
8.1.280.0210.00025.92
8.1.270.0130.00022.12
8.1.260.0080.00026.35
8.1.250.0120.00628.09
8.1.240.0030.00622.47
8.1.230.0080.00422.48
8.1.220.0000.00817.78
8.1.210.0030.00618.85
8.1.200.0090.00017.38
8.1.190.0050.00317.10
8.1.180.0030.00618.10
8.1.170.0080.00018.54
8.1.160.0000.00722.22
8.1.150.0030.00518.61
8.1.140.0030.00617.44
8.1.130.0000.00717.80
8.1.120.0030.00317.39
8.1.110.0050.00217.45
8.1.100.0000.00717.45
8.1.90.0040.00417.40
8.1.80.0000.00717.41
8.1.70.0030.00317.30
8.1.60.0000.00817.68
8.1.50.0030.00617.57
8.1.40.0070.00417.51
8.1.30.0040.00417.64
8.1.20.0040.00417.71
8.1.10.0000.00817.61
8.1.00.0060.00317.56
8.0.300.0040.00419.86
8.0.290.0050.00316.75
8.0.280.0030.00318.50
8.0.270.0030.00317.23
8.0.260.0000.00716.79
8.0.250.0000.00717.08
8.0.240.0070.00017.05
8.0.230.0050.00316.99
8.0.220.0030.00316.99
8.0.210.0030.00316.98
8.0.200.0030.00317.04
8.0.190.0030.00617.11
8.0.180.0050.00216.89
8.0.170.0040.00416.93
8.0.160.0000.00716.89
8.0.150.0070.00016.84
8.0.140.0040.00416.94
8.0.130.0060.00013.39
8.0.120.0020.00516.91
8.0.110.0020.00517.00
8.0.100.0050.00316.98
8.0.90.0070.00016.91
8.0.80.0090.00617.04
8.0.70.0000.00816.90
8.0.60.0070.00017.02
8.0.50.0000.00816.86
8.0.30.0050.01517.09
8.0.20.0070.01017.40
8.0.10.0000.00717.06
8.0.00.0080.01016.86
7.4.330.0050.00015.08
7.4.320.0000.00616.60
7.4.300.0030.00316.68
7.4.290.0030.00316.54
7.4.280.0070.00016.56
7.4.270.0040.00416.63
7.4.260.0030.00316.50
7.4.250.0040.00416.59
7.4.240.0060.00116.59
7.4.230.0000.00716.54
7.4.220.0030.01616.56
7.4.210.0050.01116.58
7.4.200.0000.00816.59
7.4.190.0040.00316.71
7.4.160.0070.01016.52
7.4.150.0120.00617.40
7.4.140.0190.00717.86
7.4.130.0110.00816.57
7.4.120.0080.01016.56
7.4.110.0140.00316.75
7.4.100.0080.00816.57
7.4.90.0000.01716.46
7.4.80.0120.00616.55
7.4.70.0070.01016.45
7.4.60.0040.01216.49
7.4.50.0000.00716.52
7.4.40.0030.00922.77
7.4.30.0040.01116.67
7.4.10.0150.00415.22
7.4.00.0040.01215.05
7.3.330.0000.00513.32
7.3.320.0030.00313.40
7.3.310.0040.00416.44
7.3.300.0030.00316.41
7.3.290.0090.00616.31
7.3.280.0110.00916.36
7.3.270.0030.01317.40
7.3.260.0130.01016.44
7.3.250.0110.00916.56
7.3.240.0110.00516.69
7.3.230.0050.01716.40
7.3.210.0100.00716.52
7.3.200.0030.01519.39
7.3.190.0130.00616.52
7.3.180.0100.00616.62
7.3.170.0100.00716.51
7.3.160.0050.01516.64
7.3.130.0040.01515.16
7.3.120.0030.01014.95
7.3.110.0060.01315.04
7.3.100.0090.00314.96
7.3.90.0070.00415.11
7.3.80.0060.00614.74
7.3.70.0030.00914.88
7.3.60.0000.01215.11
7.3.50.0040.00814.58
7.3.40.0030.01014.99
7.3.30.0000.01214.90
7.3.20.0040.01116.68
7.3.10.0090.00316.49
7.3.00.0070.01116.56
7.2.330.0060.01216.43
7.2.320.0090.01016.71
7.2.310.0120.01216.52
7.2.300.0060.01116.58
7.2.290.0060.01616.35
7.2.260.0090.00915.13
7.2.250.0070.01015.10
7.2.240.0000.01115.31
7.2.230.0070.00715.26
7.2.220.0030.00915.14
7.2.210.0000.01415.14
7.2.200.0040.00414.79
7.2.190.0030.01315.00
7.2.180.0070.00715.04
7.2.170.0030.01214.75
7.2.160.0000.01214.91
7.2.150.0030.01016.61
7.2.140.0050.00516.90
7.2.130.0080.00816.90
7.2.120.0060.00916.87
7.2.110.0030.01416.82
7.2.100.0000.01716.96
7.2.90.0000.01516.98
7.2.80.0060.00616.61
7.2.70.0000.01016.85
7.2.60.0110.00316.72
7.2.50.0140.00316.95
7.2.40.0060.00616.57
7.2.30.0120.00616.83
7.2.20.0060.01016.64
7.2.10.0030.00916.69
7.2.00.0040.01118.19
7.1.330.0030.01015.52
7.1.320.0060.00615.63
7.1.310.0000.01515.79
7.1.300.0060.00315.73
7.1.290.0080.00315.85
7.1.280.0000.01415.59
7.1.270.0040.00715.45
7.1.260.0030.01015.77
7.1.250.0030.01215.91
7.1.240.0040.01215.83
7.1.230.0030.00615.79
7.1.220.0060.00615.71
7.1.210.0090.00615.78
7.1.200.0030.01015.63
7.1.190.0100.00315.82
7.1.180.0030.01315.96
7.1.170.0030.01115.54
7.1.160.0080.00015.79
7.1.150.0060.01015.79
7.1.140.0070.00615.63
7.1.130.0070.00315.90
7.1.120.0070.00415.79
7.1.110.0120.00315.91
7.1.100.0060.00816.77
7.1.90.0040.01115.51
7.1.80.0130.00315.98
7.1.70.0090.00416.61
7.1.60.0100.01017.82
7.1.50.0070.00516.38
7.1.40.0100.00315.86
7.1.30.0040.01115.58
7.1.20.0100.00315.75
7.1.10.0030.01315.69
7.1.00.0050.04019.00
7.0.330.0070.00715.52
7.0.320.0040.00815.41
7.0.310.0040.01115.62
7.0.300.0120.00415.39
7.0.290.0130.00015.51
7.0.280.0100.00715.11
7.0.270.0030.01015.44
7.0.260.0090.00315.14
7.0.250.0080.00615.58
7.0.240.0040.01215.57
7.0.230.0100.01015.19
7.0.220.0110.00715.30
7.0.210.0060.00915.48
7.0.200.0070.00516.02
7.0.190.0080.00415.39
7.0.180.0080.00415.20
7.0.170.0090.00615.54
7.0.160.0120.00315.49
7.0.150.0000.01115.53
7.0.140.0070.03518.77
7.0.130.0080.00515.45
7.0.120.0020.01415.24
7.0.110.0040.00815.43
7.0.100.0030.00715.46
7.0.90.0000.00915.32
7.0.80.0370.04017.65
7.0.70.0330.03417.66
7.0.60.0340.04017.74
7.0.50.0170.03817.76
7.0.40.0080.03816.93
7.0.30.0080.04916.65
7.0.20.0030.04916.77
7.0.10.0050.04616.80
7.0.00.0020.04616.68
5.6.400.0130.00314.33
5.6.390.0090.00614.22
5.6.380.0030.00714.25
5.6.370.0030.00614.23
5.6.360.0130.00314.29
5.6.350.0100.00714.24
5.6.340.0030.01014.41
5.6.330.0000.01414.34
5.6.320.0070.00414.45
5.6.310.0040.01114.02
5.6.300.0030.01014.36
5.6.290.0070.00714.23
5.6.280.0050.04017.61
5.6.270.0040.01114.55
5.6.260.0040.01214.37
5.6.250.0090.00614.32
5.6.240.0070.00714.44
5.6.230.0050.04417.27
5.6.220.0030.04817.23
5.6.210.0120.03017.45
5.6.200.0050.03717.67
5.6.190.0050.03317.54
5.6.180.0080.04417.74
5.6.170.0100.04117.85
5.6.160.0040.03617.74
5.6.150.0030.03917.68
5.6.140.0100.02717.69
5.6.130.0050.04117.77
5.6.120.0030.04917.63
5.6.110.0030.04817.57
5.6.100.0050.04817.54
5.6.90.0060.02617.75
5.6.80.0120.04017.40
5.6.70.0080.04217.33
5.6.60.0090.02817.31
5.6.50.0090.03417.19
5.6.40.0080.04117.26
5.6.30.0030.02617.40
5.6.20.0050.04617.30
5.6.10.0030.02917.25
5.6.00.0050.02617.36
5.5.380.0060.00614.20
5.5.370.0130.03817.15
5.5.360.0060.04417.26
5.5.350.0070.04317.29
5.5.340.0020.03117.62
5.5.330.0050.03017.47
5.5.320.0080.04317.61
5.5.310.0100.02217.66
5.5.300.0070.04517.56
5.5.290.0100.02017.59
5.5.280.0090.04117.52
5.5.270.0080.04817.41
5.5.260.0130.02217.64
5.5.250.0110.04017.49
5.5.240.0090.02117.17
5.5.230.0070.04517.28
5.5.220.0050.04017.07
5.5.210.0050.02517.22
5.5.200.0050.02417.07
5.5.190.0080.03217.21
5.5.180.0070.03017.25
5.5.170.0130.00014.34
5.5.160.0120.03617.34
5.5.150.0120.02217.23
5.5.140.0070.04717.13
5.5.130.0090.04017.26
5.5.120.0050.03617.14
5.5.110.0030.03317.10
5.5.100.0130.03317.16
5.5.90.0030.02617.05
5.5.80.0080.04116.94
5.5.70.0100.03317.27
5.5.60.0100.03517.12
5.5.50.0120.03617.14
5.5.40.0090.04117.22
5.5.30.0060.02617.18
5.5.20.0030.04717.05
5.5.10.0090.04017.02
5.5.00.0060.02517.18
5.4.450.0060.03815.40
5.4.440.0060.04315.31
5.4.430.0090.02215.18
5.4.420.0020.04515.11
5.4.410.0080.04015.17
5.4.400.0050.04315.18
5.4.390.0080.03715.18
5.4.380.0050.02514.96
5.4.370.0070.04014.96
5.4.360.0060.03115.16
5.4.350.0040.02915.04
5.4.340.0000.04515.01
5.4.330.0040.00710.76
5.4.320.0060.02814.94
5.4.310.0020.04214.79
5.4.300.0080.03515.10
5.4.290.0070.02515.09
5.4.280.0070.04014.92
5.4.270.0100.03715.12
5.4.260.0030.04415.16
5.4.250.0070.02214.75
5.4.240.0080.04415.12
5.4.230.0050.04115.08
5.4.220.0100.03715.21
5.4.210.0070.02515.13
5.4.200.0080.04015.16
5.4.190.0050.03715.20
5.4.180.0080.03814.97
5.4.170.0060.02515.07
5.4.160.0080.03815.07
5.4.150.0090.03715.05
5.4.140.0050.04013.72
5.4.130.0070.02213.69
5.4.120.0030.04213.70
5.4.110.0130.03513.76
5.4.100.0110.03013.78
5.4.90.0080.02013.75
5.4.80.0060.02813.68
5.4.70.0110.02113.72
5.4.60.0080.03713.62
5.4.50.0030.03313.79
5.4.40.0100.03313.80
5.4.30.0050.02213.56
5.4.20.0080.03613.68
5.4.10.0060.02513.75
5.4.00.0020.03813.28
5.3.290.0020.03012.50
5.3.280.0100.03512.55
5.3.270.0080.03712.59
5.3.260.0070.02312.63
5.3.250.0060.03112.49
5.3.240.0080.04012.53
5.3.230.0050.04212.67
5.3.220.0060.03812.54
5.3.210.0050.04312.63
5.3.200.0060.03112.62
5.3.190.0030.02612.44
5.3.180.0070.02812.51
5.3.170.0050.03912.57
5.3.160.0070.03812.71
5.3.150.0050.03612.65
5.3.140.0080.03612.61
5.3.130.0060.02312.67
5.3.120.0070.03512.61
5.3.110.0050.02712.57
5.3.100.0050.04012.36
5.3.90.0000.03812.35
5.3.80.0080.02012.22
5.3.70.0050.03812.37
5.3.60.0070.03512.31
5.3.50.0020.03112.34
5.3.40.0030.04012.20
5.3.30.0070.03712.26
5.3.20.0100.03311.99
5.3.10.0080.03011.94
5.3.00.0050.03612.04
5.2.170.0030.06011.27
5.2.160.0230.02711.14
5.2.150.0070.06011.21
5.2.140.0100.05711.26
5.2.130.0030.05311.23
5.2.120.0030.06011.10
5.2.110.0070.04711.10
5.2.100.0070.06011.13
5.2.90.0030.04310.99
5.2.80.0100.05711.09
5.2.70.0030.06011.20
5.2.60.0100.05311.12
5.2.50.0000.07011.09
5.2.40.0030.06011.13
5.2.30.0100.06011.00
5.2.20.0000.06711.03
5.2.10.0070.03310.81
5.2.00.0130.04710.72
5.1.60.0030.05310.48
5.1.50.0000.05310.48
5.1.40.0070.03710.48
5.1.30.0000.06310.48
5.1.20.0030.04310.48
5.1.10.0070.05310.48
5.1.00.0100.04710.48
5.0.50.0100.04010.48
5.0.40.0070.04010.48
5.0.30.0030.07010.48
5.0.20.0030.03310.48
5.0.10.0000.03710.48
5.0.00.0000.06310.48
4.4.90.0030.03710.48
4.4.80.0000.02710.48
4.4.70.0000.02710.48
4.4.60.0030.01310.48
4.4.50.0030.02310.48
4.4.40.0000.06010.48
4.4.30.0000.02710.48
4.4.20.0070.03010.48
4.4.10.0030.03310.48
4.4.00.0030.05710.48
4.3.110.0070.03310.48
4.3.100.0030.03310.48
4.3.90.0070.03010.48
4.3.80.0030.03710.48
4.3.70.0070.02710.48
4.3.60.0000.03310.48
4.3.50.0070.02710.48
4.3.40.0070.04710.48
4.3.30.0030.03310.48
4.3.20.0030.03310.48
4.3.10.0030.03010.48
4.3.00.0000.03710.48

preferences:
49.27 ms | 400 KiB | 5 Q