3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo[] = array('id' => 1, 'title' => 'ONE'); $foo[] = array('id' => 2, 'title' => 'TWO'); $bar[] = array('id' => 2, 'title' => 'dos'); $bar[] = array('id' => 2, 'title' => 'tres'); function c($a, b) { print $a['title'] . " " . $b['title'] . "\n"; return 0; } array_udiff($foo, $bar, c); array_udiff($foo, $bar, function($a, $b) { print $a['title'] . " " . $b['title'] . "\n"; return 0;});
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected ')', expecting '&' or variable (T_VARIABLE) in /in/StjMA on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected ')', expecting '&' or T_VARIABLE in /in/StjMA on line 8
Process exited with code 255.

preferences:
180.88 ms | 1395 KiB | 67 Q