3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phar = new PharData('foo.tar');
based on DP40Z
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught UnexpectedValueException: Cannot create phar 'foo.tar', file extension (or combination) not recognised or the directory does not exist in /in/I87TP:2 Stack trace: #0 /in/I87TP(2): PharData->__construct('foo.tar') #1 {main} thrown in /in/I87TP on line 2
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar 'foo.tar', file extension (or combination) not recognised or the directory does not exist' in /in/I87TP:2 Stack trace: #0 /in/I87TP(2): PharData->__construct('foo.tar') #1 {main} thrown in /in/I87TP on line 2
Process exited with code 255.