3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_sinted( string $val, string $val2 ) { return $val; } function test_hinted( string $val, $val2 ) { return $val; } function test_ninted( $val, $val2 ) { return $val; } /* "prime" */ test_sinted( 'hello', 'world' ); test_hinted( 'hello', 'world' ); test_ninted( 'hello', 'world' ); $t = microtime( true ); for( $i = 0; ++$i < 1e7; ) test_sinted( 'hello', 'world' ); echo number_format( ( microtime( true ) - $t ) * 1, 5 ), 's', PHP_EOL; $t = microtime( true ); for( $i = 0; ++$i < 1e7; ) test_hinted( 'hello', 'world' ); echo number_format( ( microtime( true ) - $t ) * 1, 5 ), 's', PHP_EOL; $t = microtime( true ); for( $i = 0; ++$i < 1e7; ) test_ninted( 'hello', 'world' ); echo number_format( ( microtime( true ) - $t ) * 1, 5 ), 's', PHP_EOL;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
159.26 ms | 1413 KiB | 16 Q