3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $set=12853; $standard_sets=''; $standard_sets[] = 1000065; // Born of the Gods $standard_sets[] = 1283; // Theros $standard_sets[] = 1223; // Magic 2014 $standard_sets[] = 1146; // Dragons Maze $standard_sets[] = 966; // Return to ravnica $standard_sets[] = 975; // Gatecrash echo in_array(strtolower($set),$standard_sets);
Output for 7.1.0
Fatal error: Uncaught Error: [] operator not supported for strings in /in/KqXT4:5 Stack trace: #0 {main} thrown in /in/KqXT4 on line 5
Process exited with code 255.
Output for 4.3.0 - 7.0.14