3v4l.org

run code in 150+ 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)."\n"; $time = time(); echo $time."\n"; echo "diff = ".$timestamp-$time."\n";
Output for 7.1.0
SIGNY L\'ABBAYE 2014-04-18 10:38:01 1398850083 Warning: A non-numeric value encountered in /in/bgpi4 on line 10 -1398850083
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
SIGNY L\'ABBAYE 2014-04-18 10:38:01 1398850083 -1398850083