3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $purchase_order = ['currency' => 'a']; $_currency = (isset($purchase_order['currency'])) ? $purchase_order['currency'] : null;
based on CmbOu
Output for 5.4.2 - 7.2.0
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/asfAQ on line 2
Process exited with code 255.