I'm new to PHP code and am trying to find a way to display 3 lines from the version.php file within WordPress without having to download the file; look into it and move on - this is what I have come up with so far, but does not seem to be working. I'm sure I'm doing something wrong here and would greatly appreciate some help.
<?php
$version = "wp-includes/version.php";
$all_lines = file($version);
echo $all_lines[16];
echo $all_lines[23];
echo $all_lines[37];
?>