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();"; serialize($a);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property some_class::$logfile is deprecated in /in/aJqh8 on line 14 Deprecated: Creation of dynamic property some_class::$data is deprecated in /in/aJqh8 on line 15

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:
42.94 ms | 401 KiB | 8 Q