3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c = 'aaa'; list($a, $b) = (array)$c; echo $a, PHP_EOL, $b;
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined offset: 1 in /in/v8slf on line 5 aaa
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: 1 in /in/v8slf on line 5 aaa
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.2.17
Notice: Undefined offset: 1 in /in/v8slf on line 5 aaa
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Undefined offset: 1 in /in/v8slf on line 5 aaa Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/v8slf on line 7 PHP_EOL