3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://somedomain.com/somesite/'; $content = file_get_contents($url); $first_step = explode( '<div id="thediv">' , $content ); $second_step = explode("</div>" , $first_step[1] ); echo $second_step[0];
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/ULK6f on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(https://somedomain.com/somesite/) is not within the allowed path(s): (/tmp:/in:/etc) in /in/ULK6f on line 4 Warning: file_get_contents(https://somedomain.com/somesite/): Failed to open stream: Operation not permitted in /in/ULK6f on line 4 Warning: Undefined array key 1 in /in/ULK6f on line 6 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/ULK6f on line 6

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:
47.21 ms | 402 KiB | 8 Q