3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = str_pad(intval(strval("0219")), 4, 0, STR_PAD_LEFT); $test2 = str_pad(intval(date('my')), 4, 0, STR_PAD_LEFT); $test3 = intval(strval("0717")); $test4 = intval(date('my')); $time1 = mktime(1, 1, 1, intval("08"), 1, intval("17")); $time2 = mktime(1, 1, 1, intval(date('m')), 1, intval(date('y'))); echo $time1; echo "<br/>"; echo $time2; $toto = "0919"; $expiration_time = mktime(1, 1, 1, intval(substr($toto->expiration_date, 0, 2)), 1, intval(substr($toto->expiration_date, 2, 2))); $current_time = mktime(1, 1, 1, intval(date('m')), 1, intval(date('y'))); if ($expiration_time < $current_time){ echo "KO"; } else{ echo "OK"; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
1501542061<br/>1498863661 Warning: Attempt to read property "expiration_date" on string in /in/OI02A on line 14 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/OI02A on line 14 Warning: Attempt to read property "expiration_date" on string in /in/OI02A on line 14 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /in/OI02A on line 14 KO

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:
72.61 ms | 402 KiB | 8 Q