3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $server = 'http://cdn1-can.animmex.com/media/videos'; $cdn_configuration = [ 'http://cdn1-can.animmex.com/media/videos' => 'http://cdn1-can.animmex.com/', 'http://cdn2-can.animmex.com/media/videos' => 'http://cdn2-can.animmex.com/', 'http://cdn3-can.animmex.com/media/videos' => 'http://cdn3-can.animmex.com/', 'http://cdn4-can.animmex.com/media/videos' => 'http://cdn4-can.animmex.com/', 'http://cdn5-can.animmex.com/media/videos' => 'http://cdn5-can.animmex.com/', 'http://cdn-prime-can.animmex.com/media/videos' => 'http://cdn-prime-can.animmex.com/', 'http://cdn6-can.animmex.com/media/videos' => 'http://cdn6-can.animmex.com/', 'http://cdn7-can.animmex.com/media/videos' => 'http://cdn7-can.animmex.com/', 'http://cdn8-can.animmex.com/media/videos' => 'http://cdn8-can.animmex.com/', 'http://cdn9-can.animmex.com/media/videos' => 'http://cdn9-can.animmex.com/', 'http://cdn10-can.animmex.com/media/videos' => 'http://cdn10-can.animmex.com/' ] $part1 = $cdn_configuration[$server]; echo $part1
Output for 5.4.0 - 5.4.45
Parse error: syntax error, unexpected '$part1' (T_VARIABLE) in /in/SjCTI on line 19
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/SjCTI on line 5
Process exited with code 255.