3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = <<<'EOT' This is a message which needs to span many lines and which I've written like this EOT; echo $var;
based on ZpaAv

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.0100.00019.14
7.1.100.0130.00317.83
7.1.70.0060.00316.96
7.1.60.0070.01719.50
7.1.50.0040.01116.82
7.1.00.0030.07322.48
7.0.200.0030.00714.90
7.0.140.0030.04322.18
7.0.60.0100.06020.00
7.0.50.0100.04017.90
7.0.40.0130.08320.19
7.0.30.0500.06720.00
7.0.20.0330.06320.12
7.0.10.0100.05020.01
7.0.00.0030.04020.09
5.6.210.0130.07020.68
5.6.200.0130.07318.18
5.6.190.0030.06720.67
5.6.180.0270.08020.40
5.6.170.0270.03320.48
5.6.160.0070.08320.51
5.6.150.0030.07318.21
5.6.140.0070.04718.21
5.6.130.0100.07718.12
5.6.120.0130.06721.00
5.6.110.0070.09021.13
5.6.100.0170.06720.99
5.6.90.0170.07720.99
5.6.80.0130.07320.41
5.6.70.0270.08020.37
5.5.350.0370.05720.40
5.5.340.0070.07718.02
5.5.330.0100.04720.15
5.5.320.0070.05720.36
5.5.310.0300.05320.29
5.5.300.0070.08317.98
5.5.290.0070.08317.90
5.5.280.0070.04020.76
5.5.270.0070.04720.77
5.5.260.0000.04320.95
5.5.250.0100.08020.68
5.5.240.0000.08020.25
5.4.450.0630.06019.11
5.4.440.0770.05719.63
5.4.430.0070.06719.46
5.4.420.1000.05319.39
5.4.410.0130.05318.90
5.4.400.0270.06718.75
5.4.390.0270.06018.77
5.4.380.0230.05318.71
5.4.370.0330.06018.48
5.4.360.0370.06318.56
5.4.350.0200.05718.68
5.4.340.1370.04018.77
5.4.320.0270.05718.77
5.4.310.0430.03718.61
5.4.300.0130.06718.70
5.4.290.0400.05318.52
5.4.280.0200.06018.77
5.4.270.0270.04718.49
5.4.260.0300.05318.66
5.4.250.0300.05018.57
5.4.240.0270.05318.64
5.4.230.0230.07018.59
5.4.220.1400.06318.64
5.4.210.0270.04718.70
5.4.200.0200.05316.66
5.4.190.0270.04318.67
5.4.180.0770.05018.66
5.4.170.1000.05018.72
5.4.160.0270.05318.59
5.4.150.0300.04718.71
5.4.140.0330.06316.15
5.4.130.0370.05716.08
5.4.120.0230.07316.14
5.4.110.0230.06716.29
5.4.100.0800.05716.21
5.4.90.0270.06716.06
5.4.80.0200.04716.04
5.4.70.1100.07016.07
5.4.60.1530.06016.01
5.4.50.0500.05716.03
5.4.40.0170.06016.21
5.4.30.0130.07716.04
5.4.20.0300.06716.15
5.4.10.0370.04016.16
5.4.00.0400.03315.61
5.3.290.0330.05314.56
5.3.280.0200.05314.67
5.3.270.0230.05314.60
5.3.260.0330.05314.64
5.3.250.0170.05714.51
5.3.240.0330.06014.63
5.3.230.0200.06014.52
5.3.220.0370.05314.53
5.3.210.0270.05014.55
5.3.200.2800.05314.54
5.3.190.0770.05714.63
5.3.180.1030.06714.55
5.3.170.0400.04014.50
5.3.160.0370.04314.53
5.3.150.0330.05714.46
5.3.140.0270.05014.47
5.3.130.0330.05014.45
5.3.120.0370.05314.47
5.3.110.0670.05714.61
5.3.100.2800.05314.02
5.3.90.1070.05713.93
5.3.80.1070.04713.96
5.3.70.1000.05314.00
5.3.60.1100.05013.98
5.3.50.1100.06013.90
5.3.40.1100.06013.88
5.3.30.1370.05313.84
5.3.20.1200.06013.68
5.3.10.0900.05313.75
5.3.00.0970.04313.59
5.2.170.0770.04311.11
5.2.160.0700.04311.19
5.2.150.0900.04711.14
5.2.140.0730.06311.05
5.2.130.0770.04011.13
5.2.120.0770.03711.13
5.2.110.0870.05711.15
5.2.100.0900.05011.04
5.2.90.0800.03011.08
5.2.80.0800.03711.25
5.2.70.0930.04311.14
5.2.60.0900.05310.97
5.2.50.0770.03710.94
5.2.40.0770.04310.92
5.2.30.0730.04710.89
5.2.20.0700.04010.87
5.2.10.0600.04010.81
5.2.00.0730.05010.82
5.1.60.0770.03310.02
5.1.50.0800.04710.05
5.1.40.0500.04010.09
5.1.30.0700.04710.43
5.1.20.0700.04010.39
5.1.10.0730.03710.03
5.1.00.0830.02710.09
5.0.50.0370.0308.65
5.0.40.0370.0308.48
5.0.30.0430.0538.34
5.0.20.0370.0308.17
5.0.10.0430.0338.18
5.0.00.0270.0478.22
4.4.90.0370.0275.90
4.4.80.0330.0235.91
4.4.70.0430.0205.89
4.4.60.1670.0205.89
4.4.50.0370.0235.90
4.4.40.0370.0335.88
4.4.30.0400.0175.89
4.4.20.0300.0235.97
4.4.10.0300.0235.96
4.4.00.0470.0305.92
4.3.110.0370.0235.85
4.3.100.0430.0235.86
4.3.90.0400.0175.85
4.3.80.0370.0275.91
4.3.70.0400.0205.85
4.3.60.0470.0175.81
4.3.50.0400.0235.79
4.3.40.0300.0335.86
4.3.30.0170.0235.03
4.3.20.0170.0275.03
4.3.10.0130.0275.03
4.3.00.0000.0236.97