3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://phabricator.wikimedia.org/T161095 $string = ''; $string[0];
Output for 8.0.0alpha3 - beta1
Warning: Uninitialized string offset 0 in /in/stcgS on line 5
Output for 8.0.0alpha1 - alpha2
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.21, 7.4.0 - 7.4.9
Notice: Uninitialized string offset: 0 in /in/stcgS on line 5