3v4l.org

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