3v4l.org

run code in 300+ PHP versions simultaneously
<?php function edit_distance_ond($str1 ,$str2){ $array = array(); $x; $y; $offset = count($str1); array[$offset + 1] = 0; } $a = array("a","b"); $b = array("c"); echo edit_distance_ond($a,$b); ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '[', expecting '(' in /in/3V5Cf on line 7
Process exited with code 255.

preferences:
182.07 ms | 1395 KiB | 65 Q