3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 3; $b = 5; $a = $a xor $b; $b = $a xor $b; $a = $a xor $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.2.00.0000.01619.33
7.1.100.0030.00918.12
7.1.70.0000.01117.13
7.1.60.0120.01219.32
7.1.50.0140.01016.89
7.1.00.0000.08022.37
7.0.200.0030.00616.74
7.0.140.0000.07322.01
7.0.60.0100.05019.96
7.0.50.0000.07017.86
7.0.40.0100.04020.30
7.0.30.0530.07720.45
7.0.20.0130.04320.12
7.0.10.0170.07720.33
7.0.00.0000.06020.29
5.6.280.0030.07321.03
5.6.210.0070.08020.48
5.6.200.0070.07318.19
5.6.190.0100.07320.36
5.6.180.0330.07020.77
5.6.170.0330.07020.51
5.6.160.0070.05020.53
5.6.150.0130.05718.22
5.6.140.0070.05718.07
5.6.130.0100.08018.18
5.6.120.0100.08321.11
5.6.110.0070.07020.99
5.6.100.0130.07721.13
5.6.90.0070.04721.09
5.6.80.0170.07020.25
5.6.70.4470.04020.39
5.5.350.0330.05720.32
5.5.340.0070.08017.95
5.5.330.0100.03720.19
5.5.320.0130.05020.28
5.5.310.0270.06720.34
5.5.300.0070.06717.88
5.5.290.0070.08017.90
5.5.280.0030.05720.97
5.5.270.0030.04320.75
5.5.260.0100.07020.93
5.5.250.0070.07320.49
5.5.240.0200.06020.24
5.4.450.0730.06319.28
5.4.440.0670.05719.52
5.4.430.0800.05719.63
5.4.420.0700.07019.55
5.4.410.0430.05018.97
5.4.400.1170.05718.89
5.4.390.0470.06319.10
5.4.380.0870.05319.26
5.4.370.0770.05019.12
5.4.360.0430.06019.19
5.4.350.0170.04718.99
5.4.340.0080.04211.96
5.4.320.0080.03612.45
5.4.310.0060.03812.45
5.4.300.0070.03612.45
5.4.290.0050.04012.45
5.4.280.0080.03812.34
5.4.270.0100.03312.35
5.4.260.0050.04012.34
5.4.250.0080.03912.34
5.4.240.0060.03612.34
5.4.230.0030.04212.34
5.4.220.0050.03912.34
5.4.210.0090.03512.34
5.4.200.0050.03912.34
5.4.190.0040.03812.33
5.4.180.0060.03712.33
5.4.170.0050.03712.35
5.4.160.0060.03612.34
5.4.150.0100.03312.34
5.4.140.0040.04012.02
5.4.130.0050.04512.01
5.4.120.0060.04011.97
5.4.110.0060.03611.96
5.4.100.0040.03711.96
5.4.90.0050.04311.96
5.4.80.0100.03911.96
5.4.70.0070.04811.96
5.4.60.0040.03811.96
5.4.50.0060.03711.96
5.4.40.0080.03811.95
5.4.30.0100.04111.95
5.4.20.0140.05011.95
5.4.10.0040.04011.95
5.4.00.0060.03611.43
5.3.290.0060.03912.80
5.3.280.0040.04212.71
5.3.270.0070.04012.73
5.3.260.0060.04112.72
5.3.250.0040.03912.72
5.3.240.0040.03912.72
5.3.230.0070.03812.71
5.3.220.0090.03312.68
5.3.210.0040.04012.68
5.3.200.0070.03512.68
5.3.190.0040.03912.68
5.3.180.0060.03612.67
5.3.170.0060.03512.67
5.3.160.0050.03712.67
5.3.150.0080.03512.67
5.3.140.0080.03612.66
5.3.130.0060.04012.66
5.3.120.0060.04812.66
5.3.110.0060.04312.66
5.3.100.0050.03812.12
5.3.90.0090.03212.08
5.3.80.0070.04012.08
5.3.70.0080.03412.07
5.3.60.0040.03812.06
5.3.50.0060.04512.00
5.3.40.0070.03812.00
5.3.30.0100.03211.94
5.3.20.0050.03711.72
5.3.10.0060.03711.69
5.3.00.0060.03811.68
5.2.170.0070.0349.18
5.2.160.0090.0259.18
5.2.150.0050.0309.18
5.2.140.0040.0329.17
5.2.130.0070.0309.13
5.2.120.0050.0299.13
5.2.110.0040.0309.14
5.2.100.0040.0299.14
5.2.90.0100.0379.14
5.2.80.0040.0349.13
5.2.70.0040.0319.13
5.2.60.0040.0309.08
5.2.50.0050.0309.05
5.2.40.0050.0289.03
5.2.30.0020.0329.00
5.2.20.0040.0328.99
5.2.10.0040.0308.91
5.2.00.0030.0328.77
5.1.60.0030.0268.06
5.1.50.0010.0308.05
5.1.40.0050.0238.04
5.1.30.0040.0268.39
5.1.20.0060.0258.41
5.1.10.0040.0268.14
5.1.00.0010.0298.14
5.0.50.0040.0206.62
5.0.40.0040.0186.47
5.0.30.0040.0306.29
5.0.20.0020.0256.25
5.0.10.0030.0246.23
5.0.00.0040.0336.23
4.4.90.0030.0204.78
4.4.80.0030.0174.76
4.4.70.0040.0154.76
4.4.60.0060.0134.75
4.4.50.0040.0154.77
4.4.40.0060.0274.71
4.4.30.0030.0174.76
4.4.20.0050.0164.84
4.4.10.0040.0194.85
4.4.00.0060.0294.76
4.3.110.0050.0224.67
4.3.100.0040.0214.66
4.3.90.0030.0174.64
4.3.80.0040.0254.58
4.3.70.0040.0144.63
4.3.60.0030.0154.63
4.3.50.0030.0174.63
4.3.40.0020.0294.54
4.3.30.0040.0203.28
4.3.20.0060.0133.26
4.3.10.0030.0183.21
4.3.00.0000.0236.96