3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 'Test>Test'; var_export($s); $s[4] = ''; var_export($s);
Output for 7.1.0 - 7.2.0
'Test>Test' Warning: Cannot assign an empty string to a string offset in /in/IkWZq on line 5 'Test>Test'
Output for 5.2.6 - 7.0.20
'Test>Test''Test' . "\0" . 'Test'
Output for 5.2.0 - 5.2.5
'Test>Test''Test\000Test'
Output for 4.3.0 - 5.1.6
'Test>Test''TestTest'