3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 20; // $x is an integer echo $str1 = (string)$x; // $str1 is a string now // Check whether $x and $str1 are equal or not ?>
Output for 4.3.0 - 7.2.0
20