3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace WebSharks\Challenge; $a = ['patdumona', 'kristinedp', 'raamdes', 'renzmp', 'reedysete']; $r = range('D','Z',3); foreach ($a[strlen($a[])-1] as $r){ echo implode(substr_replace($a,$r,-1)); }
based on rNVDh
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Cannot use [] for reading in /in/2rgCM:5 Stack trace: #0 {main} thrown in /in/2rgCM on line 5
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Fatal error: Cannot use [] for reading in /in/2rgCM on line 5
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/2rgCM on line 3
Process exited with code 255.