3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(100, 200); var_dump($arr); /* shows: array(2) { [0]=> int(100) [1]=> int(200) } */ $r = &$arr[0]; var_dump($arr); /* shows: array(2) { [0]=> &int(100) [1]=> int(200) }
Output for 4.3.0 - 5.2.9, 5.3.0 - 7.1.0
Warning: Unterminated comment starting line 15 in /in/f5PXQ on line 15 array(2) { [0]=> int(100) [1]=> int(200) } array(2) { [0]=> &int(100) [1]=> int(200) }
Output for 5.2.10 - 5.2.17
Warning: Unterminated comment starting line 15 in /in/f5PXQ on line 15 Fatal error: fatal flex scanner internal error--end of buffer missed in /in/f5PXQ on line 15
Process exited with code 255.