3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test ((int) $a, (string) $b) { var_dump($a, $b); } $x = "12"; $y = 24; test($x, $y);
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '(int)' (int) (T_INT_CAST), expecting '&' or variable (T_VARIABLE) in /in/OdAB8 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_INT_CAST, expecting '&' or T_VARIABLE in /in/OdAB8 on line 3
Process exited with code 255.

preferences:
181.65 ms | 1395 KiB | 61 Q