3v4l.org

run code in 300+ PHP versions simultaneously
<?php $winner = Array["Daniel Kopel","Sandra Patolsky","Eigor Kalantarov","Ran Yosef","Itamar Kenan","Tal Gafri","Sagie Abitbol","Yakir Peretz","Shay Zimerman", "Eden Gottlieb", "Avi Twito", "Roi Himan"]; $rand = rand(0,count($winner)); echo $winner[$rand];
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
Parse error: syntax error, unexpected '[', expecting '(' in /in/2qX2H on line 3
Process exited with code 255.

preferences:
174.72 ms | 1395 KiB | 67 Q