3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['invitedEmail' => 'asd@asd.pl', 'pending' => true]; $b = ['createdAt' => '12', 'deletedAt' => '11', 'pending' => false]; var_dump($a + $b); var_dump(array_merge($a, $b));

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.0180.00316.28
7.3.00.0160.00315.88
7.2.130.0190.00016.56
7.2.120.0070.00716.54
7.2.110.0130.01116.53
7.2.100.0070.01116.64
7.2.90.0150.00916.52
7.2.80.0160.00016.33
7.2.70.0130.01316.49
7.2.60.0160.00416.22
7.2.50.0090.00916.05
7.2.40.0250.00616.80
7.2.30.0050.00816.52
7.2.20.0100.00716.19
7.2.10.0160.00016.29
7.2.00.0100.00717.80
7.1.250.0210.00315.67
7.1.200.0070.00315.54
7.1.100.0000.01017.99
7.1.70.0040.00417.16
7.1.60.0030.02219.19
7.1.50.0130.01016.89
7.1.00.0070.07322.51
7.0.200.0000.00716.53
7.0.60.0100.08719.92
7.0.50.0070.05317.74
7.0.40.0200.07319.98
7.0.30.0200.04320.31
7.0.20.0370.07320.13
7.0.10.0070.04320.13
7.0.00.0100.05019.99
5.6.280.0030.07020.92
5.6.210.0030.05320.54
5.6.200.0070.04018.18
5.6.190.0070.05720.67
5.6.180.0400.04320.45
5.6.170.0370.07320.48
5.6.160.0030.07320.54
5.6.150.0000.04718.12
5.6.140.0070.08318.16
5.6.130.0030.08318.08
5.6.120.0070.04320.96
5.6.110.0170.09020.97
5.6.100.0100.04020.95
5.6.90.0100.06021.02
5.6.80.0100.07320.36
5.5.350.4330.04320.46
5.5.340.0170.04018.02
5.5.330.0100.04320.37
5.5.320.0370.07020.31
5.5.310.0170.06720.18
5.5.300.0070.07717.91
5.5.290.0000.04718.02
5.5.280.0130.08320.73
5.5.270.0070.05720.91
5.5.260.0130.07320.75
5.5.250.0030.07720.69
5.5.240.0000.08320.25
5.4.450.0200.05319.64
5.4.440.1030.05319.58
5.4.430.1200.05319.08
5.4.420.0900.06719.43
5.4.410.0800.07019.46
5.4.400.1070.04319.32
5.4.390.0870.04718.99
5.4.380.0770.05319.26
5.4.370.0870.05719.11
5.4.360.0900.05319.26
5.4.350.1100.05319.15
5.4.340.0630.07318.93
5.4.320.0970.07319.11
5.4.310.0900.05718.89
5.4.300.0930.04719.22
5.4.290.0730.05018.75
5.4.280.0900.05019.15
5.4.270.0870.05018.80
5.4.260.0830.06319.11
5.4.250.0670.06319.27
5.4.240.0830.04318.78
5.4.230.0830.05719.25
5.4.220.0930.06019.23
5.4.210.0930.04719.11
5.4.200.0730.05016.57
5.4.190.0870.05318.89
5.4.180.0800.05018.94
5.4.170.1000.05318.95
5.4.160.0870.04719.27
5.4.150.0670.06018.82
5.4.140.0800.05716.39
5.4.130.0900.04316.27
5.4.120.0600.05016.37
5.4.110.0700.05316.32
5.4.100.0700.06016.25
5.4.90.0900.06016.28
5.4.80.0970.04716.59
5.4.70.0830.06016.23
5.4.60.1230.04316.32
5.4.50.0700.05316.57
5.4.40.0900.05016.36
5.4.30.0700.05316.29
5.4.20.0830.06316.45
5.4.10.1030.04316.18
5.4.00.0800.05315.71
5.3.290.1000.07314.52
5.3.280.0900.04314.58
5.3.270.0830.06014.45
5.3.260.0800.05714.47
5.3.250.0970.04714.45
5.3.240.0900.05714.49
5.3.230.0730.05314.46
5.3.220.1100.03714.45
5.3.210.1030.05014.55
5.3.200.1100.05314.43
5.3.190.1170.06014.41
5.3.180.0870.06014.42
5.3.170.0900.05314.40
5.3.160.1000.05714.55
5.3.150.0670.06014.52
5.3.140.0830.05314.42
5.3.130.0870.05014.39
5.3.120.0800.05314.64
5.3.110.0900.05714.53
5.3.100.0830.05014.03
5.3.90.0900.05013.86
5.3.80.1000.04313.86
5.3.70.0900.05313.90
5.3.60.0870.05713.95
5.3.50.0800.05313.72
5.3.40.1030.06013.96
5.3.30.1030.07013.69
5.3.20.1070.07713.58
5.3.10.1170.05713.50
5.3.00.0900.05013.59
5.2.170.0730.04711.13
5.2.160.0600.04010.98
5.2.150.0770.05710.99
5.2.140.0730.04711.09
5.2.130.0770.04310.95
5.2.120.0700.05010.99
5.2.110.0730.03711.15
5.2.100.0670.04011.04
5.2.90.0770.03711.05
5.2.80.0730.05011.25
5.2.70.0500.05010.94
5.2.60.0830.04011.00
5.2.50.0830.04710.86
5.2.40.0670.04010.82
5.2.30.0470.04710.81
5.2.20.0600.05710.98
5.2.10.0700.05310.91
5.2.00.0700.04310.61
5.1.60.0530.03710.15
5.1.50.0530.03710.01
5.1.40.0530.04010.02
5.1.30.0470.04710.35
5.1.20.0670.03710.21
5.1.10.0700.03310.06
5.1.00.0600.04010.08
5.0.50.0300.0338.47
5.0.40.0170.0378.46
5.0.30.0270.0438.11
5.0.20.0370.0238.20
5.0.10.0270.0238.05
5.0.00.0270.0508.17
4.4.90.0400.0305.80
4.4.80.0330.0175.79
4.4.70.0170.0275.80
4.4.60.0200.0235.84
4.4.50.0300.0205.84
4.4.40.0330.0375.83
4.4.30.0300.0235.80
4.4.20.0200.0235.89
4.4.10.0400.0175.86
4.4.00.0370.0305.84
4.3.110.0370.0275.72
4.3.100.0100.0275.68
4.3.90.0270.0175.67
4.3.80.0370.0375.70
4.3.70.0230.0235.75
4.3.60.0300.0235.65
4.3.50.0370.0275.72
4.3.40.0200.0335.70
4.3.30.0100.0274.57
4.3.20.0130.0304.48
4.3.10.0170.0304.36
4.3.00.0000.0236.62