3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a['lol'] = 'fuu' or '0'; print_r($a); $a = array('lol' => e*2 or '1'); print_r($a);
Output for 7.1.0
Array ( [lol] => fuu ) Notice: Use of undefined constant e - assumed 'e' in /in/V1Ode on line 7 Warning: A non-numeric value encountered in /in/V1Ode on line 7 Array ( [lol] => 1 )
Output for 4.3.0 - 7.0.14
Array ( [lol] => fuu ) Notice: Use of undefined constant e - assumed 'e' in /in/V1Ode on line 7 Array ( [lol] => 1 )