Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes you're right, but the code I posted above still doesn't work. It works fine with PHP 5.4 though. This also fails with the same error message:

  $fn = function() { echo 'foo'; };
But that's also perfectly valid PHP 5.4 code. Maybe I'm doing something wrong, idk.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: