3v4l.org

run code in 300+ PHP versions simultaneously
<?php //initial test setup mkdir($a = sys_get_temp_dir() . '/A'); mkdir($b = sys_get_temp_dir() . '/A/B'); mkdir($c = sys_get_temp_dir() . '/A/B/C'); $template = <<<EOL <?php var_dump(__FILE__); EOL; $incTemplate = <<<EOL <?php include '../do_a.php'; include '../do_b.php'; EOL; file_put_contents($b . '/do_a.php', $template); file_put_contents($b . '/do_b.php', $template); file_put_contents($c . '/do.php', $incTemplate); ini_set('display_errors', 'on'); ini_set('error_reporting', -1); //end test setup if ($doAllThings = realpath($c . '/do.php')) { include $doAllThings; //warnings echo '---------------------' . PHP_EOL; chdir(dirname($doAllThings)); include $doAllThings; }
Output for git.master, git.master_jit
Warning: mkdir(): File exists in /in/D0Tn6 on line 5 Warning: mkdir(): File exists in /in/D0Tn6 on line 6 Warning: mkdir(): File exists in /in/D0Tn6 on line 7 Warning: include(): open_basedir restriction in effect. File(../do_a.php) is not within the allowed path(s): (/tmp:/in:/etc) in /tmp/A/B/C/do.php on line 2 Warning: include(../do_a.php): Failed to open stream: Operation not permitted in /tmp/A/B/C/do.php on line 2 Warning: include(): Failed opening '../do_a.php' for inclusion (include_path='.:') in /tmp/A/B/C/do.php on line 2 Warning: include(): open_basedir restriction in effect. File(../do_b.php) is not within the allowed path(s): (/tmp:/in:/etc) in /tmp/A/B/C/do.php on line 3 Warning: include(../do_b.php): Failed to open stream: Operation not permitted in /tmp/A/B/C/do.php on line 3 Warning: include(): Failed opening '../do_b.php' for inclusion (include_path='.:') in /tmp/A/B/C/do.php on line 3 --------------------- string(17) "/tmp/A/B/do_a.php" string(17) "/tmp/A/B/do_b.php"
Output for rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(../do_a.php) is not within the allowed path(s): (/tmp:/in:/etc) in /tmp/A/B/C/do.php on line 2 Warning: include(../do_a.php): Failed to open stream: Operation not permitted in /tmp/A/B/C/do.php on line 2 Warning: include(): Failed opening '../do_a.php' for inclusion (include_path='.:') in /tmp/A/B/C/do.php on line 2 Warning: include(): open_basedir restriction in effect. File(../do_b.php) is not within the allowed path(s): (/tmp:/in:/etc) in /tmp/A/B/C/do.php on line 3 Warning: include(../do_b.php): Failed to open stream: Operation not permitted in /tmp/A/B/C/do.php on line 3 Warning: include(): Failed opening '../do_b.php' for inclusion (include_path='.:') in /tmp/A/B/C/do.php on line 3 --------------------- string(17) "/tmp/A/B/do_a.php" string(17) "/tmp/A/B/do_b.php"

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:
27.97 ms | 409 KiB | 5 Q