3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<EOD code=876 and town=87 and geocode in(1,2,3) code=876 and town=878 and geocode in(1,2,3) code=876 and town="878" and geocode in(1,2,3) code=876 and town=8,43 and geocode in(1,2,3) code=876 and town='8,43' and geocode in(1,2,3) code=876 and town=-1 and geocode in(1,2,3) code=876 and town=N/A and geocode in(1,2,3) EOD; foreach(explode(PHP_EOL, $str) as $line){ echo explode(" ", $line)[2] . PHP_EOL; }
Output for 7.1.25 - 7.1.27, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
town=87 town=878 town="878" town=8,43 town='8,43' town=-1 town=N/A

preferences:
152.93 ms | 407 KiB | 5 Q