3v4l.org

run code in 300+ PHP versions simultaneously
<?php function s1(int $val) { return (string)$val; } function s2(int $val) { return strval($val); }

This is an error 500

There are `>1` results


preferences:
166.32 ms | 1436 KiB | 7 Q