3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = strpos(...); var_dump($c);
Output for 8.2.21 - 8.2.29, 8.3.4 - 8.3.25, 8.4.1 - 8.4.12
object(Closure)#1 (2) { ["function"]=> string(6) "strpos" ["parameter"]=> array(3) { ["$haystack"]=> string(10) "<required>" ["$needle"]=> string(10) "<required>" ["$offset"]=> string(10) "<optional>" } }
Output for 8.1.30 - 8.1.33
object(Closure)#1 (1) { ["parameter"]=> array(3) { ["$haystack"]=> string(10) "<required>" ["$needle"]=> string(10) "<required>" ["$offset"]=> string(10) "<optional>" } }

preferences:
59.32 ms | 407 KiB | 5 Q