3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file = 'toto.php'; for( $i=0;$i<10000;$i++) $ext = in_array( substr( $file, strrpos( $file, "." ) + 1 ), array('js','php') );
based on n90I7
Output for 4.3.0 - 7.2.0