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('#ResearchOpinions'); ?>

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.0070.01118.42
8.3.50.0080.00721.95
8.3.40.0070.00718.79
8.3.30.0140.00018.99
8.3.20.0020.00520.20
8.3.10.0040.00422.17
8.3.00.0030.00522.44
8.2.180.0130.00616.59
8.2.170.0040.01122.96
8.2.160.0070.00720.94
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.51
8.2.110.0060.00319.23
8.2.100.0110.00017.84
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0100.00017.59
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00418.11
8.2.20.0000.00817.74
8.2.10.0000.00717.70
8.2.00.0030.00617.82
8.1.280.0060.00825.92
8.1.270.0050.00323.91
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00719.34
8.1.230.0080.00421.05
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0070.00021.85
8.1.150.0000.00818.59
8.1.140.0080.00017.43
8.1.130.0000.00817.87
8.1.120.0000.00817.43
8.1.110.0050.00317.40
8.1.100.0000.00717.36
8.1.90.0040.00417.30
8.1.80.0040.00417.35
8.1.70.0000.00717.40
8.1.60.0040.00417.63
8.1.50.0040.00417.45
8.1.40.0040.00417.61
8.1.30.0040.00417.55
8.1.20.0030.00517.58
8.1.10.0030.00517.61
8.1.00.0030.00617.51
8.0.300.0070.00018.77
8.0.290.0080.00017.18
8.0.280.0070.00018.48
8.0.270.0000.00717.28
8.0.260.0070.00016.87
8.0.250.0060.00016.96
8.0.240.0040.00417.03
8.0.230.0040.00417.05
8.0.220.0050.00217.00
8.0.210.0040.00417.00
8.0.200.0000.00716.93
8.0.190.0000.00817.02
8.0.180.0040.00416.91
8.0.170.0040.00417.01
8.0.160.0000.00717.02
8.0.150.0040.00416.95
8.0.140.0070.00016.85
8.0.130.0030.00313.43
8.0.120.0040.00416.95
8.0.110.0000.00716.99
8.0.100.0060.00316.85
8.0.90.0070.00016.98
8.0.80.0120.00616.95
8.0.70.0030.00516.86
8.0.60.0000.00817.02
8.0.50.0040.00416.88
8.0.30.0090.01017.13
8.0.20.0070.01217.40
8.0.10.0070.00016.91
8.0.00.0090.01016.79
7.4.330.0050.00015.01
7.4.320.0070.00016.48
7.4.300.0000.00616.64
7.4.290.0070.00016.63
7.4.280.0040.00416.53
7.4.270.0040.00416.66
7.4.260.0050.00516.46
7.4.250.0080.00016.55
7.4.240.0040.00416.59
7.4.230.0030.00516.35
7.4.220.0090.00916.64
7.4.210.0100.00516.61
7.4.200.0040.00416.75
7.4.190.0000.00716.67
7.4.160.0080.00816.72
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0070.01016.54
7.4.120.0110.00516.57
7.4.110.0070.01116.76
7.4.100.0040.01416.67
7.4.90.0040.01316.80
7.4.80.0030.01519.39
7.4.70.0130.00616.45
7.4.60.0030.01316.58
7.4.50.0060.00316.57
7.4.40.0030.01022.77
7.4.30.0090.01216.57
7.4.10.0070.01215.07
7.4.00.0100.00714.99
7.3.330.0000.00513.34
7.3.320.0050.00013.39
7.3.310.0070.00016.37
7.3.300.0030.00316.43
7.3.290.0070.00716.35
7.3.280.0080.01116.37
7.3.270.0200.00617.40
7.3.260.0160.00316.60
7.3.250.0080.01016.61
7.3.240.0110.01116.39
7.3.230.0080.00816.59
7.3.210.0100.00716.53
7.3.200.0100.00719.39
7.3.190.0030.01716.48
7.3.180.0100.00616.48
7.3.170.0000.01616.48
7.3.160.0170.00316.46
7.3.130.0050.01214.94
7.3.120.0060.00814.91
7.3.110.0100.00714.96
7.3.100.0030.01114.90
7.3.90.0040.00814.83
7.3.80.0080.00715.04
7.3.70.0040.00914.78
7.3.60.0100.00414.85
7.3.50.0070.00714.85
7.3.40.0060.00714.82
7.3.30.0080.00414.73
7.3.20.0070.00816.60
7.3.10.0060.00716.52
7.3.00.0060.00716.62
7.2.330.0090.00916.64
7.2.320.0070.01116.44
7.2.310.0150.00316.74
7.2.300.0130.00316.66
7.2.290.0070.01016.67
7.2.260.0030.01514.95
7.2.250.0090.00814.95
7.2.240.0050.01114.86
7.2.230.0030.01114.92
7.2.220.0060.01115.11
7.2.210.0110.00315.01
7.2.200.0090.00515.06
7.2.190.0030.01214.85
7.2.180.0070.00814.95
7.2.170.0020.00914.88
7.2.160.0020.01614.82
7.2.150.0110.00616.82
7.2.140.0090.00716.96
7.2.130.0040.00816.94
7.2.120.0030.01217.03
7.2.110.0080.00816.84
7.2.100.0090.00316.92
7.2.90.0040.00716.83
7.2.80.0030.00717.00
7.2.70.0070.00716.87
7.2.60.0040.00816.79
7.2.50.0070.00717.01
7.2.40.0060.00816.92
7.2.30.0070.00616.87
7.2.20.0110.00316.91
7.2.10.0040.00916.92
7.2.00.0030.01117.66
7.1.330.0060.00715.80
7.1.320.0070.00615.80
7.1.310.0050.01015.81
7.1.300.0020.01015.63
7.1.290.0020.01215.87
7.1.280.0030.00915.67
7.1.270.0030.01015.70
7.1.260.0070.00615.65
7.1.250.0070.00715.68
7.1.240.0050.00815.85
7.1.230.0020.00915.71
7.1.220.0050.00715.86
7.1.210.0020.01015.85
7.1.200.0050.00815.72
7.1.190.0020.01015.85
7.1.180.0080.00515.68
7.1.170.0110.00415.76
7.1.160.0070.00715.80
7.1.150.0050.00515.68
7.1.140.0080.00515.73
7.1.130.0060.00715.88
7.1.120.0060.00915.61
7.1.110.0060.00315.71
7.1.100.0070.00416.41
7.1.90.0000.01215.78
7.1.80.0070.00115.96
7.1.70.0050.00616.28
7.1.60.0040.01317.14
7.1.50.0030.00916.27
7.1.40.0100.00515.65
7.1.30.0020.00915.84
7.1.20.0100.00215.60
7.1.10.0070.00915.81
7.1.00.0060.02918.09
7.0.330.0050.00515.50
7.0.320.0050.00815.44
7.0.310.0060.00615.39
7.0.300.0080.00415.51
7.0.290.0060.00715.50
7.0.280.0030.00815.44
7.0.270.0060.00515.42
7.0.260.0070.00715.23
7.0.250.0020.01115.56
7.0.240.0060.00615.60
7.0.230.0030.01015.42
7.0.220.0040.00615.47
7.0.210.0050.00515.32
7.0.200.0060.00615.84
7.0.190.0060.00315.58
7.0.180.0050.00915.42
7.0.170.0020.00915.48
7.0.160.0020.01115.42
7.0.150.0050.01015.55
7.0.140.0070.03517.62
7.0.130.0000.01315.41
7.0.120.0070.00515.53
7.0.110.0040.01115.21
7.0.100.0040.03417.01
7.0.90.0070.03116.90
7.0.80.0040.02716.99
7.0.70.0070.02916.84
7.0.60.0110.02717.00
7.0.50.0030.02717.08
7.0.40.0090.02915.69
7.0.30.0060.03215.59
7.0.20.0050.02815.73
7.0.10.0070.01615.63
7.0.00.0020.02015.53
5.6.400.0080.00614.40
5.6.390.0050.00614.27
5.6.380.0050.00814.28
5.6.370.0050.00714.31
5.6.360.0060.00614.35
5.6.350.0030.00614.21
5.6.340.0070.00714.25
5.6.330.0030.01214.35
5.6.320.0070.00614.35
5.6.310.0050.00714.49
5.6.300.0080.00614.30
5.6.290.0110.00314.09
5.6.280.0050.02816.53
5.6.270.0030.00914.43
5.6.260.0040.01114.28
5.6.250.0080.02616.43
5.6.240.0050.03616.52
5.6.230.0050.02216.38
5.6.220.0070.03016.48
5.6.210.0060.01916.56
5.6.200.0080.01916.68
5.6.190.0060.03216.50
5.6.180.0050.03316.54
5.6.170.0090.02916.47
5.6.160.0060.02116.40
5.6.150.0050.03316.67
5.6.140.0030.03516.70
5.6.130.0050.03016.60
5.6.120.0060.03616.52
5.6.110.0070.02416.57
5.6.100.0050.02116.54
5.6.90.0070.02916.41
5.6.80.0060.02216.27
5.6.70.0080.03216.34
5.6.60.0060.02116.21
5.6.50.0080.02716.37
5.6.40.0080.02616.41
5.6.30.0030.03716.26
5.6.20.0020.02616.42
5.6.10.0090.02816.31
5.6.00.0060.03016.21
5.5.380.0120.02916.38
5.5.370.0040.02516.21
5.5.360.0060.03216.25
5.5.350.0040.03616.36
5.5.340.0090.02916.54
5.5.330.0090.02816.53
5.5.320.0070.02316.50
5.5.310.0090.01816.44
5.5.300.0090.03316.38
5.5.290.0090.01916.45
5.5.280.0050.02616.40
5.5.270.0040.02916.44
5.5.260.0070.03216.44
5.5.250.0080.03216.31
5.5.240.0050.03516.23
5.5.230.0060.02016.20
5.5.220.0070.01816.07
5.5.210.0060.03316.10
5.5.200.0050.02016.30
5.5.190.0100.03216.26
5.5.180.0070.03016.17
5.5.170.0030.01014.22
5.5.160.0060.03116.08
5.5.150.0090.02816.16
5.5.140.0070.02916.29
5.5.130.0080.02016.12
5.5.120.0050.03216.21
5.5.110.0070.02816.08
5.5.100.0070.03016.14
5.5.90.0070.03116.12
5.5.80.0040.03416.02
5.5.70.0070.03416.23
5.5.60.0050.03516.25
5.5.50.0040.02916.07
5.5.40.0050.02416.08
5.5.30.0070.02316.06
5.5.20.0070.03016.19
5.5.10.0100.02816.04
5.5.00.0090.02916.10
5.4.450.0020.02214.22
5.4.440.0040.02714.31
5.4.430.0090.02614.33
5.4.420.0070.02814.28
5.4.410.0050.03114.32
5.4.400.0020.03314.05
5.4.390.0090.02614.18
5.4.380.0000.03714.23
5.4.370.0090.02714.19
5.4.360.0090.02814.04
5.4.350.0050.02014.12
5.4.340.0080.01914.06
5.4.330.0030.00811.71
5.4.320.0040.02514.18
5.4.310.0030.03114.16
5.4.300.0070.02614.13
5.4.290.0030.02814.22
5.4.280.0060.02914.12
5.4.270.0050.01913.98
5.4.260.0030.01914.09
5.4.250.0010.02214.08
5.4.240.0100.02614.04
5.4.230.0070.02914.13
5.4.220.0070.01914.06
5.4.210.0070.01714.12
5.4.200.0080.02614.17
5.4.190.0090.02913.99
5.4.180.0060.02114.13
5.4.170.0100.02614.02
5.4.160.0040.02214.19
5.4.150.0060.02614.16
5.4.140.0040.01313.26
5.4.130.0060.01413.17
5.4.120.0030.02713.13
5.4.110.0040.01913.19
5.4.100.0080.01313.16
5.4.90.0050.02213.20
5.4.80.0030.01613.24
5.4.70.0030.01813.19
5.4.60.0000.01813.27
5.4.50.0010.01813.22
5.4.40.0030.01813.18
5.4.30.0050.02513.20
5.4.20.0060.02713.24
5.4.10.0020.03113.15
5.4.00.0020.02913.06
5.3.290.0060.02812.57
5.3.280.0050.02012.50
5.3.270.0040.02212.50
5.3.260.0050.02812.53
5.3.250.0070.02812.50
5.3.240.0030.02212.53
5.3.230.0040.02212.52
5.3.220.0020.02912.49
5.3.210.0030.02312.54
5.3.200.0060.01812.52
5.3.190.0050.01612.54
5.3.180.0020.02112.47
5.3.170.0030.01612.57
5.3.160.0040.01612.48
5.3.150.0020.02012.53
5.3.140.0020.01712.49
5.3.130.0040.01712.52
5.3.120.0060.01312.49
5.3.110.0040.02412.54
5.3.100.0040.02412.33
5.3.90.0010.01912.29
5.3.80.0010.01812.34
5.3.70.0030.01512.34
5.3.60.0040.02312.31
5.3.50.0040.01712.29
5.3.40.0030.02512.25
5.3.30.0020.02312.31
5.3.20.0030.01512.23
5.3.10.0020.01812.16
5.3.00.0090.00912.16
5.2.170.0070.02711.16
5.2.160.0000.03011.08
5.2.150.0000.04011.04
5.2.140.0000.05311.08
5.2.130.0030.02711.03
5.2.120.0070.05311.06
5.2.110.0030.04311.17
5.2.100.0000.03311.13
5.2.90.0000.03011.00
5.2.80.0000.03311.24
5.2.70.0000.03010.96
5.2.60.0030.02710.92
5.2.50.0070.03711.06
5.2.40.0000.03311.07
5.2.30.0000.03010.97
5.2.20.0000.03011.06
5.2.10.0030.02710.73
5.2.00.0070.02010.79
5.1.60.0000.02710.30
5.1.50.0070.02710.30
5.1.40.0000.02310.30
5.1.30.0000.02310.30
5.1.20.0030.02310.35
5.1.10.0000.02710.30
5.1.00.0030.02710.30
5.0.50.0000.02010.30
5.0.40.0030.02010.30
5.0.30.0000.03010.30
5.0.20.0000.01710.30
5.0.10.0000.02010.30
5.0.00.0000.03310.30
4.4.90.0030.01310.30
4.4.80.0030.01710.30
4.4.70.0000.01710.30
4.4.60.0030.01310.30
4.4.50.0000.01710.30
4.4.40.0000.02310.30
4.4.30.0000.01710.30
4.4.20.0000.01710.30
4.4.10.0000.01310.30
4.4.00.0000.02310.30
4.3.110.0000.01310.30
4.3.100.0000.01310.30
4.3.90.0030.01310.30
4.3.80.0000.03010.30
4.3.70.0000.02310.30
4.3.60.0000.01310.30
4.3.50.0000.01310.30
4.3.40.0000.02010.30
4.3.30.0000.01710.30
4.3.20.0030.01310.30
4.3.10.0000.01710.30
4.3.00.0000.01310.30

preferences:
43.99 ms | 401 KiB | 5 Q