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 5.0.4 - 7.1.0
bool(true) Notice: Undefined variable: ar_ruleInfo in /in/dqbB9 on line 11 bool(true) Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 ) Notice: Undefined variable: ar_ruleInfo in /in/dqbB9 on line 13
Output for 4.3.0 - 5.0.3
bool(true) Notice: Undefined variable: ar_ruleInfo in /in/dqbB9 on line 11 bool(true) Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 ) Notice: Undefined variable: ar_ruleInfo in /in/dqbB9 on line 13