3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Example: chicken -> cnekcih $s = 'chicken'; echo substr($s, 0, 1) . strrev(substr($s, 1)); assert($s == 'cnekcih');
Output for 7.0.0 - 7.2.0
cnekcih Warning: assert(): assert($s == 'cnekcih') failed in /in/kJOhH on line 5
Output for 5.4.0 - 5.6.28
cnekcih Warning: assert(): Assertion failed in /in/kJOhH on line 5