3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ''; $a[3] = 4; // PHP 7.0 and older : var_dump($a); // PHP 7.1 and more recent ?>

preferences:
24.65 ms | 404 KiB | 5 Q