3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "HOLA\n"; $text = file_get_contents('rawnike.php'); // $text = file_get_contents('http://www.facebook.com/plugins/fan.php?connections=10000&id=15087023444'); $text = preg_replace("/<script[^>]+\>/i", "", $text); $text = preg_replace("/<img[^>]+\>/i", "", $text); $pattern = '!(https?://[^\s]+)!'; // refine this for better/more specific results if (preg_match_all($pattern, $text, $matches)) { list(, $links) = ($matches); //print_r($links); //var_dump($links); } unset($links[0]);unset($links[1]);unset($links[2]);unset($links[3]);unset($links[4]);unset($links[5]);unset($links[6]);unset($links[7]); //var_dump($links); $links=str_replace('https','http',$links); $links=str_replace('\"','',$links); foreach ($links as $value) { echo "fb user ID: $value<br />\n"; } />

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)
5.4.80.0330.03316.40
5.4.70.0300.04016.41
5.4.60.0300.05316.37
5.4.50.0230.05016.45
5.4.40.0300.07016.38
5.4.30.0300.06316.27
5.4.20.0300.04316.42
5.4.10.0270.06716.42
5.4.00.0300.06315.79
5.3.180.0300.04014.46
5.3.170.0330.06014.53
5.3.160.0270.03714.46
5.3.150.0330.06714.54
5.3.140.0300.05714.54
5.3.130.0300.06314.57
5.3.120.0270.07014.45
5.3.110.0370.06314.50
5.3.100.0330.06313.92
5.3.90.0370.06313.96
5.3.80.0300.06314.04
5.3.70.0300.07313.84
5.3.60.0270.04313.97
5.3.50.0370.05713.97
5.3.40.0370.05713.79
5.3.30.0230.04013.84
5.3.20.0300.07013.63
5.3.10.0300.06713.58
5.3.00.0400.05713.59

preferences:
138.22 ms | 1394 KiB | 7 Q