3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new Phar('te.phar');
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught UnexpectedValueException: Cannot create phar 'te.phar', file extension (or combination) not recognised or the directory does not exist in /in/9YCAN:3 Stack trace: #0 /in/9YCAN(3): Phar->__construct('te.phar') #1 {main} thrown in /in/9YCAN on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Uncaught exception 'PharException' with message 'te.phar is not a file' in /in/9YCAN:3 Stack trace: #0 /in/9YCAN(3): Phar->__construct() #1 {main}
Process exited with code 255.
Output for 5.3.6 - 5.6.28
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Cannot create phar 'te.phar', file extension (or combination) not recognised or the directory does not exist' in /in/9YCAN:3 Stack trace: #0 /in/9YCAN(3): Phar->__construct('te.phar') #1 {main} thrown in /in/9YCAN 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 'te.phar', file extension (or combination) not recognised' in /in/9YCAN:3 Stack trace: #0 /in/9YCAN(3): Phar->__construct('te.phar') #1 {main} thrown in /in/9YCAN on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'Phar' not found in /in/9YCAN on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: phar in /in/9YCAN on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: phar in /in/9YCAN on line 3