3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 'Monday, September 28, 2009'; $time = strtotime($s); $end = strtotime('next sunday', $time); $format = 'Y-m-d'; echo $end; ?>

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.0070.00719.40
7.1.100.0080.00418.24
7.1.70.0050.00517.55
7.1.60.0110.01119.46
7.1.50.0120.00917.11
7.1.00.0000.08022.32
7.0.200.5630.00716.76
7.0.140.0030.07322.09
7.0.60.0030.08020.00
7.0.50.0030.08717.86
7.0.40.0170.08019.98
7.0.30.0330.07020.18
7.0.20.0330.07020.17
7.0.10.0130.08320.09
7.0.00.0070.09020.08
5.6.280.0000.07721.12
5.6.210.0230.07020.48
5.6.200.0100.04718.23
5.6.190.0070.08320.45
5.6.180.0170.08320.77
5.6.170.0270.05320.44
5.6.160.0170.07320.46
5.6.150.0070.03318.18
5.6.140.0170.06318.18
5.6.130.0130.07718.16
5.6.120.0070.06020.89
5.6.110.0130.07720.95
5.6.100.0070.08720.88
5.6.90.0200.06320.84
5.6.80.0000.04320.35
5.5.350.4070.03020.32
5.5.340.0070.04017.93
5.5.330.0070.08320.36
5.5.320.0330.07020.50
5.5.310.0230.07320.20
5.5.300.0070.07717.91
5.5.290.0070.07717.93
5.5.280.0070.04020.76
5.5.270.0030.05320.94
5.5.260.0030.08320.82
5.5.250.0070.03720.65
5.5.240.0100.07020.33
5.4.450.0170.06319.46
5.4.440.0300.04019.64
5.4.430.0100.06019.62
5.4.420.0300.05019.45
5.4.410.0100.07019.14
5.4.400.0030.06319.09
5.4.390.0200.06319.00
5.4.380.0400.05018.77
5.4.370.0300.05718.69
5.4.360.0300.05718.78
5.4.350.0330.05018.49
5.4.340.0300.05318.68
5.4.320.0060.04212.45
5.4.310.0050.04012.45
5.4.300.0060.03712.45
5.4.290.0070.04012.45
5.4.280.0090.04812.35
5.4.270.0090.03612.34
5.4.260.0050.04512.35
5.4.250.0080.05112.35
5.4.240.0090.05312.35
5.4.230.0090.05512.34
5.4.220.0070.04912.34
5.4.210.0040.04012.34
5.4.200.0060.04012.34
5.4.190.0090.03612.34
5.4.180.0110.03512.33
5.4.170.0090.05112.35
5.4.160.0100.04812.34
5.4.150.0050.04712.34
5.4.140.0100.03812.02
5.4.130.0130.03112.01
5.4.120.0080.04311.96
5.4.110.0080.04611.96
5.4.100.0070.04611.96
5.4.90.0100.04711.96
5.4.80.0080.05511.96
5.4.70.0090.05111.96
5.4.60.0090.05211.96
5.4.50.0110.06811.96
5.4.40.0090.04911.95
5.4.30.0080.04911.95
5.4.20.0090.03611.95
5.4.10.0070.03511.95
5.4.00.0060.03611.44
5.3.290.0050.04112.80
5.3.280.0060.03812.71
5.3.270.0070.03912.72
5.3.260.0030.04512.72
5.3.250.0070.03612.72
5.3.240.0060.04512.72
5.3.230.0080.03912.71
5.3.220.0040.04312.68
5.3.210.0070.04112.68
5.3.200.0030.04012.68
5.3.190.0080.03712.68
5.3.180.0040.04112.68
5.3.170.0080.03712.67
5.3.160.0080.03712.67
5.3.150.0070.05612.68
5.3.140.0120.04912.66
5.3.130.0080.05212.66
5.3.120.0090.04212.66
5.3.110.0080.05412.66
5.3.100.0090.04912.12
5.3.90.0090.05812.08
5.3.80.0140.05612.07
5.3.70.0180.04912.07
5.3.60.0160.07412.07
5.3.50.0110.05612.00
5.3.40.0090.04412.00
5.3.30.0050.03711.95
5.3.20.0070.03911.73
5.3.10.0050.03511.69
5.3.00.0080.03411.67
5.2.170.0050.0309.18
5.2.160.0030.0309.18
5.2.150.0050.0319.18
5.2.140.0050.0329.18
5.2.130.0050.0309.14
5.2.120.0060.0279.14
5.2.110.0050.0299.14
5.2.100.0050.0379.14
5.2.90.0070.0279.14
5.2.80.0060.0439.13
5.2.70.0050.0429.14
5.2.60.0040.0419.09
5.2.50.0070.0419.06
5.2.40.0130.0309.04
5.2.30.0060.0319.00
5.2.20.0090.0399.00
5.2.10.0050.0358.94
5.2.00.0060.0298.79
5.1.60.0030.0298.07
5.1.50.0030.0268.07
5.1.40.0010.0298.06
5.1.30.0060.0318.41
5.1.20.0070.0278.43
5.1.10.0030.0318.15
5.1.00.0070.0348.15
5.0.50.0070.0306.63
5.0.40.0070.0256.49
5.0.30.0070.0356.31
5.0.20.0040.0356.27
5.0.10.0080.0256.25
5.0.00.0080.0366.25
4.4.90.0020.0244.78
4.4.80.0050.0214.75
4.4.70.0050.0204.76
4.4.60.0060.0184.75
4.4.50.0040.0204.77
4.4.40.0030.0354.71
4.4.30.0040.0204.76
4.4.20.0040.0194.85
4.4.10.0020.0184.85
4.4.00.0030.0264.76
4.3.110.0010.0194.67
4.3.100.0060.0144.66
4.3.90.0050.0214.63
4.3.80.0050.0314.59
4.3.70.0030.0254.63
4.3.60.0030.0224.63
4.3.50.0020.0234.62
4.3.40.0040.0324.54
4.3.30.0060.0203.30
4.3.20.0030.0253.28
4.3.10.0020.0253.24
4.3.00.0030.0238.25