3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump("abc"[1.0]);
Output for 8.0.0
Warning: String offset cast occurred in /in/O8fW8 on line 2 string(1) "b"
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12
Notice: String offset cast occurred in /in/O8fW8 on line 2 string(1) "b"