3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array( array( 'purchase_price' => array( 'subscriber' => "" ) ) ); $premium = TRUE; foreach ( $options AS $option ) { if ( array_key_exists( 'subscriber', $option['purchase_price'] ) && $option['purchase_price']['subscriber'] == 0 && $option['purchase_price']['subscriber'] != "" ) { $premium = FALSE; } } print $premium;
Output for 4.3.0 - 7.1.0
1