3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array( array( 'purchase_price' => array( 'subscriber' => "0" ) ) ); $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) ? "TRUE" : "FALSE";
based on 6V44s
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
FALSE
Output for hhvm-3.10.0

Process exited with code 153.