3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); echo 'a'.'<a'; $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds and returned ' . count($data_diff1) . " entries\n";
Output for 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
a<a Notice: Undefined variable: data_diff1 in /in/Eetg5 on line 9 Warning: count(): Parameter must be an array or an object that implements Countable in /in/Eetg5 on line 9 array_diff() took 0.000 seconds and returned 0 entries
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
a<a Notice: Undefined variable: data_diff1 in /in/Eetg5 on line 9 array_diff() took 0.000 seconds and returned 0 entries
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
a<a Notice: Undefined variable: data_diff1 in /in/Eetg5 on line 9 array_diff() took 0.000 seconds and returned 0 entries

preferences:
172.22 ms | 402 KiB | 191 Q