3v4l.org

run code in 300+ PHP versions simultaneously
<?php function some_method($id, $includeParam = 0, $include_param = 0) { return $includeParam & $include_param; } var_dump( some_method(42, 1, 0); some_method(42, 0, 1); );
Output for 5.3.0 - 5.3.21, 5.4.0 - 5.4.11
Parse error: syntax error, unexpected ';' in /in/Xd4Om on line 9
Process exited with code 255.

preferences:
179.8 ms | 1399 KiB | 41 Q