3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "45.51088930166307,51,52.52216552154544,75"; $pos = strpos($str, ",", strpos($str, ",")+1); $arr = [substr($str, 0,$pos), substr($str,$pos+1)]; Var_dump($arr);
Output for 5.6.38, 7.1.0 - 7.1.23, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
array(2) { [0]=> string(20) "45.51088930166307,51" [1]=> string(20) "52.52216552154544,75" }

preferences:
103.74 ms | 1463 KiB | 4 Q