3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "\n"; echo sha1($a)."\n"; $b = "\n "; echo sha1($b)."\n"; echo "111111111111111111\n"; $a = "\x34\x32\x2E"; echo $a."\n"; echo sha1($a)."\n"; echo strlen($a)."\n"; var_dump($a=="42")."\n"; $b = '\x34\x32\x2E'; echo $b."\n"; echo strlen($b)."\n"; var_dump($b=="42")."\n";
based on 0XNgo
Output for 4.3.0 - 7.2.0
adc83b19e793491b1c6ea0fd8b46cd9f32e592fc 8b2b303e3191cdb310657097660fd22ac510c2d1 111111111111111111 42. fe765152c6266870243aff8fe64459493abdfd41 3 bool(true) \x34\x32\x2E 12 bool(false)