3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tests = [ '[] == false' => [] == false, '[0] == true' => [0] == true, '"" == false' => '' == false, '"ABC" == false' => 'ABC' == false, '"0" == false' => '0' == false, '"1" == true' => '1' == true, '"123" == false' => '123' == true, 'null == false' => null == false, '0 == false' => 0 == false, '0.49 == false' => 0.49 == false ];
Output for 5.4.0 - 7.2.0
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/agJQJ on line 3
Process exited with code 255.