3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'foobar'; $i=0; while(true) { try { if ($str{$i} !== "") $i++; else break; } catch(Exception $e) { } } echo $i;

This is an error 404

There are `0` results


preferences:
139.74 ms | 1399 KiB | 7 Q