3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list1 = [ { firstName: 'Noah', lastName: 'M.', country: 'Switzerland', continent: 'Europe', age: 19, language: 'JavaScript' }, { firstName: 'Maia', lastName: 'S.', country: 'Tahiti', continent: 'Oceania', age: 28, language: 'JavaScript' }, { firstName: 'Shufen', lastName: 'L.', country: 'Taiwan', continent: 'Asia', age: 35, language: 'HTML' }, { firstName: 'Sumayah', lastName: 'M.', country: 'Tajikistan', continent: 'Asia', age: 30, language: 'CSS' } ]; var_dump($list1);
based on YoFDV
Output for 5.6.38 - 7.3.0rc3
Parse error: syntax error, unexpected '{', expecting ']' in /in/R5R5R on line 4
Process exited with code 255.