3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if( isset( $_POST['submit'] ) ) { if( !empty( $_POST['devices'] ) ) { $devices = $_POST['devices']; if( in_array( 'iMac', $devices) ) { echo 'iMac komt voor in de array! <br>'; foreach( $devices as $key => $value ) { echo $value. '<br>'; } } else { foreach( $devices as $key => $value ) { echo $value. '<br>'; } } } else { echo 'EMPTY!'; } }
Output for 5.6.38 - 7.3.0rc3