3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row = array ( "phone_number" => "9088886655", "phone_number_2" => NULL, "phone_number_3" => NULL ); if(empty($row['phone_number']) && empty($row['phone_number_2']) && empty($row['phone_number_3'])) print('f1'); if(!empty($row['phone_number']) && !check_phone($row['phone_number'])) print('f2'); if(!empty($row['phone_number_2']) && !check_phone($row['phone_number_2'])) print('f3'); if(!empty($row['phone_number_3']) && !check_phone($row['phone_number_3'])) print('f4'); function check_phone($v) { print($v); }
Output for 4.3.0 - 7.1.0
9088886655f2