3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = array( 'first', 'second', 'third' ); $str_start = microtime( true ); echo $image['0'] . "\n"; $str_end = ( microtime( true ) - $str_start ) * 1000; $int_start = microtime( true ); echo $image[0]; $int_end = ( microtime( true ) - $int_start ) * 1000; echo "\n"; echo 'Time with string: ' . $str_end . "\n"; echo 'Time with int: ' . $int_end;

preferences:
25.24 ms | 402 KiB | 5 Q