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.1.25 - 7.3.1
Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in:/etc) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in:/etc) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File() is not within the allowed path(s): (/tmp:/in:/etc) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in:/etc) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in:/etc) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in:/etc) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File() is not within the allowed path(s): (/tmp:/in:/etc) in /in/DP40Z on line 2 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 7.1.20
Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File() is not within the allowed path(s): (/tmp:/in) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File(foo.tar) is not within the allowed path(s): (/tmp:/in) in /in/DP40Z on line 2 Warning: PharData::__construct(): open_basedir restriction in effect. File() is not within the allowed path(s): (/tmp:/in) in /in/DP40Z on line 2 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 7.0.0 - 7.1.10
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.