3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $isNoAnwser = 1; $isBusy = 1; $isFailed = 0; $whereDisposArray = array(); if($isBusy) array_push($whereDisposArray, "disposition='BUSY'"); if($isNoAnswer) array_push($whereDisposArray, "disposition='ANSWERED'"); if($isFailed) array_push($whereDisposArray, "disposition='FAILED'"); $s=''; //foreach ($whereDisposArray as &$value) { // $s = $s . $value; //} print_r($s);
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: isNoAnswer in /in/qc0Hs on line 9
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: isNoAnswer in /in/qc0Hs on line 9