3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = 20; // $x is an integer $str1 = (string)$x; // $str1 is a string now // Check whether $x and $str1 are equal or not if ($x === $str1) { echo "They are the same"; } else { echo "They are not same"; } ?> - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.Tz25SHhN.dpuf<?php
Output for 5.4.0 - 5.5.13
Parse error: syntax error, unexpected end of file in /in/dmYt2 on line 14
Process exited with code 255.
Output for 4.3.0 - 5.3.29
They are not same - See more at: http://www.w3resource.com/php-exercises/php-string-exercises.php#sthash.Tz25SHhN.dpuf<?php