3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f = new \finfo(__FILE__); var_dump(is_null($f)); var_dump($f);
based on Y3t5q
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught TypeError: finfo::finfo() expects parameter 1 to be integer, string given in /in/85PWH:2 Stack trace: #0 /in/85PWH(2): finfo->finfo('/in/85PWH') #1 {main} thrown in /in/85PWH on line 2
Process exited with code 255.
Output for 5.3.11 - 5.3.29, 5.4.1 - 5.6.28
Warning: finfo::finfo() expects parameter 1 to be long, string given in /in/85PWH on line 2 bool(true) NULL
Output for 5.3.0 - 5.3.10, 5.4.0
Warning: finfo::finfo() expects parameter 1 to be long, string given in /in/85PWH on line 2 bool(false) object(finfo)#1 (0) { }
Output for 5.0.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/85PWH on line 2 Fatal error: Class 'finfo' not found in /in/85PWH on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/85PWH on line 2 Fatal error: Cannot instantiate non-existent class: finfo in /in/85PWH on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/85PWH on line 2 Fatal error: Cannot instantiate non-existent class: finfo in /in/85PWH on line 2