3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $block_by_time = array( 0, 1, 2, 3, ); $ar_ruleInfo = array( 'rule_name' => 'remove_no_paym', ); var_dump(is_array($block_by_time)); var_dump(in_array($ar_ruleInfo['rule_name'], array_keys($block_by_time))); print_r(array_keys($block_by_time)); print_r($ar_ruleInfo['rule_name']);
Output for 4.3.0 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
bool(true) bool(true) Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 ) remove_no_paym
Output for hhvm-3.10.0

Process exited with code 153.