3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $month=9; $year=2014; $x=array(); if (array_key_exists('billing_type', $x)) { $out= $x['billing_type']; } else { $out= 'month'; } echo $out
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/i20c4 on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/i20c4 on line 12
Process exited with code 255.