3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=0); (new XMLReader)->XML(array(1)); printf("finished\n"); (new finfo)->file(array(1)); printf ("finished\n");
based on LO1lT
Output for 7.0.0 - 7.3.0alpha1
Warning: XMLReader::XML() expects parameter 1 to be string, array given in /in/QId2S on line 3 finished Warning: finfo::file() expects parameter 1 to be string, array given in /in/QId2S on line 4 finished
Output for hhvm-3.12.14 - 3.17.3
Warning: XML() expects parameter 1 to be string, array given in /in/QId2S on line 3 finished Fatal error: Uncaught TypeError: Argument 1 to finfo::file() must be of type ?string, array given in /in/QId2S:4 Stack trace: #0 /in/QId2S(4): finfo->file() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Warning: Unsupported declare 'strict_types' in /in/QId2S on line 2 Warning: XMLReader::XML() expects parameter 1 to be string, array given in /in/QId2S on line 3 finished Warning: finfo::file() expects parameter 1 to be string, array given in /in/QId2S on line 4 finished