3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ahoj = "it works!\n"; echo $ahoj; $ahoj = "shit happened\n"; echo $ahoj;
based on ENTHM

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.00716.67
7.2.00.0040.00719.27
7.1.200.0040.01115.49
7.1.100.0000.01217.91
7.1.70.0470.00717.04
7.1.60.0100.01419.50
7.1.50.0100.01316.82
7.1.00.0030.07722.40
7.0.200.0650.00014.80
7.0.140.0000.07722.09
7.0.60.0070.05719.82
7.0.50.0030.09017.83
7.0.40.0070.07320.19
7.0.30.0200.05720.00
7.0.20.0270.07720.32
7.0.10.0270.07720.14
7.0.00.0100.08020.29
5.6.280.0070.06021.09
5.6.210.0000.06320.75
5.6.200.0070.03718.22
5.6.190.0130.08020.45
5.6.180.0300.06720.42
5.6.170.0230.07020.50
5.6.160.0130.08320.52
5.6.150.0100.03718.16
5.6.140.0030.05018.11
5.6.130.0130.07018.22
5.6.120.0030.08020.98
5.6.110.0130.07321.11
5.6.100.0100.05020.98
5.6.90.0100.06021.09
5.6.80.0070.06320.37
5.6.70.0200.04020.39
5.5.350.0230.07720.51
5.5.340.0070.08017.88
5.5.330.0100.07320.37
5.5.320.0070.05720.36
5.5.310.0330.07020.20
5.5.300.0130.05017.91
5.5.290.0070.08718.02
5.5.280.0070.06720.68
5.5.270.0130.07020.82
5.5.260.0170.07720.96
5.5.250.0200.07320.75
5.5.240.0070.04720.03
5.4.450.0600.06719.64
5.4.440.0870.06019.47
5.4.430.0830.06019.13
5.4.420.0870.06019.40
5.4.410.0100.07318.95
5.4.400.0370.05018.62
5.4.390.0270.07018.45
5.4.380.0370.05318.54
5.4.370.0370.05318.44
5.4.360.0370.05318.74
5.4.350.0300.07318.65
5.4.340.0400.06318.57
5.4.320.0600.05318.67
5.4.310.0370.07318.61
5.4.300.0330.06318.52
5.4.290.0530.05718.68
5.4.280.0400.06318.72
5.4.270.0570.07318.71
5.4.260.0430.06018.63
5.4.250.0300.05318.61
5.4.240.0370.05718.46
5.4.230.0430.05318.51
5.4.220.0470.06718.49
5.4.210.0270.06718.63
5.4.200.0500.06716.41
5.4.190.0430.05018.68
5.4.180.0330.07018.66
5.4.170.0430.08018.70
5.4.160.0570.06018.68
5.4.150.0330.07318.69
5.4.140.0330.08316.23
5.4.130.0430.04316.16
5.4.120.0330.06316.05
5.4.110.0370.05016.35
5.4.100.0370.05716.19
5.4.90.0330.06016.22
5.4.80.0300.06716.27
5.4.70.0430.04716.14
5.4.60.0430.04016.13
5.4.50.0230.06016.23
5.4.40.0270.05716.17
5.4.30.0500.06316.13
5.4.20.0500.06716.09
5.4.10.0400.04716.01
5.4.00.0430.06015.53
5.3.290.0570.07014.63
5.3.280.0470.06714.57
5.3.270.0400.05714.60
5.3.260.0400.06314.65
5.3.250.0530.05714.60
5.3.240.0370.05014.58
5.3.230.0370.06714.57
5.3.220.0530.04714.49
5.3.210.0470.06314.61
5.3.200.0500.06014.54
5.3.190.0430.06714.45
5.3.180.0400.07014.63
5.3.170.0400.07314.55
5.3.160.0630.05314.63
5.3.150.0470.06714.45
5.3.140.0370.07314.64
5.3.130.0200.06714.47
5.3.120.0300.06314.64
5.3.110.0370.07014.62
5.3.100.0270.06314.13
5.3.90.0630.05713.95
5.3.80.0470.06714.00
5.3.70.0370.06714.11
5.3.60.0400.05713.94
5.3.50.0300.07314.03
5.3.40.0470.06713.97
5.3.30.0370.07013.90
5.3.20.0400.07713.76
5.3.10.0430.05313.57
5.3.00.0430.06013.57
5.2.170.0270.06311.27
5.2.160.0430.05011.20
5.2.150.0170.05711.16
5.2.140.0270.05011.14
5.2.130.0330.05711.15
5.2.120.0330.04311.02
5.2.110.0370.04311.07
5.2.100.0230.04711.15
5.2.90.0300.04311.23
5.2.80.0370.05311.05
5.2.70.0400.05011.07
5.2.60.0430.05311.03
5.2.50.0330.05710.97
5.2.40.0330.04710.92
5.2.30.0230.06011.03
5.2.20.0170.06010.93
5.2.10.0300.04010.83
5.2.00.0200.04010.75
5.1.60.0130.04310.12
5.1.50.0170.04710.00
5.1.40.0330.0309.94
5.1.30.0230.04710.39
5.1.20.0230.04010.34
5.1.10.0170.04010.04
5.1.00.0330.03710.05
5.0.50.0100.0338.56
5.0.40.0130.0338.47
5.0.30.0130.0438.19
5.0.20.0230.0278.19
5.0.10.0130.0408.25
5.0.00.0070.0578.15
4.4.90.0230.0275.95
4.4.80.0130.0235.93
4.4.70.0100.0235.84
4.4.60.0100.0205.86
4.4.50.0130.0235.89
4.4.40.0230.0275.94
4.4.30.0130.0235.91
4.4.20.0000.0335.88
4.4.10.0100.0235.93
4.4.00.0130.0335.94
4.3.110.0100.0305.82
4.3.100.0070.0275.74
4.3.90.0070.0305.86
4.3.80.0130.0375.81
4.3.70.0200.0135.82
4.3.60.0070.0235.82
4.3.50.0070.0335.88
4.3.40.0230.0305.77
4.3.30.0030.0304.54
4.3.20.0070.0274.52
4.3.10.0000.0304.48
4.3.00.0100.0207.15