3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = (int) 'foobar'; var_dump($foo); function int(int $foo) { var_dump($foo); } int($foo);
based on t1ifl
Output for 7.0.0 - 7.2.0
int(0) int(0)
Output for 5.3.19 - 5.6.28
int(0) Catchable fatal error: Argument 1 passed to int() must be an instance of int, integer given, called in /in/JL0qH on line 12 and defined in /in/JL0qH on line 7
Process exited with code 255.