3v4l.org

run code in 300+ PHP versions simultaneously
<?php $next_two_sunday = date('j F Y', strtotime('second Sunday')); $next_two_warta_dir = $root . '/Warta - Announcement/' . $next_two_sunday; mkdir($next_two_warta_dir); chmod($next_two_warta_dir, 0775); echo '<div>' . $next_two_warta_dir . ' created</div>'; # Move old Warta directory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (date('l') == "Sunday") { $last_sunday = date('ymd'); } else { $last_sunday = date('ymd', strtotime('last Sunday')); } $old_warta_dir = $root . '/Warta - Announcement/' . $last_sunday; $old_warta_dir = $root . '/Warta - Announcement/Archive/' . $old_warta_dir; rename($old_warta_dir, $new_two_warta_dir); echo '<div>' . $old_warta_dir . ' moved to ' . $new_two_warta_dir . '</div>';
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $root in /in/TqAWg on line 4 Warning: mkdir(): open_basedir restriction in effect. File(/Warta - Announcement/23 March 2014) is not within the allowed path(s): (/tmp:/in:/etc) in /in/TqAWg on line 5 Warning: chmod(): open_basedir restriction in effect. File(/Warta - Announcement/23 March 2014) is not within the allowed path(s): (/tmp:/in:/etc) in /in/TqAWg on line 6 <div>/Warta - Announcement/23 March 2014 created</div> Warning: Undefined variable $root in /in/TqAWg on line 20 Warning: Undefined variable $root in /in/TqAWg on line 21 Warning: Undefined variable $new_two_warta_dir in /in/TqAWg on line 22 Deprecated: rename(): Passing null to parameter #2 ($to) of type string is deprecated in /in/TqAWg on line 22 Warning: rename(): open_basedir restriction in effect. File(/Warta - Announcement/Archive//Warta - Announcement/140309) is not within the allowed path(s): (/tmp:/in:/etc) in /in/TqAWg on line 22 Warning: Undefined variable $new_two_warta_dir in /in/TqAWg on line 23 <div>/Warta - Announcement/Archive//Warta - Announcement/140309 moved to </div>

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