3v4l.org

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

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.1.70.0030.00717.09
7.1.60.0110.01419.46
7.1.50.0150.00616.89
7.1.00.0070.07322.45
7.0.200.0090.00314.99
7.0.140.0070.06722.01
7.0.60.0000.04319.93
7.0.50.0100.03717.77
7.0.40.0030.04319.97
7.0.30.0300.07720.08
7.0.20.0170.05320.20
7.0.10.0070.06320.13
7.0.00.0130.05020.08
5.6.280.0000.07720.81
5.6.210.0130.03020.50
5.6.200.0000.09018.21
5.6.190.0100.08020.67
5.6.180.0430.07020.64
5.6.170.0300.07720.42
5.6.160.0070.05320.48
5.6.150.0030.05718.18
5.6.140.0070.08318.09
5.6.130.0130.05018.21
5.6.120.0170.03321.12
5.6.110.0100.06320.98
5.6.100.0130.07721.03
5.6.90.0030.06721.01
5.6.80.0070.06720.34
5.5.350.0230.03720.43
5.5.340.0070.05717.99
5.5.330.0030.04320.47
5.5.320.0100.07320.42
5.5.310.0230.04720.29
5.5.300.0000.05718.02
5.5.290.0070.03717.91
5.5.280.0100.08320.79
5.5.270.0070.08720.68
5.5.260.0030.08720.88
5.5.250.0170.06720.70
5.5.240.0070.07320.22
5.4.450.0770.05019.56
5.4.440.0970.05319.13
5.4.430.0630.04319.48
5.4.420.0870.04319.51
5.4.410.0830.05718.99
5.4.400.0670.06319.17
5.4.390.0970.06718.59
5.4.380.1030.06718.49
5.4.370.1000.07318.66
5.4.360.0870.06018.65
5.4.350.1130.06718.49
5.4.340.0970.07718.59
5.4.320.1170.07018.71
5.4.310.1230.06318.51
5.4.300.1330.06718.57
5.4.290.1370.06718.51
5.4.280.1200.05718.68
5.4.270.1200.06018.73
5.4.260.1200.06718.43
5.4.250.1200.05318.48
5.4.240.1100.07018.49
5.4.230.1100.05718.72
5.4.220.0970.07718.73
5.4.210.1430.06018.61
5.4.200.1270.05716.41
5.4.190.1230.06718.66
5.4.180.1230.04318.47
5.4.170.1070.07718.48
5.4.160.1200.07318.56
5.4.150.1270.07018.72
5.4.140.1470.05316.07
5.4.130.1230.06316.16
5.4.120.1100.07016.16
5.4.110.1100.06016.12
5.4.100.1300.05016.11
5.4.90.1030.06316.25
5.4.80.1170.05016.09
5.4.70.1070.07316.09
5.4.60.1200.07016.18
5.4.50.1300.06316.10
5.4.40.1330.07316.19
5.4.30.1170.06016.21
5.4.20.1030.06715.99
5.4.10.1100.06316.13
5.4.00.1270.06015.55
5.3.290.0930.05014.63
5.3.280.1030.05314.68
5.3.270.0930.04714.60
5.3.260.1030.06014.51
5.3.250.1030.06714.70
5.3.240.1030.06714.63
5.3.230.0870.07014.63
5.3.220.0970.05014.47
5.3.210.0930.06714.51
5.3.200.1070.05014.56
5.3.190.0970.05014.51
5.3.180.1030.06014.55
5.3.170.1070.04714.52
5.3.160.1030.07314.55
5.3.150.1100.06014.48
5.3.140.1130.05714.46
5.3.130.0830.07014.46
5.3.120.1100.05714.44
5.3.110.1130.07314.54
5.3.100.1070.06714.01
5.3.90.0970.05713.97
5.3.80.1000.04714.10
5.3.70.0970.05714.05
5.3.60.1030.05013.98
5.3.50.0900.06013.88
5.3.40.0900.05713.92
5.3.30.1030.05313.84
5.3.20.1000.05313.67
5.3.10.1030.04313.60
5.3.00.1030.05013.72
5.2.170.0830.04311.20
5.2.160.0870.04711.13
5.2.150.0900.04311.09
5.2.140.0900.04711.10
5.2.130.0900.05711.27
5.2.120.0900.04011.01
5.2.110.0730.04311.07
5.2.100.0700.05011.26
5.2.90.0770.03711.26
5.2.80.0730.04311.04
5.2.70.0730.05711.08
5.2.60.1170.04710.96
5.2.50.0900.04310.98
5.2.40.0700.04311.04
5.2.30.0530.05010.92
5.2.20.0670.03710.92
5.2.10.0800.03310.90
5.2.00.0630.05010.76
5.1.60.0670.03010.01
5.1.50.0630.03310.02
5.1.40.0700.0379.98
5.1.30.0700.04310.44
5.1.20.0700.04310.48
5.1.10.0770.04010.05
5.1.00.0670.05010.13
5.0.50.0470.0338.62
5.0.40.0330.0378.42
5.0.30.0500.0538.28
5.0.20.0370.0408.18
5.0.10.0430.0378.18
5.0.00.0400.0408.19
4.4.90.0430.0235.90
4.4.80.0430.0235.90
4.4.70.0430.0305.90
4.4.60.0370.0275.90
4.4.50.0370.0305.91
4.4.40.0430.0275.90
4.4.30.0430.0175.90
4.4.20.0300.0305.95
4.4.10.0300.0275.93
4.4.00.0330.0405.91
4.3.110.0400.0175.90
4.3.100.0300.0235.90
4.3.90.0430.0205.90
4.3.80.0300.0375.90
4.3.70.0300.0235.90
4.3.60.0300.0235.90
4.3.50.0370.0235.90
4.3.40.0270.0405.90
4.3.30.0130.0235.90
4.3.20.0230.0135.90
4.3.10.0300.0275.90
4.3.00.0070.03714.42