3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,"2",'three'=>3); $a = [1,"2",'three'=>3]; $pieces = explode(" ","red white blue"); echo $pieces[2]; echo explode(" ","red white blue")[2];// blue echo ['big' => 'lots', 'time' => 'matters']['big'];

preferences:
43.3 ms | 402 KiB | 5 Q