3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = new DateTime('2014-10-02'); echo $time_start->format('r') . "\n"; $time_start->modify('first day of this month'); echo $time_start->format('r') . "\n"; $time_start->setTimestamp(time()); echo $time_start->format('r') . "\n";

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).

VersionSystem time (s)User time (s)Memory (MiB)
7.4.00.0120.00614.91
7.3.120.0090.00915.00
7.3.110.0130.00715.05
7.3.100.0030.01014.80
7.3.90.0050.01014.93
7.3.80.0050.00814.97
7.3.70.0100.00714.81
7.3.60.0080.00314.72
7.3.50.0080.00815.17
7.3.40.0060.00714.80
7.3.30.0050.00714.97
7.3.20.0050.00816.71
7.3.10.0070.00816.90
7.3.00.0050.01116.97
7.2.250.0080.01215.16
7.2.240.0110.00815.36
7.2.230.0080.00715.22
7.2.220.0080.00615.24
7.2.210.0070.00815.06
7.2.200.0070.00915.19
7.2.190.0050.01115.29
7.2.180.0120.00415.20
7.2.170.0120.00115.25
7.2.60.0110.00316.78
7.2.00.0070.00319.69
7.1.330.0050.00815.89
7.1.320.0050.00715.81
7.1.310.0100.00515.93
7.1.300.0060.00715.73
7.1.290.0100.00515.86
7.1.280.0090.00515.77
7.1.270.0030.00915.95
7.1.260.0090.00515.96
7.1.200.0030.01015.60
7.1.70.0040.00417.34
7.1.60.0070.00717.32
7.1.50.0150.00717.05
7.1.00.0070.07322.41
7.0.200.0070.01116.94
7.0.140.0000.07021.92
7.0.100.0430.05319.99
7.0.90.0470.07719.98
7.0.80.0100.05319.92
7.0.70.0470.07019.97
7.0.60.0000.08319.94
7.0.50.0530.07720.32
7.0.40.0070.04719.96
7.0.30.0100.07719.95
7.0.20.0100.04320.18
7.0.10.0100.07020.16
7.0.00.0070.10720.18
5.6.280.0130.06321.04
5.6.250.0030.07320.71
5.6.240.0170.07020.68
5.6.230.0100.07320.61
5.6.220.0070.09020.63
5.6.210.0100.07720.63
5.6.200.0100.08021.11
5.6.190.0170.07720.96
5.6.180.0130.05021.05
5.6.170.0030.06321.09
5.6.160.0030.04720.95
5.6.150.0130.04020.89
5.6.140.0100.06321.00
5.6.130.0130.07021.16
5.6.120.0000.07021.08
5.6.110.0030.07020.92
5.6.100.0130.06320.92
5.6.90.0100.08021.09
5.6.80.0170.07320.34
5.6.70.0100.07320.48
5.6.60.0130.06720.47
5.6.50.0000.07720.48
5.6.40.0130.08020.39
5.6.30.0070.05020.40
5.6.20.0070.07320.41
5.6.10.0070.04020.29
5.6.00.0030.09020.51
5.5.380.0030.07020.34
5.5.370.0030.05020.44
5.5.360.0100.08320.48
5.5.350.0070.08720.45
5.5.340.0070.07320.89
5.5.330.0170.06320.64
5.5.320.0100.04320.80
5.5.310.0200.07720.75
5.5.300.0170.06320.88
5.5.290.0130.07320.63
5.5.280.0130.07320.89
5.5.270.0100.08720.89
5.5.260.0170.08020.63
5.5.250.0030.05020.64
5.5.240.0130.06720.25
5.5.230.0130.08720.14
5.5.220.0030.06720.25
5.5.210.0000.09020.27
5.5.200.0270.06020.24
5.5.190.0030.05320.20
5.5.180.0130.06320.22
5.5.160.0070.06720.17
5.5.150.0030.08020.10
5.5.140.0070.07320.17
5.5.130.0200.05020.14
5.5.120.0130.06320.23
5.5.110.0100.07720.07
5.5.100.0000.09020.10
5.5.90.0130.04020.06
5.5.80.0030.06720.03
5.5.70.0070.08320.13
5.5.60.0100.07320.08
5.5.50.0100.05019.99
5.5.40.0070.04720.06
5.5.30.0170.06020.14
5.5.20.0000.05320.14
5.5.10.0070.07719.97
5.5.00.0070.07019.95
5.4.450.0070.04019.39
5.4.440.0070.08319.42
5.4.430.0030.05719.37
5.4.420.0130.07319.22
5.4.410.0070.06319.01
5.4.400.0030.08719.09
5.4.390.0100.07319.03
5.4.380.0130.08019.10
5.4.370.0030.05319.23
5.4.360.0130.07319.07
5.4.350.0170.06319.03
5.4.340.0030.08019.06
5.4.320.0030.08019.14
5.4.310.0070.06718.90
5.4.300.0100.07019.09
5.4.290.0100.07719.22
5.4.280.0030.06719.09
5.4.270.0070.03719.06
5.4.260.0070.05719.05
5.4.250.0100.08318.78
5.4.240.0070.07319.05
5.4.230.0100.06719.13
5.4.220.0030.07019.09
5.4.210.0100.07319.11
5.4.200.0100.03319.14
5.4.190.0100.08719.11
5.4.180.0130.07019.04
5.4.170.0200.05719.22
5.4.160.0030.07019.01
5.4.150.0100.07319.09
5.4.140.0070.03316.29
5.4.130.0130.06316.36
5.4.120.0030.06716.28
5.4.110.0030.07716.46
5.4.100.0100.06316.38
5.4.90.0070.06316.38
5.4.80.0030.04016.29
5.4.70.0100.06716.25
5.4.60.0130.06316.42
5.4.50.0070.06016.41
5.4.40.0000.08016.46
5.4.30.0070.07016.23
5.4.20.0070.07316.23
5.4.10.0070.08016.20
5.4.00.0030.06715.78
5.3.290.0100.07314.63
5.3.280.0070.07714.45
5.3.270.0070.08314.59
5.3.260.0100.07314.57
5.3.250.0070.06314.43
5.3.240.0100.05714.54
5.3.230.0030.09014.50
5.3.220.0130.07714.42
5.3.210.0130.07314.56
5.3.200.0000.07014.42
5.3.190.0030.07714.53
5.3.180.0170.06314.40
5.3.170.0030.04314.55
5.3.160.0070.04014.51
5.3.150.0000.07714.51
5.3.140.0070.08314.50
5.3.130.0030.06314.54
5.3.120.0100.05714.55
5.3.110.0070.07714.53
5.3.100.0030.04313.85
5.3.90.0070.07713.88
5.3.80.0070.04313.78
5.3.70.0070.07013.87
5.3.60.0030.06713.99
5.3.50.0130.07313.94
5.3.40.0070.06713.80
5.3.30.0170.06313.68
5.3.20.0130.03313.68
5.3.10.0130.06713.41
5.3.00.0200.02713.49
5.2.170.0030.04311.55
5.2.160.0070.03311.55
5.2.150.0100.06311.55
5.2.140.0070.06311.55
5.2.130.0030.03711.55
5.2.120.0030.04011.55
5.2.110.0000.04711.55
5.2.100.0030.05311.55
5.2.90.0070.05711.55
5.2.80.0000.06011.55
5.2.70.0030.05311.55
5.2.60.0070.04011.55
5.2.50.0100.05711.55
5.2.40.0030.05711.55
5.2.30.0070.02711.55
5.2.20.0100.04711.55
5.2.10.0000.05711.55
5.2.00.0070.05011.55
5.1.60.0000.03711.55
5.1.50.0030.05011.55
5.1.40.0030.05011.55
5.1.30.0070.03311.55
5.1.20.0130.05011.55
5.1.10.0000.02711.55
5.1.00.0030.02311.55
5.0.50.0000.03311.55
5.0.40.0070.02311.55
5.0.30.0030.05711.55
5.0.20.0070.02711.55
5.0.10.0030.03011.55
5.0.00.0030.03711.55
4.4.90.0000.02011.55
4.4.80.0000.03711.55
4.4.70.0070.03011.55
4.4.60.0070.03011.55
4.4.50.0000.02011.55
4.4.40.0030.04311.55
4.4.30.0000.03711.55
4.4.20.0070.01311.55
4.4.10.0000.01711.55
4.4.00.0070.05311.55
4.3.110.0070.01711.55
4.3.100.0000.03311.55
4.3.90.0000.02011.55
4.3.80.0000.04011.55
4.3.70.0000.01711.55
4.3.60.0100.02311.55
4.3.50.0000.02711.55
4.3.40.0000.05311.55
4.3.30.0000.02011.55
4.3.20.0000.01711.55
4.3.10.0000.01711.55
4.3.00.0000.01711.55

preferences:
37.98 ms | 401 KiB | 5 Q