Currently on key 0:
string(15) "non-blank line1"
Currently on key 1:
string(15) "non-blank line2"
Currently on key 2:
bool(false)
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Currently on key 0:
string(15) "non-blank line1"
Currently on key 1:
string(15) "non-blank line2"
Currently on key 2:
bool(false)
Currently on key 0:
string(15) "non-blank line1"
Currently on key 1:
string(15) "non-blank line2"
Output for 5.1.4 - 5.1.6
Fatal error: Undefined class constant 'SKIP_EMPTY' in /in/Ad364 on line 7
Process exited with code 255.
Output for 5.1.0 - 5.1.3
Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileObject::__construct(php://memory): failed to open stream: Inappropriate ioctl for device' in /in/Ad364:3
Stack trace:
#0 /in/Ad364(3): SplFileObject->__construct('php://memory', 'w+')
#1 {main}
thrown in /in/Ad364 on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Class 'SplFileObject' not found in /in/Ad364 on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '|', expecting '(' in /in/Ad364 on line 7
Process exited with code 255.