3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $arr1 = [ 1, 2, 3 ]; $arr2 = [ 2, 3, 4 ]; $res = array_intersect($ar, $ar); print_r($res);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0200.08320.25
7.0.10.0030.04320.10
7.0.00.0000.04320.14
5.6.170.0300.07320.39
5.6.160.0000.04720.59
5.6.150.0030.05718.14
5.6.140.0100.04718.29
5.6.130.0070.03718.25
5.6.120.0130.08021.01
5.6.110.0000.05020.99
5.6.100.0130.08020.98
5.6.90.0130.07721.09
5.6.80.0130.07720.39
5.5.310.0230.06320.19
5.5.300.0130.06318.14
5.5.290.0130.07317.99
5.5.280.0100.06720.76
5.5.270.0030.04320.93
5.5.260.0030.08020.79
5.5.250.0100.08020.77
5.5.240.0200.07020.34

preferences:
141.27 ms | 1394 KiB | 7 Q