3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $items = array(new \stdClass(), new \stdClass()); $copy = array(); foreach ($items as $item) { $copy[] = $item; } $udiff = array_udiff($items, $copy, function ($a, $b) { return $a === $b; }); var_dump($diff, $udiff, $items, $copy);
based on a2HNT

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.0rc40.0390.00998.97
7.3.0rc30.0580.00316.60
7.3.0beta10.0040.00712.98
7.3.0alpha10.0080.00412.76
7.2.60.0030.01316.78
7.2.00.0040.01119.43
7.1.200.0130.00015.78
7.1.100.0030.00718.17
7.1.70.0040.00417.22
7.1.60.0060.01919.40
7.1.50.0140.01016.98
7.1.00.0000.08022.45
7.0.200.0140.00714.89
7.0.140.0030.07022.08
7.0.60.0200.06719.92
7.0.50.0070.05317.87
7.0.40.0200.06020.13
7.0.30.0270.08020.19
7.0.20.0270.05320.06
7.0.10.0130.03720.07
7.0.00.0030.08020.25
5.6.280.0070.06320.82
5.6.210.0200.07020.48
5.6.200.0030.04318.22
5.6.190.0000.06020.77
5.6.180.0130.04720.46
5.6.170.0200.08020.39
5.6.160.0030.04320.51
5.6.150.0030.08718.18
5.6.140.0000.04318.11
5.6.130.0030.06718.15
5.6.120.0030.07721.02
5.6.110.0170.07321.10
5.6.100.0170.06021.11
5.6.90.0170.08321.01
5.6.80.0070.09020.44
5.5.350.0000.05720.49
5.5.340.0130.07317.96
5.5.330.0030.06320.21
5.5.320.0330.04320.42
5.5.310.0330.07320.34
5.5.300.0030.05017.95
5.5.290.0030.06018.03
5.5.280.0070.07320.87
5.5.270.0070.06320.77
5.5.260.0200.08020.68
5.5.250.0030.07020.58
5.5.240.0200.08020.12
5.4.450.0270.04719.42
5.4.440.0430.05019.35
5.4.430.0230.04019.46
5.4.420.0370.04319.29
5.4.410.0600.04019.07
5.4.400.0630.04019.00
5.4.390.0830.05319.00
5.4.380.0930.05718.68
5.4.370.0870.05718.73
5.4.360.0970.05718.64
5.4.350.1100.06318.65
5.4.340.0730.05718.77
5.4.320.0050.05012.51
5.4.310.0100.04812.50
5.4.300.0100.03212.51
5.4.290.0080.04112.50
5.4.280.0090.03612.39
5.4.270.0050.03812.40
5.4.260.0060.03812.39
5.4.250.0100.03312.39
5.4.240.0030.03812.39
5.4.230.0070.03612.39
5.4.220.0070.03612.39
5.4.210.0050.03912.39
5.4.200.0070.03612.39
5.4.190.0070.03412.38
5.4.180.0060.03612.39
5.4.170.0060.03612.39
5.4.160.0050.03612.39
5.4.150.0070.03412.39
5.4.140.0040.04012.07
5.4.130.0040.03712.06
5.4.120.0100.03112.02
5.4.110.0070.03412.01
5.4.100.0090.03212.01
5.4.90.0060.04812.01
5.4.80.0070.04212.01
5.4.70.0060.03412.01
5.4.60.0080.03212.01
5.4.50.0040.03612.00
5.4.40.0090.03112.00
5.4.30.0050.04111.99
5.4.20.0090.04811.99
5.4.10.0050.03711.99
5.4.00.0100.03411.48
5.3.290.0060.04012.80
5.3.280.0080.03712.71
5.3.270.0070.03912.73
5.3.260.0040.04112.72
5.3.250.0080.03612.72
5.3.240.0060.04112.72
5.3.230.0060.03912.71
5.3.220.0070.03612.68
5.3.210.0080.04112.68
5.3.200.0060.03812.68
5.3.190.0060.03812.68
5.3.180.0050.04012.67
5.3.170.0020.04012.66
5.3.160.0070.04512.68
5.3.150.0070.03512.68
5.3.140.0090.03612.66
5.3.130.0060.03912.66
5.3.120.0070.03712.65
5.3.110.0080.04612.66
5.3.100.0110.04312.13
5.3.90.0060.03712.11
5.3.80.0060.03712.10
5.3.70.0090.04112.11
5.3.60.0060.03612.09
5.3.50.0090.04812.03
5.3.40.0090.03912.03
5.3.30.0050.03511.99
5.3.20.0050.03511.77
5.3.10.0080.03211.74
5.3.00.0060.03511.73
5.2.170.0060.0289.19
5.2.160.0050.0289.18
5.2.150.0060.0299.18
5.2.140.0040.0309.18
5.2.130.0110.0329.14
5.2.120.0070.0259.14
5.2.110.0030.0309.15
5.2.100.0060.0269.14
5.2.90.0020.0319.14
5.2.80.0060.0289.14
5.2.70.0090.0269.14
5.2.60.0030.0319.10
5.2.50.0050.0299.06
5.2.40.0070.0329.04
5.2.30.0030.0319.02
5.2.20.0050.0319.01
5.2.10.0050.0318.92
5.2.00.0050.0418.79
5.1.60.0060.0308.07
5.1.50.0080.0318.07
5.1.40.0050.0238.05
5.1.30.0070.0278.39
5.1.20.0040.0278.42
5.1.10.0030.0278.14
5.1.00.0050.0258.15
5.0.50.0040.0206.63
5.0.40.0090.0236.49
5.0.30.0030.0316.30
5.0.20.0050.0236.27
5.0.10.0020.0246.25
5.0.00.0050.0296.24
4.4.90.0020.0164.78
4.4.80.0050.0184.75
4.4.70.0020.0164.76
4.4.60.0030.0164.75
4.4.50.0050.0134.77
4.4.40.0050.0334.71
4.4.30.0030.0144.75
4.4.20.0020.0184.85
4.4.10.0030.0174.85
4.4.00.0020.0264.76
4.3.110.0020.0174.67
4.3.100.0000.0174.66
4.3.90.0050.0214.64
4.3.80.0030.0234.58
4.3.70.0020.0204.63
4.3.60.0050.0184.63
4.3.50.0020.0164.63
4.3.40.0050.0264.54
4.3.30.0040.0203.29
4.3.20.0040.0193.26
4.3.10.0020.0153.23
4.3.00.0200.01313.43