3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class DaysOfWeek { const Sunday = 0; const Monday = 1; const Tuesday = 2; const Wednesday = 3; const Thursday = 4; const Friday = 5; const Saturday = 6; } $working_days = [DaysOfWeek::Monday, DaysOfWeek::Tuesday, DaysOfWeek::Wednesday, DaysOfWeek::Thursday, DaysOfWeek::Friday]; $today = (int)date('w'); echo in_array($today, $working_days) ? 'Today is a working day!' : 'Today is a weekend day!';
Output for git.master, git.master_jit, rfc.property-hooks
Today is a weekend day!

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:
156.16 ms | 405 KiB | 5 Q