3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://phabricator.wikimedia.org/T161095 $string = ''; $string[0];
Output for 8.0.0 - 8.0.15, 8.1.0 - 8.1.2
Warning: Uninitialized string offset 0 in /in/stcgS on line 5
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.27
Notice: Uninitialized string offset: 0 in /in/stcgS on line 5
Output for 7.3.32 - 7.3.33

preferences:
37.05 ms | 461 KiB | 5 Q