3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = [0.57, '21.5', 40.52]; if (in_array(21.5, $number, true)) echo "21.5 is found!"; else echo "21.5 is not found";

preferences:
46.75 ms | 402 KiB | 5 Q