<?php $int = random_int(0, 100_000_000); $string = (string) $int; $start = microtime(true); for ($i = 0; $i < 10_000_000; $i++) { $bool = $int == $string; } echo microtime(true) - $start . "s\n"; $int = random_int(0, 100_000_000); $string = (string) $int; $start = microtime(true); for ($i = 0; $i < 10_000_000; $i++) { $bool = $int === $string; } echo microtime(true) - $start . "s\n";
You have javascript disabled. You will not be able to edit any code.