3v4l.org

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