3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $z = new ZipArchive(); $r = $z->open('badzip.zip'); $z->close();
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'ZipArchive' not found in /in/qHpoC:3 Stack trace: #0 {main} thrown in /in/qHpoC on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Warning: ZipArchive::close(): Invalid or uninitialized Zip object in /in/qHpoC on line 6
Output for 5.0.0 - 5.1.6, 5.4.0 - 5.6.28
Fatal error: Class 'ZipArchive' not found in /in/qHpoC on line 3
Process exited with code 255.
Output for 5.2.0 - 5.3.29
Warning: ZipArchive::close(): Invalid or unitialized Zip object in /in/qHpoC on line 6
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: ziparchive in /in/qHpoC on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: ziparchive in /in/qHpoC on line 3