3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $phardata = new PharData('foo.tar.gz'); var_dump($phardata instanceOf Phar);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught UnexpectedValueException: Cannot create phar 'foo.tar.gz', file extension (or combination) not recognised or the directory does not exist in /in/UcAHV:3 Stack trace: #0 /in/UcAHV(3): PharData->__construct('foo.tar.gz') #1 {main} thrown in /in/UcAHV on line 3
Process exited with code 255.
Output for 5.3.6 - 5.6.28
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar 'foo.tar.gz', file extension (or combination) not recognised or the directory does not exist' in /in/UcAHV:3 Stack trace: #0 /in/UcAHV(3): PharData->__construct('foo.tar.gz') #1 {main} thrown in /in/UcAHV on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.5
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar 'foo.tar.gz', file extension (or combination) not recognised' in /in/UcAHV:3 Stack trace: #0 /in/UcAHV(3): PharData->__construct('foo.tar.gz') #1 {main} thrown in /in/UcAHV on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'PharData' not found in /in/UcAHV on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/UcAHV on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING in /in/UcAHV on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/UcAHV on line 4
Process exited with code 255.