3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $a = ["b" => 2]; print "notice: ".$a[b]."\n"; print "no notice: {$a[b]}";

preferences:
30.44 ms | 402 KiB | 5 Q