3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 0; $priorities = ['low', 'medium', 'high', 'severe']; $priority = $priorities[($count - 1) / 20]; echo ($count - 1) / 20; echo "\n"; echo $priority;
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Deprecated: Implicit conversion from float -0.05 to int loses precision in /in/R1kL1 on line 6 -0.05 low
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
-0.05 low

preferences:
142.07 ms | 408 KiB | 5 Q