3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = new \DateTime('previous month first day of'); //$f->modify('first day of'); echo $f->format('Y-m-d H:i:s');
based on aggpE

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.3.10.0070.00416.79
7.3.00.0040.01116.85
7.2.130.0030.00916.83
7.2.120.0060.00616.64
7.2.110.0030.00616.96
7.2.100.0060.00616.95
7.2.90.0060.00617.02
7.2.80.0060.00917.04
7.2.70.0030.00716.91
7.2.60.0090.00316.90
7.2.50.0090.00616.89
7.2.40.0050.00416.95
7.2.30.0000.00917.22
7.2.20.0070.00716.89
7.2.10.0030.00716.97
7.2.00.0060.00818.38
7.1.250.0030.00515.77
7.1.200.0110.00315.93
7.1.100.0120.00318.41
7.1.70.0080.00317.26
7.1.60.0070.01719.30
7.1.50.0100.01016.86
7.1.00.0000.08022.36
7.0.200.0030.00716.60
7.0.60.0370.07021.83
7.0.50.0000.04317.66
7.0.40.0000.04720.24
7.0.30.0300.03020.21
7.0.20.0370.07020.00
7.0.10.0070.04320.33
7.0.00.0070.08320.19
5.6.280.0030.05321.12
5.6.210.0100.08020.76
5.6.200.0070.05718.15
5.6.190.0100.04020.67
5.6.180.0370.04720.64
5.6.170.0370.05320.55
5.6.160.0170.05020.49
5.6.150.0070.08318.18
5.6.140.0070.04318.22
5.6.130.0030.08018.15
5.6.120.0100.06020.98
5.6.110.0030.08720.96
5.6.100.0030.08020.97
5.6.90.0130.03321.13
5.6.80.0030.08320.36
5.5.350.0230.07320.43
5.5.340.0070.07717.91
5.5.330.0100.07320.21
5.5.320.0370.05720.34
5.5.310.0330.05320.41
5.5.300.0100.05718.01
5.5.290.0070.04318.00
5.5.280.0030.05720.74
5.5.270.0000.04720.96
5.5.260.0130.08320.86
5.5.250.0170.06720.45
5.5.240.0170.07020.04
5.4.450.0570.06319.48
5.4.440.0670.06019.49
5.4.430.0130.05719.57
5.4.420.0500.06019.41
5.4.410.0730.05319.42
5.4.400.0170.06319.16
5.4.390.0600.05719.06
5.4.380.0530.05018.88
5.4.370.0570.05019.32
5.4.360.0600.04319.16
5.4.350.0170.04719.22
5.4.340.0570.06019.13
5.4.320.0570.04718.93
5.4.310.0400.04319.22
5.4.300.0730.04018.93
5.4.290.0700.05019.32
5.4.280.0570.07018.88
5.4.270.0670.04719.23
5.4.260.0700.05318.86
5.4.250.0500.04718.88
5.4.240.0500.05318.86
5.4.230.0630.04318.88
5.4.220.0430.06019.05
5.4.210.0070.05319.14
5.4.200.0570.05319.05
5.4.190.0600.05719.15
5.4.180.0630.05019.21
5.4.170.0570.05019.09
5.4.160.0630.06019.14
5.4.150.0630.05719.08
5.4.140.0670.05316.34
5.4.130.0600.05016.49
5.4.120.0630.04016.54
5.4.110.0600.05016.30
5.3.290.0600.04714.74
5.3.280.0730.04314.59
5.3.270.0670.05314.56
5.3.260.0300.04714.42
5.3.250.0630.05714.60
5.3.240.0700.04714.70
5.3.230.0530.05314.75
5.3.220.0600.04714.57
5.3.210.0570.05714.56