3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdclass();//function() {}; var_dump(is_object($a)); $a(); exit; function a($a) { } $b = 3; a($b);
Output for 7.0.0 - 7.1.0
bool(true) Fatal error: Uncaught Error: Function name must be a string in /in/65Uu4:4 Stack trace: #0 {main} thrown in /in/65Uu4 on line 4
Process exited with code 255.
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28
bool(true) Fatal error: Function name must be a string in /in/65Uu4 on line 4
Process exited with code 255.
Output for 5.0.0 - 5.3.27, 5.4.0 - 5.4.17
bool(true) Fatal error: Function name must be a string in /in/Jgjmj on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
bool(true) Notice: Object to string conversion in /in/Jgjmj on line 4 Fatal error: Call to undefined function: object() in /in/Jgjmj on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
bool(true) Notice: Object to string conversion in /in/Jgjmj on line 4 Fatal error: Call to undefined function: object() in /in/Jgjmj on line 4
Process exited with code 255.
Output for 4.3.1
bool(true) Notice: Object to string conversion in /in/Jgjmj on line 4 Fatal error: Call to undefined function: object() in /in/Jgjmj on line 4
Output for 4.3.0
bool(true) Notice: Object to string conversion in /in/65Uu4 on line 4 Fatal error: Call to undefined function: object() in /in/65Uu4 on line 4