3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $toto = "SIGNY L'ABBAYE"; echo str_replace("'", "\'", ($toto))."\n"; $timestamp = 1397810281; echo date("Y-m-d H:i:s", $timestamp); $time = time(); echo $time."\n"; echo "diff = ".$timestamp-$time."\n";
Output for 7.1.0 - 7.3.0alpha1
SIGNY L\'ABBAYE 2014-04-18 10:38:011398850044 Warning: A non-numeric value encountered in /in/bCcLh on line 10 -1398850044
Output for 4.3.0 - 7.0.20
SIGNY L\'ABBAYE 2014-04-18 10:38:011398850044 -1398850044