3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phar = new PharData( 'foo.tar', 0, 'foo.tar' );
based on mm2Q2
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/DP40Z:2 Stack trace: #0 /in/DP40Z(2): PharData->__construct('foo.tar', 0, 'foo.tar') #1 {main} thrown in /in/DP40Z 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/DP40Z:2 Stack trace: #0 /in/DP40Z(2): PharData->__construct('foo.tar', 0, 'foo.tar') #1 {main} thrown in /in/DP40Z on line 2
Process exited with code 255.