3v4l.org

run code in 500+ PHP versions simultaneously
<?php (fn (int $v) => true)(1.0); (fn (int $v) => true)(1.5);
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.35, 8.4.1 - 8.4.26, 8.5.0 - 8.5.11
Deprecated: Implicit conversion from float 1.5 to int loses precision in /in/4C3ru on line 4

preferences:
30.98 ms | 1154 KiB | 8 Q