3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $user['firstname']='IGor'; echo ($user['firstname']?:'Drop');

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.0120.00819.41
7.1.100.0040.00718.30
7.1.70.0040.00416.99
7.1.60.0100.01319.40
7.1.50.0080.00816.82
7.1.00.0070.07022.35
7.0.200.0000.00916.61
7.0.140.0100.06721.97
7.0.60.0130.03720.02
7.0.50.0030.04017.91
7.0.40.0130.03720.24
7.0.30.0070.07320.20
7.0.20.0330.07320.21
7.0.10.0070.04320.09
7.0.00.0070.08320.00
5.6.280.0000.07720.90
5.6.210.0070.04320.61
5.6.200.0070.08318.23
5.6.190.0200.07320.54
5.6.180.0200.04020.61
5.6.170.0230.04020.51
5.6.160.0100.04720.54
5.6.150.0130.06018.12
5.6.140.0100.06018.09
5.6.130.0030.08318.18
5.6.120.0100.08321.00
5.6.110.0100.08721.13
5.6.100.0030.08320.97
5.6.90.0070.07321.00
5.6.80.0100.07720.38
5.5.350.3730.03020.51
5.5.340.0130.06718.02
5.5.330.0170.07320.21
5.5.320.0300.06020.41
5.5.310.0270.03720.29
5.5.300.0030.04718.02
5.5.290.0030.04017.91
5.5.280.0100.08320.76
5.5.270.0130.06320.76
5.5.260.0030.06320.70
5.5.250.0030.04020.69
5.5.240.0030.03720.18
5.4.450.0330.06319.46
5.4.440.0330.04019.24
5.4.430.0230.07319.43
5.4.420.0170.05319.38
5.4.410.0270.03719.44
5.4.400.0300.04719.09
5.4.390.0230.07319.16
5.4.380.0200.07719.08
5.4.370.0200.05019.12
5.4.360.0200.06318.91
5.4.350.0130.05018.93
5.4.340.0170.04319.09
5.4.320.0200.07319.12
5.4.310.0230.06319.24
5.4.300.0200.06718.80
5.4.290.0230.07018.91
5.4.280.0170.07319.07
5.4.270.0200.06718.91
5.4.260.0130.08319.09
5.4.250.0330.04718.80
5.4.240.0230.07018.93
5.4.230.0200.05319.09
5.4.220.0270.06319.15
5.4.210.0230.06318.76
5.4.200.0200.05318.93
5.4.190.0270.07319.11
5.4.180.0200.05719.14
5.4.170.0330.05319.12
5.4.160.0170.07319.11
5.4.150.0200.04719.18
5.4.140.0170.04016.32
5.4.130.0300.05716.41
5.4.120.0200.06316.29
5.4.110.0200.03316.39
5.4.100.0230.03316.48
5.4.90.0170.04016.07
5.4.80.0230.05016.18
5.4.70.0230.07316.20
5.4.60.0230.07016.43
5.4.50.0170.04716.20
5.4.40.0270.06016.36
5.4.30.0370.05316.31
5.4.20.0270.05316.44
5.4.10.0230.06716.16
5.4.00.0370.05015.65
5.3.290.0230.07714.67
5.3.280.0130.04314.64
5.3.270.0300.05714.61
5.3.260.0430.02714.59
5.3.250.0230.04314.58
5.3.240.0230.07714.50
5.3.230.0300.06014.42
5.3.220.0330.06314.50
5.3.210.0270.03714.55
5.3.200.0270.04014.41
5.3.190.0170.07314.55
5.3.180.0270.06714.43
5.3.170.0270.05314.65
5.3.160.0230.07314.60
5.3.150.0270.05314.39
5.3.140.0270.04014.39
5.3.130.0200.05314.50
5.3.120.0300.03314.41
5.3.110.0170.08014.56
5.3.100.0270.07013.98
5.3.90.0300.04014.08
5.3.80.0200.04014.03
5.3.70.0230.05013.95
5.3.60.0200.07713.93
5.3.50.0200.04013.99
5.3.40.0200.03713.80
5.3.30.0130.04013.75
5.3.20.0200.04013.52
5.3.10.0200.03313.61
5.3.00.0200.03313.51
5.2.170.0230.06012.25
5.2.160.0170.05712.25
5.2.150.0130.04012.25
5.2.140.0170.05312.25
5.2.130.0170.03012.25
5.2.120.0200.05012.25
5.2.110.0270.05012.25
5.2.100.0370.02312.25
5.2.90.0200.02712.25
5.2.80.0230.05012.25
5.2.70.0230.02312.25
5.2.60.0130.03312.25
5.2.50.0170.02712.25
5.2.40.0100.03012.25
5.2.30.0170.02312.25
5.2.20.0130.02712.25
5.2.10.0230.04712.25
5.2.00.0170.02712.25
5.1.60.0100.03712.25
5.1.50.0130.02312.25
5.1.40.0170.03312.25
5.1.30.0230.04312.25
5.1.20.0170.04012.25
5.1.10.0270.04312.25
5.1.00.0130.03712.25
5.0.50.0100.02312.25
5.0.40.0030.03012.25
5.0.30.0030.04312.25
5.0.20.0170.04012.25
5.0.10.0130.03312.25
5.0.00.0100.03012.25
4.4.90.0030.03312.25
4.4.80.0100.01312.25
4.4.70.0070.01712.25
4.4.60.0070.01712.25
4.4.50.0070.04312.25
4.4.40.0100.02712.25
4.4.30.0100.01712.25
4.4.20.0070.01712.25
4.4.10.0100.01312.25
4.4.00.0070.04312.25
4.3.110.0100.01712.25
4.3.100.0100.01712.25
4.3.90.0130.01012.25
4.3.80.0030.04012.25
4.3.70.0070.03312.25
4.3.60.0070.01712.25
4.3.50.0070.03312.25
4.3.40.0100.04012.25
4.3.30.0030.03712.25
4.3.20.0070.03012.25
4.3.10.0070.02012.25
4.3.00.0000.01712.25