3v4l.org

run code in 500+ PHP versions simultaneously
<?php $var = 'YYYY'; echo count($var);
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /in/p6Q17:4 Stack trace: #0 {main} thrown in /in/p6Q17 on line 4
Process exited with code 255.

preferences:
40.59 ms | 711 KiB | 4 Q