3v4l.org

run code in 300+ PHP versions simultaneously
<?php const TYPES = [0 => 'Unplanned', 1 => 'Planned']; $t = array_search('Planned', TYPES); var_dump($t);
Output for 7.3.0 - 7.3.27, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
int(1)