3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'Hello World'; $sql = [1 => ["id" => 1, "num" => "123"], 2 => ["id" => 2, "num" => "456"]]; $mongo = ["id" => 1, "num" => "123"]; array_diff($mongo, $sql); var_dump($a);
based on Pd5AQ

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.2.60.0070.01016.95
7.2.00.0000.01419.21
7.1.200.0000.01315.78
7.1.100.0130.00717.91
7.1.70.0070.00317.03
7.1.60.0070.01819.40
7.1.50.0090.01216.57
7.1.00.0030.09722.45
7.0.200.0070.00016.37
7.0.140.0000.07722.08
7.0.60.0200.05720.06
7.0.50.0130.07317.84
7.0.40.0100.07720.41
7.0.30.0370.07720.18
7.0.20.0270.03320.12
7.0.10.0070.07320.16
7.0.00.0030.09320.00
5.6.280.0030.07320.98
5.6.210.0000.06020.64
5.6.200.0100.06718.15
5.6.190.0030.09020.61
5.6.180.0330.03320.27
5.6.170.0300.05720.38
5.6.160.0030.05720.61
5.6.150.0130.06718.19
5.6.140.0070.08718.21
5.6.130.0100.06018.11
5.6.120.0100.08021.02
5.6.110.0130.07321.13
5.6.100.0070.08721.00
5.6.90.0000.09321.10
5.6.80.0170.07320.54
5.5.350.0300.06320.41
5.5.340.0200.06318.02
5.5.330.0130.04720.06
5.5.320.0270.03720.51
5.5.310.0270.07020.23
5.5.300.0070.04717.95
5.5.290.0030.08317.92
5.5.280.0030.04720.80
5.5.270.0070.05720.61
5.5.260.0070.08320.72
5.5.250.0030.06720.71
5.5.240.0100.05720.25
5.4.450.1200.06319.28
5.4.440.0770.05719.54
5.4.430.0570.06019.65
5.4.420.0270.05319.50
5.4.410.0170.05318.81
5.4.400.0370.06018.85
5.4.390.0330.06018.68
5.4.380.0070.05718.46
5.4.370.0130.04018.57
5.4.360.0130.04718.76
5.4.350.0070.03311.98
5.4.340.0050.03911.97
5.4.320.0090.03412.45
5.4.310.0060.03912.45
5.4.300.0080.03512.46
5.4.290.0100.03412.45
5.4.280.0040.03712.35
5.4.270.0090.03312.35
5.4.260.0060.03812.35
5.4.250.0060.03712.35
5.4.240.0060.03612.35
5.4.230.0070.03712.34
5.4.220.0040.03812.34
5.4.210.0130.02812.34
5.4.200.0070.03712.34
5.4.190.0050.03812.34
5.4.180.0050.03712.34
5.4.170.0050.03612.35
5.4.160.0060.03612.35
5.4.150.0030.03912.34
5.4.140.0050.03912.02
5.4.130.0050.03612.01
5.4.120.0060.04011.97
5.4.110.0040.03611.96
5.4.100.0050.03511.97
5.4.90.0080.03411.96
5.4.80.0040.03811.96
5.4.70.0050.03511.96
5.4.60.0080.03211.96
5.4.50.0080.03311.96
5.4.40.0080.03211.95
5.4.30.0050.03511.95
5.4.20.0040.03611.95
5.4.10.0020.03811.94
5.4.00.0050.03611.44
5.3.290.0060.03812.80
5.3.280.0050.03812.71
5.3.270.0090.03512.73
5.3.260.0040.04112.72
5.3.250.0080.03412.71
5.3.240.0080.03412.72
5.3.230.0040.03912.71
5.3.220.0020.04112.68
5.3.210.0050.03912.68
5.3.200.0030.03812.68
5.3.190.0020.04112.68
5.3.180.0040.03712.67
5.3.170.0070.03512.67
5.3.160.0060.03512.68
5.3.150.0060.03612.68
5.3.140.0060.03712.66
5.3.130.0060.03812.66
5.3.120.0050.04912.66
5.3.110.0070.03712.66
5.3.100.0080.03412.12
5.3.90.0070.03412.08
5.3.80.0040.03712.07
5.3.70.0070.03512.08
5.3.60.0040.03712.07
5.3.50.0070.03412.00
5.3.40.0060.03612.00
5.3.30.0100.03011.95
5.3.20.0060.03411.73
5.3.10.0020.03811.70
5.3.00.0070.03411.68
5.2.170.0050.0299.18
5.2.160.0050.0289.19
5.2.150.0050.0299.18
5.2.140.0050.0299.18
5.2.130.0040.0299.14
5.2.120.0080.0259.14
5.2.110.0060.0309.15
5.2.100.0040.0299.14
5.2.90.0050.0279.14
5.2.80.0020.0339.14
5.2.70.0070.0279.14
5.2.60.0040.0309.09
5.2.50.0040.0319.06
5.2.40.0030.0309.04
5.2.30.0030.0319.01
5.2.20.0040.0299.00
5.2.10.0070.0258.92
5.2.00.0030.0298.78
5.1.60.0040.0248.07
5.1.50.0040.0258.07
5.1.40.0060.0238.04
5.1.30.0050.0258.40
5.1.20.0020.0288.42
5.1.10.0060.0248.14
5.1.00.0050.0248.14
5.0.50.0040.0206.62
5.0.40.0020.0206.48
5.0.30.0020.0336.29
5.0.20.0010.0216.27
5.0.10.0020.0216.24
5.0.00.0010.0336.23
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0000.0184.75
4.4.60.0030.0154.75
4.4.50.0050.0134.77
4.4.40.0020.0264.71
4.4.30.0010.0174.76
4.4.20.0010.0174.85
4.4.10.0040.0144.85
4.4.00.0030.0254.75
4.3.110.0070.0114.66
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0010.0264.59
4.3.70.0040.0174.63
4.3.60.0030.0154.62
4.3.50.0040.0144.63
4.3.40.0020.0254.54
4.3.30.0020.0163.28
4.3.20.0040.0143.26
4.3.10.0040.0133.22
4.3.00.0170.0237.12