3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "On first glance, the following appears to output 'true' "; print_r(substr($string, "true")); print_r(stristr($string, " ' ")); print_r(substr($string, strpos($string, " ' ")+1, 4)); print_r(substr($string, strpos($string, " ' "), 4));

preferences:
50.6 ms | 402 KiB | 5 Q