3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = ['test' => 'test', 'yup' => 'nope']; $arr2 = ['test', 'yup', 'yolo']; $diff = array_diff(array_keys($arr1), $arr2); var_dump($diff);

Here you find the average performance (time & memory) of each version. A greyed 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.2.00.0070.01119.20
7.1.100.0070.01017.94
7.1.70.0030.01017.14
7.1.60.0030.02119.46
7.1.50.0000.02016.80
7.1.00.0100.07022.36
7.0.200.0130.00614.66
7.0.140.0000.07722.09
7.0.60.0070.06719.91
7.0.50.0000.04317.66
7.0.40.0100.10020.09
7.0.30.0330.07020.21
7.0.20.0130.04720.20
7.0.10.0130.08720.33
7.0.00.0030.07720.01
5.6.280.0070.07021.12
5.6.210.0100.07320.76
5.6.200.0100.05718.17
5.6.190.0030.04720.43
5.6.180.0300.05320.77
5.6.170.0300.07320.50
5.6.160.0070.06720.37
5.6.150.0030.04018.27
5.6.140.0100.07718.15
5.6.130.0070.08018.15
5.6.120.0100.08021.06
5.6.110.0130.07321.00
5.6.100.0100.08721.02
5.6.90.0030.08021.02
5.6.80.0170.06720.39
5.5.350.0400.06020.39
5.5.340.0030.08717.95
5.5.330.0100.08720.21
5.5.320.0030.07320.21
5.5.310.0370.06320.28
5.5.300.0070.04317.93
5.5.290.0070.08717.91
5.5.280.0030.06020.87
5.5.270.0070.06320.76
5.5.260.0130.05720.96
5.5.250.0070.05320.45
5.5.240.0030.07320.25
5.4.450.0270.06319.25
5.4.440.0900.06719.56
5.4.430.0730.05719.57
5.4.420.0900.05319.25
5.4.410.0830.05719.19
5.4.400.1170.05019.00
5.4.390.1070.05318.62
5.4.380.1070.04318.59
5.4.370.0770.06318.68
5.4.360.1000.05318.61
5.4.350.1030.08318.69
5.4.340.1400.07018.68
5.4.320.1070.04318.73
5.4.310.0930.06018.70
5.4.300.1000.05718.75
5.4.290.1030.05318.62
5.4.280.1030.06018.48
5.4.270.0970.06018.69
5.4.260.1000.05318.60
5.4.250.0970.05718.54
5.4.240.1030.05018.49
5.4.230.1070.05318.48
5.4.220.1070.04718.70
5.4.210.0970.05718.67
5.4.200.1030.04716.61
5.4.190.0900.06018.45
5.4.180.1000.05318.67
5.4.170.1070.05318.61
5.4.160.1030.05318.59
5.4.150.1000.05318.38
5.4.140.1000.04716.20
5.4.130.0970.05316.16
5.4.120.1070.04716.16
5.4.110.0970.05016.08
5.4.100.0800.08016.24
5.4.90.1030.05716.09
5.4.80.0970.05316.33
5.4.70.1000.05016.14
5.4.60.0930.05716.05
5.4.50.1030.04716.23
5.4.40.1100.07016.09
5.4.30.1130.05316.20
5.4.20.1070.05016.28
5.4.10.1200.04316.23
5.4.00.0900.05315.51
5.3.290.1130.05714.65
5.3.280.1030.05314.64
5.3.270.1070.05014.63
5.3.260.0930.06014.59
5.3.250.1070.06314.64
5.3.240.0970.05014.50
5.3.230.0930.04714.49
5.3.220.1000.06014.48
5.3.210.1070.04714.53
5.3.200.1030.05314.50
5.3.190.1130.07314.55
5.3.180.1030.06014.48
5.3.170.1070.05014.55
5.3.160.0900.05014.63
5.3.150.0930.05714.59
5.3.140.0930.05714.46
5.3.130.1070.05314.52
5.3.120.0970.05714.44
5.3.110.1100.04314.53
5.3.100.0970.05714.02
5.3.90.1030.05013.92
5.3.80.0930.04313.95
5.3.70.1030.05013.95
5.3.60.1030.04713.97
5.3.50.1030.03713.85
5.3.40.1030.06313.88
5.3.30.0900.05013.86
5.3.20.0830.05313.68
5.3.10.0800.06313.67
5.3.00.0830.05013.61
5.2.170.0730.05011.29
5.2.160.0770.04311.28
5.2.150.0730.04011.11
5.2.140.0730.04011.20
5.2.130.0900.04010.97
5.2.120.0830.04311.07
5.2.110.0800.05011.11
5.2.100.0670.04011.06
5.2.90.0730.03711.16
5.2.80.0800.04711.02
5.2.70.0770.05011.13
5.2.60.0830.04011.00
5.2.50.1000.05310.95
5.2.40.0670.04010.95
5.2.30.0700.03710.95
5.2.20.0670.05011.00
5.2.10.0630.04310.90
5.2.00.0730.03710.87
5.1.60.0630.03310.11
5.1.50.0670.03310.11
5.1.40.0600.03710.01
5.1.30.0570.04310.30
5.1.20.0670.03310.32
5.1.10.0670.03310.19
5.1.00.0500.04310.08
5.0.50.0330.0308.65
5.0.40.0330.0278.53
5.0.30.0370.0438.29
5.0.20.0370.0308.23
5.0.10.0300.0308.29
5.0.00.0300.0478.17
4.4.90.0300.0235.88
4.4.80.0200.0275.94
4.4.70.0270.0275.87
4.4.60.0370.0205.87
4.4.50.0300.0235.88
4.4.40.0400.0375.92
4.4.30.0370.0175.90
4.4.20.0400.0175.94
4.4.10.0300.0235.96
4.4.00.0300.0375.90
4.3.110.0230.0275.83
4.3.100.0300.0205.76
4.3.90.0330.0175.79
4.3.80.0330.0335.77
4.3.70.0400.0175.80
4.3.60.0330.0205.79
4.3.50.0330.0235.78
4.3.40.0300.0375.79
4.3.30.0100.0304.55
4.3.20.0230.0204.55
4.3.10.0170.0204.52
4.3.00.0130.0179.35