3v4l.org

run code in 300+ PHP versions simultaneously
<?php $get = file_get_contents("https://www.google.com/finance/converter?a=$amount&from=$from&to=$to"); $get = explode("<span class=bld>",$get); $get = explode("</span>",$get[1]); $converted_amount = preg_replace("/[^0-9\.]/", null, $get[0]); return round($converted_amount);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $amount in /in/IG2Dm on line 3 Warning: Undefined variable $from in /in/IG2Dm on line 3 Warning: Undefined variable $to in /in/IG2Dm on line 3 Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/IG2Dm on line 3 Warning: file_get_contents(): open_basedir restriction in effect. File(https://www.google.com/finance/converter?a=&from=&to=) is not within the allowed path(s): (/tmp:/in:/etc) in /in/IG2Dm on line 3 Warning: file_get_contents(https://www.google.com/finance/converter?a=&from=&to=): Failed to open stream: Operation not permitted in /in/IG2Dm on line 3 Warning: Undefined array key 1 in /in/IG2Dm on line 5 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/IG2Dm on line 5 Deprecated: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated in /in/IG2Dm on line 6 Fatal error: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /in/IG2Dm:11 Stack trace: #0 /in/IG2Dm(11): round('') #1 {main} thrown in /in/IG2Dm on line 11
Process exited with code 255.

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