3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_title($url){ $fp = file_get_contents($url); if (!$fp) return null; $res = preg_match("/<title>(.*)<\/title>/siU", $fp, $title_matches); if (!$res) return null; $title = preg_replace('/\s+/', ' ', $title_matches[1]); $title = trim($title); return $title; } get_title("http://google.com");
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for google.com failed: System error in /in/PDVMA on line 4 Warning: file_get_contents(http://google.com): Failed to open stream: php_network_getaddresses: getaddrinfo for google.com failed: System error in /in/PDVMA on line 4

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
71.35 ms | 401 KiB | 8 Q