3v4l.org

run code in 300+ PHP versions simultaneously
<?php $midnight = new \DateTime(); $midnight->setTimestamp(1374246685)->modify('tomorrow')->setTime(0, 0); var_dump($midnight);

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)
8.4.20.0120.00417.86
8.4.10.0030.00917.64
8.3.140.0120.00316.76
8.3.130.0040.00416.75
8.3.120.0030.00618.66
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0090.00626.77
8.3.80.0060.00316.50
8.3.70.0050.01016.58
8.3.60.0150.00018.68
8.3.50.0100.00622.05
8.3.40.0150.00618.93
8.3.30.0100.01018.95
8.3.20.0040.00420.30
8.3.10.0040.00423.68
8.3.00.0040.00421.02
8.2.260.0080.00018.74
8.2.250.0080.00016.58
8.2.240.0050.00517.14
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0100.00726.77
8.2.200.0060.00317.00
8.2.190.0070.01116.88
8.2.180.0150.00718.29
8.2.170.0090.00618.98
8.2.160.0100.00722.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00820.88
8.2.110.0070.00320.51
8.2.100.0080.00417.80
8.2.90.0000.00917.79
8.2.80.0040.00419.03
8.2.70.0040.00417.75
8.2.60.0030.00617.63
8.2.50.0090.00017.63
8.2.40.0050.00517.63
8.2.30.0000.00718.21
8.2.20.0070.00017.73
8.2.10.0040.00417.94
8.2.00.0030.00519.70
8.1.310.0070.01116.96
8.1.300.0060.00317.87
8.1.290.0050.00318.88
8.1.280.0110.00425.92
8.1.270.0080.00023.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.19
8.1.230.0090.00320.80
8.1.220.0040.00417.79
8.1.210.0030.00518.90
8.1.200.0030.00617.48
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0040.00419.09
8.1.160.0070.00021.81
8.1.150.0000.00818.67
8.1.140.0000.00717.50
8.1.130.0040.00420.61
8.1.120.0050.00317.49
8.1.110.0030.00717.61
8.1.100.0000.00717.54
8.1.90.0000.00717.54
8.1.80.0040.00417.48
8.1.70.0030.00517.54
8.1.60.0060.00617.55
8.1.50.0040.00417.63
8.1.40.0060.00317.65
8.1.30.0040.00917.67
8.1.20.0100.00617.65
8.1.10.0090.00417.64
8.1.00.0070.00417.66
8.0.300.0030.00319.86
8.0.290.0030.00616.75
8.0.280.0030.00318.47
8.0.270.0000.00716.88
8.0.260.0060.00018.57
8.0.250.0000.00717.13
8.0.240.0000.00617.08
8.0.230.0000.00717.14
8.0.220.0000.00717.00
8.0.210.0030.00317.00
8.0.200.0030.00317.11
8.0.190.0030.00317.03
8.0.180.0070.00317.09
8.0.170.0030.00616.96
8.0.160.0070.00416.99
8.0.150.0100.00417.03
8.0.140.0140.00016.94
8.0.130.0100.00315.19
8.0.120.0070.00716.97
8.0.110.0110.00216.98
8.0.100.0100.00317.01
8.0.90.0090.00417.04
8.0.80.0140.00316.92
8.0.70.0090.00316.96
8.0.60.0080.00616.98
8.0.50.0090.00417.02
8.0.30.0100.01317.08
8.0.20.0130.00617.31
8.0.10.0060.00717.13
8.0.00.0080.00816.97
7.4.330.0030.00315.09
7.4.320.0030.00316.68
7.4.300.0030.00316.57
7.4.290.0000.00716.49
7.4.280.0090.00316.67
7.4.270.0100.00516.64
7.4.260.0060.00916.56
7.4.250.0090.00416.49
7.4.240.0090.00116.61
7.4.230.0080.00316.55
7.4.220.0070.01016.55
7.4.210.0120.00516.68
7.4.200.0080.00516.50
7.4.190.0160.00316.63
7.4.180.0190.00016.48
7.4.160.0120.00616.60
7.4.150.0120.00616.95
7.4.140.0110.00817.41
7.4.130.0100.00916.48
7.4.120.0100.00816.60
7.4.110.0170.00516.46
7.4.100.0150.00316.52
7.4.90.0090.00916.55
7.4.80.0170.00217.86
7.4.70.0090.01416.59
7.4.60.0090.00816.60
7.4.50.0070.00616.33
7.4.40.0070.01116.37
7.4.30.0120.00516.59
7.4.20.0160.00316.46
7.4.10.0140.00416.32
7.4.00.0100.00415.81
7.3.330.0110.00114.74
7.3.320.0120.00014.75
7.3.310.0080.00516.22
7.3.300.0070.00616.18
7.3.290.0100.00616.29
7.3.280.0110.00816.26
7.3.270.0130.00416.82
7.3.260.0140.00416.37
7.3.250.0110.00816.41
7.3.240.0120.00816.35
7.3.230.0140.00416.30
7.3.220.0190.00016.23
7.3.210.0120.00616.58
7.3.200.0110.00816.43
7.3.190.0110.00916.45
7.3.180.0080.00916.18
7.3.170.0110.00916.18
7.3.160.0130.00716.31
7.3.150.0150.00316.22
7.3.140.0110.00816.25
7.3.130.0080.01116.23
7.3.120.0080.00815.58
7.3.110.0160.00316.01
7.3.100.0160.00316.16
7.3.90.0150.00616.54
7.3.80.0060.01316.27
7.3.70.0170.00316.32
7.3.60.0180.00016.30
7.3.50.0140.00516.34
7.3.40.0170.00316.52
7.3.30.0110.00716.39
7.3.20.0190.00016.21
7.3.10.0140.00716.44
7.3.00.0120.00516.24
7.2.340.0120.00316.55
7.2.330.0100.00616.51
7.2.320.0080.00816.46
7.2.310.0120.00716.46
7.2.300.0150.00116.35
7.2.290.0090.00816.44
7.2.280.0090.00616.42
7.2.270.0150.00016.47
7.2.260.0110.00516.28
7.2.250.0110.00416.33
7.2.240.0140.00416.43
7.2.230.0150.00016.46
7.2.220.0050.01016.61
7.2.210.0150.00016.43
7.2.200.0140.00316.53
7.2.190.0160.00316.41
7.2.180.0110.00816.34
7.2.170.0150.00316.42
7.2.160.0150.00316.41
7.2.150.0120.00716.67
7.2.140.0150.00416.77
7.2.130.0120.00316.87
7.2.120.0100.00516.73
7.2.110.0110.00316.82
7.2.100.0110.00416.80
7.2.90.0030.01216.63
7.2.80.0110.00916.54
7.2.70.0110.00416.77
7.2.60.0080.00816.78
7.2.50.0070.00716.72
7.2.40.0130.00316.85
7.2.30.0070.01016.82
7.2.20.0100.00816.60
7.2.10.0130.00416.67
7.2.00.0090.00916.72
7.1.330.0150.00415.63
7.1.320.0100.00815.76
7.1.310.0130.00415.71
7.1.300.0130.00515.84
7.1.290.0750.00715.54
7.1.280.0140.00415.57
7.1.270.0150.00315.57
7.1.260.0100.01015.67
7.1.250.0150.00615.89
7.1.240.0110.00715.71
7.1.230.0120.00615.79
7.1.220.0140.00415.52
7.1.210.0190.00015.66
7.1.200.0110.00515.66
7.1.190.0180.00015.82
7.1.180.0150.00415.64
7.1.170.0140.00515.77
7.1.160.0140.00515.63
7.1.150.0150.00315.55
7.1.140.0150.00315.65
7.1.130.0150.00415.74
7.1.120.0090.00915.43
7.1.110.0160.00315.67
7.1.100.0160.00315.71
7.1.90.0160.00315.40
7.1.80.0160.00315.63
7.1.70.0180.00316.28
7.1.60.0110.00817.70
7.1.50.0130.00716.21
7.1.40.0200.00415.71
7.1.30.0110.00715.81
7.1.20.0180.00015.70
7.1.10.0140.00515.69
7.1.00.0090.03919.03
7.0.330.0090.00915.36
7.0.320.0130.00415.25
7.0.310.0150.00315.19
7.0.300.0130.00415.26
7.0.290.0170.00015.39
7.0.280.0180.00015.21
7.0.270.0120.00615.41
7.0.260.0180.00015.18
7.0.250.0140.00415.51
7.0.240.0090.00915.51
7.0.230.0150.00315.58
7.0.220.0090.00915.24
7.0.210.0140.00515.31
7.0.200.0090.00416.03
7.0.190.0210.00715.26
7.0.180.0180.00015.32
7.0.170.0250.00315.27
7.0.160.0090.01015.18
7.0.150.0090.00915.29
7.0.140.0100.03718.76
7.0.130.0130.00515.42
7.0.120.0150.00415.31
7.0.110.0170.00015.42
7.0.100.0210.04217.67
7.0.90.0130.03917.61
7.0.80.0100.04617.56
7.0.70.0120.02317.68
7.0.60.0110.04717.76
7.0.50.0120.03417.87
7.0.40.0140.03617.70
7.0.30.0060.04617.81
7.0.20.0050.03017.67
7.0.10.0120.02017.69
7.0.00.0130.02417.76
5.6.400.0130.00416.03
5.6.390.0100.00716.14
5.6.380.0050.01216.10
5.6.370.0130.00416.04
5.6.360.0110.00615.86
5.6.350.0150.00315.85
5.6.340.0170.00015.88
5.6.330.0120.00415.82
5.6.320.0110.00716.07
5.6.310.0130.00316.04
5.6.300.0080.00815.78
5.6.290.0140.00316.08
5.6.280.0140.03318.53
5.6.270.0140.00316.03
5.6.260.0150.00616.05
5.6.250.0070.04918.13
5.6.240.0080.04218.22
5.6.230.0140.02618.32
5.6.220.0090.02718.36
5.6.210.0150.03718.36
5.6.200.0110.03918.60
5.6.190.0090.02618.53
5.6.180.0120.04018.45
5.6.170.0100.02818.57
5.6.160.0090.03318.52
5.6.150.0090.04118.63
5.6.140.0200.03218.60
5.6.130.0080.03218.63
5.6.120.0120.04318.65
5.6.110.0070.04718.51
5.6.100.0150.04118.55
5.6.90.0100.03718.39
5.6.80.0090.04318.24
5.6.70.0120.03218.29
5.6.60.0130.03818.28
5.6.50.0090.04618.16
5.6.40.0080.03218.06
5.6.30.0120.03818.07
5.6.20.0140.03218.17
5.6.10.0120.04318.04
5.6.00.0090.02918.20
5.5.380.0080.03818.36
5.5.370.0090.02518.21
5.5.360.0130.02718.04
5.5.350.0080.04218.04
5.5.340.0130.03918.47
5.5.330.0120.04118.32
5.5.320.0130.02318.34
5.5.310.0080.02818.29
5.5.300.0150.03718.37
5.5.290.0110.04118.34
5.5.280.0120.04118.31
5.5.270.0110.03118.26
5.5.260.0050.04518.38
5.5.250.0050.03218.43
5.5.240.0130.03918.10
5.5.230.0110.02317.89
5.5.220.0100.03518.17
5.5.210.0080.02518.09
5.5.200.0100.04017.88
5.5.190.0150.03717.95
5.5.180.0130.03517.97
5.5.170.0150.00015.72
5.5.160.0100.02317.99
5.5.150.0150.03717.94
5.5.140.0060.02917.89
5.5.130.0060.05018.03
5.5.120.0090.02417.93
5.5.110.0110.02017.94
5.5.100.0120.03718.12
5.5.90.0100.02817.89
5.5.80.0130.03518.10
5.5.70.0170.02417.93
5.5.60.0080.03917.96
5.5.50.0130.02618.09
5.5.40.0110.03818.07
5.5.30.0140.03517.89
5.5.20.0090.02917.91
5.5.10.0110.03017.92
5.5.00.0070.02617.84
5.4.450.0040.02915.92
5.4.440.0080.02415.99
5.4.430.0110.03315.97
5.4.420.0120.03715.93
5.4.410.0100.03616.01
5.4.400.0060.04415.87
5.4.390.0070.04315.82
5.4.380.0070.03815.83
5.4.370.0090.04415.84
5.4.360.0050.04515.80
5.4.350.0110.03915.74
5.4.340.0130.01815.92
5.4.330.0130.00012.63
5.4.320.0100.03515.88
5.4.310.0070.04315.81
5.4.300.0050.04115.85
5.4.290.0070.04115.83
5.4.280.0100.03015.83
5.4.270.0150.03015.67
5.4.260.0140.03315.77
5.4.250.0070.03815.81
5.4.240.0130.03215.87
5.4.230.0100.04015.70
5.4.220.0130.03315.67
5.4.210.0070.02315.62
5.4.200.0070.02815.81
5.4.190.0070.03015.74
5.4.180.0090.04015.73
5.4.170.0090.03915.62
5.4.160.0110.01815.73
5.4.150.0070.04215.66
5.4.140.0050.03714.42
5.4.130.0120.01414.38
5.4.120.0080.02514.41
5.4.110.0080.03814.51
5.4.100.0130.02014.49
5.4.90.0050.04114.45
5.4.80.0100.03514.43
5.4.70.0060.03914.49
5.4.60.0060.03814.67
5.4.50.0130.02814.38
5.4.40.0110.03514.46
5.4.30.0050.02614.50
5.4.20.0100.02914.44
5.4.10.0110.03614.48
5.4.00.0110.01714.13
5.3.290.0150.03714.01
5.3.280.0080.03913.89
5.3.270.0080.03313.88
5.3.260.0110.03513.94
5.3.250.0080.03913.78
5.3.240.0090.03013.86
5.3.230.0100.03813.95
5.3.220.0110.03213.78
5.3.210.0110.03913.67
5.3.200.0060.04013.83
5.3.190.0150.02713.91
5.3.180.0080.01813.74
5.3.170.0070.02713.97
5.3.160.0080.03013.87
5.3.150.0040.03213.95
5.3.140.0050.04313.93
5.3.130.0140.02813.70
5.3.120.0030.04213.92
5.3.110.0070.04113.74
5.3.100.0130.03713.61
5.3.90.0060.03313.64
5.3.80.0060.04213.38
5.3.70.0110.03713.31
5.3.60.0060.03513.42
5.3.50.0060.02313.48
5.3.40.0130.01713.44
5.3.30.0070.03713.57
5.3.20.0080.03113.33
5.3.10.0030.04013.22
5.3.00.0060.03213.34

preferences:
37.25 ms | 403 KiB | 5 Q