3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php PRINT_r([1,2,3,4,5]);

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.0040.01119.23
7.1.100.0050.00517.83
7.1.70.0060.00617.15
7.1.60.0130.01019.22
7.1.50.0100.01316.37
7.1.00.0070.07022.28
7.0.200.0060.00316.46
7.0.140.0030.07321.97
7.0.60.0130.06319.90
7.0.50.0000.04717.74
7.0.40.0070.05319.96
7.0.30.0270.03320.13
7.0.20.0170.05320.23
7.0.10.0100.04720.33
7.0.00.0170.05720.08
5.6.280.0070.07021.10
5.6.210.0070.03720.46
5.6.200.0100.07718.12
5.6.190.0070.04020.60
5.6.180.0330.05020.63
5.6.170.0270.07720.55
5.6.160.0100.08020.46
5.6.150.0100.06018.11
5.6.140.0070.08018.18
5.6.130.0070.06018.18
5.6.120.0130.03020.98
5.6.110.0200.06020.95
5.6.100.0130.07721.03
5.6.90.0100.07020.99
5.6.80.0100.08020.32
5.5.350.0300.05320.39
5.5.340.0100.07718.01
5.5.330.0130.07320.40
5.5.320.0230.08020.41
5.5.310.0330.05320.39
5.5.300.0070.08317.91
5.5.290.0030.04017.98
5.5.280.0030.07020.96
5.5.270.0030.04020.75
5.5.260.0130.08020.83
5.5.250.0130.07320.45
5.5.240.0100.07320.34
5.4.450.0100.05719.20
5.4.440.0130.06019.66
5.4.430.0100.06019.47
5.4.420.0030.06019.31
5.4.410.0130.05719.42
5.4.400.0530.05019.00
5.4.390.0170.05319.22
5.4.380.0200.05718.89
5.4.370.0200.05718.50
5.4.360.0370.03318.60
5.4.350.0200.06318.80
5.4.340.0230.05718.69
5.4.320.0370.04318.49
5.4.310.0270.05718.76
5.4.300.0270.06018.79
5.4.290.0270.05318.76
5.4.280.0230.06718.68
5.4.270.0200.05718.50
5.4.260.0170.06018.79
5.4.250.0100.06318.75
5.4.240.0200.05718.50
5.4.230.0370.04018.82
5.4.220.0300.05718.82
5.4.210.0230.08018.75
5.4.200.0270.06716.61
5.4.190.0170.05318.53
5.4.180.0170.05318.69
5.4.170.0200.05318.44
5.4.160.0200.05018.59
5.4.150.0270.04718.50
5.4.140.0230.06016.21
5.4.130.0300.04316.29
5.4.120.0200.05316.29
5.4.110.0200.05016.30
5.4.100.0200.05716.31
5.4.90.0070.06316.22
5.4.80.0270.05716.29
5.4.70.0170.05716.26
5.4.60.0230.06716.19
5.4.50.0170.08016.13
5.4.40.0200.05716.17
5.4.30.0230.04316.40
5.4.20.0100.06016.29
5.4.10.0200.05016.21
5.4.00.0300.05715.74
5.3.290.0270.04714.56
5.3.280.0230.05014.54
5.3.270.0200.05314.51
5.3.260.0170.05714.70
5.3.250.0230.05014.59
5.3.240.0270.06714.54
5.3.230.0400.05014.63
5.3.220.0270.06714.54
5.3.210.0400.06014.60
5.3.200.0170.05314.66
5.3.190.0200.05314.62
5.3.180.0130.05714.54
5.3.170.0300.06014.61
5.3.160.0300.06014.55
5.3.150.0230.04714.65
5.3.140.0270.06014.45
5.3.130.0300.06014.52
5.3.120.0200.05714.53
5.3.110.0170.06714.51
5.3.100.0270.04014.04
5.3.90.0130.05314.00
5.3.80.0200.04714.00
5.3.70.0300.04713.93
5.3.60.0200.04714.09
5.3.50.0130.07013.95
5.3.40.0200.05714.02
5.3.30.0170.05313.94
5.3.20.0170.05313.67
5.3.10.0200.05313.58
5.3.00.0230.05013.53
5.2.170.0170.04311.18
5.2.160.0200.05311.12
5.2.150.0130.04711.20
5.2.140.0230.03311.28
5.2.130.0130.04711.09
5.2.120.0230.03711.07
5.2.110.0170.04011.16
5.2.100.0170.03711.08
5.2.90.0130.05311.24
5.2.80.0230.04711.08
5.2.70.0170.05311.04
5.2.60.0170.04711.18
5.2.50.0130.04310.98
5.2.40.0130.04011.13
5.2.30.0130.04011.12
5.2.20.0330.03311.11
5.2.10.0130.04310.83
5.2.00.0270.04010.83
5.1.60.0100.0439.99
5.1.50.0200.04010.00
5.1.40.0100.0539.98
5.1.30.0100.05310.43
5.1.20.0130.05310.41
5.1.10.0100.05310.18
5.1.00.0100.04310.09
5.0.50.0100.0278.55
5.0.40.0100.0308.46
5.0.30.0100.0438.29
5.0.20.0200.0238.23
5.0.10.0070.0308.25
5.0.00.0230.0308.19
4.4.90.0070.0235.91
4.4.80.0170.0205.89
4.4.70.0070.0235.91
4.4.60.0030.0335.90
4.4.50.0070.0235.93
4.4.40.0100.0335.89
4.4.30.0100.0175.90
4.4.20.0030.0275.97
4.4.10.0030.0275.95
4.4.00.0130.0305.89
4.3.110.0170.0175.85
4.3.100.0070.0205.80
4.3.90.0070.0205.81
4.3.80.0100.0305.78
4.3.70.0070.0205.91
4.3.60.0100.0175.82
4.3.50.0030.0235.88
4.3.40.0070.0335.86
4.3.30.0030.0234.54
4.3.20.0000.0304.52
4.3.10.0070.0204.61
4.3.00.0000.0237.60