3v4l.org

run code in 500+ PHP versions simultaneously
<?php $heading = 'h2'; echo ++$heading;
Output for 8.5.11 - 8.5.13, 8.6.0
Deprecated: Increment on non-numeric string is deprecated, use str_increment() instead in /in/VXLuc on line 4 h3
Output for 8.2.35 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28
h3

preferences:
12.34 ms | 1167 KiB | 6 Q