3v4l.org

run code in 300+ PHP versions simultaneously
<?php $literal = '23412167894125123'; for ($c = 0; $c < strlen($literal) - 2; $c++) { if(intval($literal[$c]) + 1 == intval($literal[$c + 1]) && intval($literal[$c]) + 2 == intval($literal[$c + 2])) { echo $literal[$c], $literal[$c + 1], $literal[$c + 2], '<br />'; } }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
134.55 ms | 2592 KiB | 8 Q