3v4l.org

run code in 300+ PHP versions simultaneously
<?php $silence = 0; $fxoPattern2DisconnectCount = 0; function cfgIsNumeric( $value ) { return ( ($value !== '') && preg_match("/^[-+]?[0-9]+$/", $value) > 0 ); } function cfgIsValidRangeOrZero( $value, $min, $max) { return ( ($value !== '') && cfgIsNumeric($value) && ((int)$value == 0 || ((int)$value >= $min && (int)$value <= $max)) ); } if( !cfgIsValidRangeOrZero($silence, 50, 750) || ($fxoPattern2DisconnectCount > 0 && $silence == 0 ) ) echo "!"; else echo "?";

preferences:
49.2 ms | 402 KiB | 5 Q