3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name = 'aresa'; $value = 'someValue'; $user_id = 'someID'; var_dump("\n[start]" . time() . "|$name|$value|$user_id" . '[end]'); // this derefers $user_id somehow (end it probably evaled to false (which is 0) so $user_id[0] var_dump(PHP_EOL . '[start]' . time() . '|' . $name . '|' . $value . '|' . $user_id . '[end]');
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
string(46) " [start]1409394737|aresa|someValue|someID[end]" string(46) " [start]1409394737|aresa|someValue|someID[end]"
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
string(46) " [start]1409394737|aresa|someValue|someID[end]" Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/0ZFZs on line 6 string(52) "PHP_EOL[start]1409394737|aresa|someValue|someID[end]"