3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( version_compare('8.0', '9.0.0', '>'), version_compare('8.0-alpha12', '8.0.0-beta1', '>') ); var_dump( version_compare('8.0.0', '9.0.0', '>'), version_compare('8.0.0-alpha12', '8.0.0-beta1', '>') );

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.0060.01016.22
7.2.00.0000.01418.91
7.1.200.0250.00315.28
7.1.100.0030.00917.94
7.1.70.0040.01116.92
7.1.60.0030.02019.46
7.1.50.0160.00616.75
7.1.00.0030.07722.30
7.0.200.0040.00414.69
7.0.140.0030.06722.18
7.0.60.0070.03719.93
7.0.50.0200.06317.77
7.0.40.0000.07320.40
7.0.30.0300.04720.45
7.0.20.0370.07020.16
7.0.10.0030.07720.12
7.0.00.0100.07720.33
5.6.280.0100.06721.07
5.6.210.0000.05020.50
5.6.200.0100.08318.21
5.6.190.0200.07720.41
5.6.180.0300.07320.68
5.6.170.0270.04020.50
5.6.160.0000.04720.49
5.6.150.0030.06018.18
5.6.140.0130.03018.09
5.6.130.0030.04018.15
5.6.120.0100.04720.89
5.6.110.0200.07320.96
5.6.100.0070.03720.98
5.6.90.0130.07321.09
5.6.80.0170.05320.38
5.5.350.0030.06720.41
5.5.340.0070.08017.96
5.5.330.0070.04320.08
5.5.320.0200.04320.32
5.5.310.0230.05720.16
5.5.300.0130.07317.92
5.5.290.0030.04317.91
5.5.280.0070.05020.76
5.5.270.0100.06720.72
5.5.260.0130.07720.75
5.5.250.0100.08320.61
5.5.240.3730.04320.22
5.4.450.0770.06019.09
5.4.440.0630.05319.46
5.4.430.0670.06019.11
5.4.420.0670.05319.44
5.4.410.0730.04319.47
5.4.400.0630.06319.26
5.4.390.0170.05319.14
5.4.380.0400.05018.51
5.4.370.0200.06018.77
5.4.360.0370.04318.71
5.4.350.0370.08018.69
5.4.340.0200.06018.52
5.4.320.0050.04012.46
5.4.310.0060.04712.45
5.4.300.0090.03612.46
5.4.290.0060.03912.44
5.4.280.0070.05212.34
5.4.270.0130.04712.34
5.4.260.0080.05212.33
5.4.250.0090.03612.34
5.4.240.0100.03512.34
5.4.230.0120.03812.33
5.4.220.0100.04612.32
5.4.210.0100.04912.33
5.4.200.0080.03812.33
5.4.190.0080.03712.33
5.4.180.0070.05412.32
5.4.170.0110.06512.34
5.4.160.0120.04712.33
5.4.150.0100.04912.33
5.4.140.0100.05112.01
5.4.130.0150.05112.00
5.4.120.0110.05711.95
5.4.110.0060.05411.95
5.4.100.0090.03611.95
5.4.90.0050.05611.95
5.4.80.0120.05111.95
5.4.70.0070.04811.94
5.4.60.0060.05411.95
5.4.50.0060.05311.95
5.4.40.0090.05111.93
5.4.30.0070.04111.93
5.4.20.0070.03811.93
5.4.10.0080.05311.93
5.4.00.0070.05511.42
5.3.290.0070.04712.80
5.3.280.0120.05112.71
5.3.270.0090.05712.73
5.3.260.0060.05812.72
5.3.250.0120.04712.72
5.3.240.0080.03812.72
5.3.230.0080.03812.71
5.3.220.0080.04612.68
5.3.210.0110.04612.68
5.3.200.0060.04012.68
5.3.190.0100.03912.68
5.3.180.0080.04312.67
5.3.170.0040.04512.67
5.3.160.0060.03812.67
5.3.150.0090.03512.68
5.3.140.0070.04012.66
5.3.130.0080.03912.66
5.3.120.0090.03812.66
5.3.110.0110.03912.66
5.3.100.0070.04012.11
5.3.90.0100.03712.09
5.3.80.0070.03812.08
5.3.70.0040.04012.07
5.3.60.0080.03712.06
5.3.50.0050.04012.00
5.3.40.0070.03812.00
5.3.30.0080.05011.95
5.3.20.0070.05311.72
5.3.10.0150.05811.70
5.3.00.0090.04611.68
5.2.170.0080.0289.19
5.2.160.0030.0329.18
5.2.150.0080.0309.18
5.2.140.0050.0319.18
5.2.130.0050.0309.14
5.2.120.0090.0339.14
5.2.110.0100.0389.14
5.2.100.0060.0339.14
5.2.90.0050.0309.15
5.2.80.0070.0439.14
5.2.70.0090.0419.14
5.2.60.0070.0499.09
5.2.50.0070.0299.06
5.2.40.0050.0409.04
5.2.30.0050.0319.02
5.2.20.0050.0299.00
5.2.10.0060.0318.93
5.2.00.0050.0338.78
5.1.60.0050.0338.07
5.1.50.0030.0298.07
5.1.40.0040.0288.05
5.1.30.0070.0268.39
5.1.20.0060.0278.41
5.1.10.0030.0288.14
5.1.00.0040.0278.14
5.0.50.0020.0256.62
5.0.40.0050.0196.48
5.0.30.0050.0336.29
5.0.20.0050.0206.26
5.0.10.0060.0186.24
5.0.00.0050.0306.23
4.4.90.0040.0224.78
4.4.80.0030.0174.76
4.4.70.0030.0174.76
4.4.60.0060.0194.76
4.4.50.0040.0174.77
4.4.40.0020.0284.71
4.4.30.0030.0164.75
4.4.20.0070.0134.84
4.4.10.0040.0144.85
4.4.00.0030.0294.76
4.3.110.0050.0224.67
4.3.100.0040.0154.66
4.3.90.0030.0154.63
4.3.80.0050.0234.58
4.3.70.0040.0214.63
4.3.60.0040.0164.63
4.3.50.0020.0224.63
4.3.40.0040.0234.54
4.3.30.0040.0143.28
4.3.20.0030.0153.26
4.3.10.0030.0153.22
4.3.00.0030.01313.47