3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row["height"] = '(163 cm)'; $string= $row['height']; $pos1 = strpos($string, "("); $pos2 = strpos($string, "cm", $pos1); $text = substr($string,$pos1+1,$pos2-2+$pos1); echo $text; ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.35 ms | 1969 KiB | 12 Q