3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('label' => 'test', 'label' => '', 'label' => 'test 2'); $options = array_filter($options, function($value) { return $value['label'] }); print_r($options);
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '}' in /in/JKI9Q on line 5
Process exited with code 255.

preferences:
167.38 ms | 1399 KiB | 53 Q