3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array(); $array2 = array(); $result = array_intersect($array1, $array2, null); print_r($result);
based on 9u05s

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0000.01216.54
7.3.00.0000.00816.52
7.2.130.0130.00016.83
7.2.120.0000.01116.62
7.2.110.0000.00916.73
7.2.100.0000.01316.63
7.2.90.0030.01016.75
7.2.80.0030.00916.59
7.2.70.0040.01116.83
7.2.60.0050.00517.02
7.2.50.0100.00716.88
7.2.40.0000.01316.88
7.2.30.0040.00416.90
7.2.20.0110.00016.82
7.2.10.0060.00616.49
7.2.00.0050.00617.86
7.1.250.0040.00415.52
7.1.100.0040.00817.93
7.1.70.0040.00416.94
7.1.60.0070.01819.46
7.1.50.0040.00716.63
7.1.00.0030.07722.51
7.0.200.0040.00714.96
7.0.140.0000.05321.92
7.0.60.0100.07719.82
7.0.50.0070.04017.88
7.0.40.0170.07320.02
7.0.30.0200.03720.30
7.0.20.0170.06020.19
7.0.10.0070.08720.04
7.0.00.0030.08720.16
5.6.280.0100.06721.12
5.6.210.0030.04320.69
5.6.200.0070.03718.15
5.6.190.0130.07020.60
5.6.180.0230.04720.27
5.6.170.0200.04020.46
5.6.160.0130.08320.52
5.6.150.0170.07018.08
5.6.140.0100.07018.20
5.6.130.0100.08318.18
5.6.120.0070.08021.02
5.6.110.0070.07021.13
5.6.100.0070.09020.88
5.6.90.0100.07020.87
5.6.80.0030.07720.38
5.6.70.4500.03320.27
5.5.350.0070.06720.37
5.5.340.0100.07018.01
5.5.330.0030.05320.11
5.5.320.0270.05020.17
5.5.310.0370.07320.29
5.5.300.0070.08317.87
5.5.290.0070.07017.92
5.5.280.0130.07720.83
5.5.270.0100.06720.81
5.5.260.0070.03720.67
5.5.250.0030.04720.79
5.5.240.0270.03320.25
5.4.450.0700.05719.38
5.4.440.0970.06319.13
5.4.430.0800.05719.59
5.4.420.0970.05019.13
5.4.410.0800.05719.50
5.4.400.0930.05019.09
5.4.390.0970.07718.58
5.4.380.0900.05318.70
5.4.370.0830.06318.71
5.4.360.1330.07018.69
5.4.350.1070.06318.65
5.4.340.0930.05718.72
5.4.320.0970.06018.56
5.4.310.0870.06718.68
5.4.300.0800.06018.77
5.4.290.1100.07018.68
5.4.280.0970.05718.79
5.4.270.1030.04718.56
5.4.260.1230.07318.48
5.4.250.1170.06318.58
5.4.240.0930.05718.59
5.4.230.1100.05718.43
5.4.220.1030.06018.61
5.4.210.1130.05318.50
5.4.200.1000.04716.63
5.4.190.1000.05318.61
5.4.180.1070.05018.50
5.4.170.1030.06318.63
5.4.160.1130.06318.58
5.4.150.1000.05318.60
5.4.140.1170.04716.27
5.4.130.0930.05716.25
5.4.120.1070.05316.02
5.4.110.0900.05016.25
5.4.100.0930.05716.24
5.4.90.1100.05016.35
5.4.80.1100.04716.26
5.4.70.0830.05016.22
5.4.60.0870.04716.28
5.4.50.0830.05016.14
5.4.40.1030.04316.19
5.4.30.0830.04716.01
5.4.20.0930.05716.25
5.4.10.1030.04716.11
5.4.00.0830.05015.70
5.3.290.1000.04014.70
5.3.280.0830.05314.59
5.3.270.0970.06714.63
5.3.260.1100.06014.70
5.3.250.1230.05314.51
5.3.240.1130.05014.58
5.3.230.1030.05714.57
5.3.220.1130.05014.66
5.3.210.1030.05714.51
5.3.200.1100.04714.66
5.3.190.1100.05314.52
5.3.180.0870.05314.61
5.3.170.0830.06014.60
5.3.160.0970.04014.65
5.3.150.0970.05314.51
5.3.140.1030.04314.55
5.3.130.1200.07714.64
5.3.120.1200.07014.62
5.3.110.0900.05014.54
5.3.100.0970.05013.95
5.3.90.1100.04314.01
5.3.80.1030.05713.95
5.3.70.1070.04014.09
5.3.60.1000.05314.00
5.3.50.0870.06313.86
5.3.40.0930.06314.04
5.3.30.0970.06713.86
5.3.20.1030.06713.76
5.3.10.1030.05313.61
5.3.00.0870.05713.67
5.2.170.0870.04311.28
5.2.160.0800.05711.20
5.2.150.0870.05311.12
5.2.140.0800.04711.12
5.2.130.0870.04311.05
5.2.120.0770.04011.11
5.2.110.0800.04011.10
5.2.100.0730.05311.16
5.2.90.0730.04311.09
5.2.80.1030.05711.06
5.2.70.0900.06311.09
5.2.60.0830.04011.03
5.2.50.0800.04311.07
5.2.40.0600.04310.97
5.2.30.0700.03711.01
5.2.20.0730.04011.09
5.2.10.0700.04710.92
5.2.00.0570.05010.76
5.1.60.0600.04010.05
5.1.50.0670.03310.08
5.1.40.0670.03310.00
5.1.30.0570.04310.32
5.1.20.0800.04310.33
5.1.10.0800.03010.04
5.1.00.0800.04010.04
5.0.50.0400.0408.66
5.0.40.0330.0338.54
5.0.30.0400.0408.27
5.0.20.0330.0278.21
5.0.10.0330.0238.20
5.0.00.0300.0408.17
4.4.90.0330.0305.90
4.4.80.0400.0175.90
4.4.70.0370.0205.90
4.4.60.0370.0205.90
4.4.50.0330.0205.90
4.4.40.0300.0405.90
4.4.30.0330.0235.90
4.4.20.0300.0205.93
4.4.10.0270.0235.93
4.4.00.0300.0335.93
4.3.110.0400.0275.90
4.3.100.0300.0205.90
4.3.90.0270.0235.90
4.3.80.0270.0375.90
4.3.70.0300.0235.90
4.3.60.0430.0235.90
4.3.50.0400.0235.90
4.3.40.0370.0335.90
4.3.30.0230.0235.90
4.3.20.0170.0305.90
4.3.10.0170.0235.90
4.3.00.0070.02314.42