3v4l.org

run code in 500+ PHP versions simultaneously
<?php function assign_to(&$var) { return function ($value) use (&$var) { $var = $value; }; } $string = "Hello World!"; $string |> strtolower(...) |> ucfirst(...) |> assign_to($result); var_dump($result);
Output for 8.3.5
Parse error: syntax error, unexpected token ">" in /in/R5b2f on line 12
Process exited with code 255.

preferences:
39.61 ms | 489 KiB | 3 Q