3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace WebSharks\Challenge; $a = ['patdumona', 'kristinedp', 'raamdes', 'renzmp', 'reedysete']; print_r(str_replace(strlen($a),strlen($a-4),$a,$i)); echo implode(substr_replace($a,range("a","z",3),-1));
Output for 7.0.0 - 7.2.0
Warning: strlen() expects parameter 1 to be string, array given in /in/Phagp on line 4 Fatal error: Uncaught Error: Unsupported operand types in /in/Phagp:4 Stack trace: #0 {main} thrown in /in/Phagp on line 4
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Warning: strlen() expects parameter 1 to be string, array given in /in/Phagp on line 4 Fatal error: Unsupported operand types in /in/Phagp on line 4
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Phagp on line 3
Process exited with code 255.