3v4l.org

run code in 300+ PHP versions simultaneously
<?php (fn() => yield from [42, 17]) |> call_user_func(...) |> iterator_to_array(...) |> min(...) |> var_dump(...) ;
Output for 8.5.0
int(17)
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.15
Parse error: syntax error, unexpected token ">" in /in/huhlF on line 3
Process exited with code 255.

preferences:
160.74 ms | 1004 KiB | 7 Q