3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = ''; $i = 0; $result = 'good'; while ( stristr( $url, 'http' ) !== $url ) { $url = substr( $url, 1 ); $i++; if ( $i > 256 ) { $result = 'bad'; } } var_dump( $result );

preferences:
23.52 ms | 406 KiB | 5 Q