3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileClass = tmpfile(); $url = 'https://raw.githubusercontent.com/colshrapnel/safemysql/master/safemysql.class.php'; try{ file_put_contents($fileClass, file_get_contents($url)) ; require $fileClass; } catch(Exception $e){ die('could not load lybrary because '. $e->getMessage()); }
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/N6536 on line 5 Warning: file_get_contents(): open_basedir restriction in effect. File(https://raw.githubusercontent.com/colshrapnel/safemysql/master/safemysql.class.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/N6536 on line 5 Warning: file_get_contents(https://raw.githubusercontent.com/colshrapnel/safemysql/master/safemysql.class.php): Failed to open stream: Operation not permitted in /in/N6536 on line 5 Fatal error: Uncaught TypeError: file_put_contents(): Argument #1 ($filename) must be of type string, resource given in /in/N6536:5 Stack trace: #0 /in/N6536(5): file_put_contents(Resource id #4, false) #1 {main} thrown in /in/N6536 on line 5
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:
36.71 ms | 402 KiB | 8 Q