3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('franz' => 'de leon', 'cheryl' => 'chua', 'john' => 'doe'); $e = 0; $offset = (($offset = (int) $e) <= 0) ? 1 : $offset; var_dump($offset); //var_dump(array_slice($a, -1));
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
int(1)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/XG7b2 on line 7
Process exited with code 255.