3v4l.org

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