3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test ($a, $b) { var_dump($a, $b); } $x = "12"; $y = 24; test((int)$x, (string)$y);

preferences:
42.24 ms | 402 KiB | 5 Q