3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<?php class Foo { public function __construct($x) { $this->x = $x; } }'; include "data://text/plain;base64,".base64_encode($string); $test = new Foo(5);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): data:// wrapper is disabled in the server configuration by allow_url_include=0 in /in/F8Pbc on line 5 Warning: include(data://text/plain;base64,PD9waHAgY2xhc3MgRm9vIHsgcHVibGljIGZ1bmN0aW9uIF9fY29uc3RydWN0KCR4KSB7ICR0aGlzLT54ID0gJHg7IH0gfQ==): Failed to open stream: no suitable wrapper could be found in /in/F8Pbc on line 5 Warning: include(): Failed opening 'data://text/plain;base64,PD9waHAgY2xhc3MgRm9vIHsgcHVibGljIGZ1bmN0aW9uIF9fY29uc3RydWN0KCR4KSB7ICR0aGlzLT54ID0gJHg7IH0gfQ==' for inclusion (include_path='.:') in /in/F8Pbc on line 5 Fatal error: Uncaught Error: Class "Foo" not found in /in/F8Pbc:7 Stack trace: #0 {main} thrown in /in/F8Pbc on line 7
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:
33.11 ms | 402 KiB | 8 Q