3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('LOG_FILE_PATH', '/var/log/sekurak/'); class Logger { private $logfile; public function __construct() { $this->logfile = LOG_FILE_PATH . "logger.log.tmp"; touch($this->logfile); } public function __destruct() { echo "Usuwamy ".($this->logfile)."...\n"; unlink($this->logfile); } } $logger = new Logger(); var_export(serialize($logger));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: touch(): open_basedir restriction in effect. File(/var/log/sekurak/logger.log.tmp) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gfboF on line 10 'O:6:"Logger":1:{s:15:"' . "\0" . 'Logger' . "\0" . 'logfile";s:31:"/var/log/sekurak/logger.log.tmp";}'Usuwamy /var/log/sekurak/logger.log.tmp... Warning: unlink(): open_basedir restriction in effect. File(/var/log/sekurak/logger.log.tmp) is not within the allowed path(s): (/tmp:/in:/etc) in /in/gfboF 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:
39.2 ms | 402 KiB | 8 Q