3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(time()); $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.10.0110.00715.24
7.4.00.0070.01015.16
7.3.130.0060.01314.71
7.3.120.0080.00815.03
7.3.110.0070.01114.96
7.3.100.0030.01414.96
7.3.90.0050.00815.05
7.3.80.0030.00815.00
7.3.70.0050.01014.92
7.3.60.0070.00715.01
7.3.50.0050.00614.86
7.3.40.0000.01615.04
7.3.30.0080.00614.88
7.3.20.0050.00916.76
7.3.10.0070.00516.94
7.3.00.0120.00316.58
7.2.260.0000.01315.26
7.2.250.0070.01115.20
7.2.240.0090.00615.32
7.2.230.0110.00515.15
7.2.220.0060.01015.04
7.2.210.0090.00715.06
7.2.200.0080.00715.29
7.2.190.0080.00715.31
7.2.180.0060.00915.11
7.2.170.0050.01015.19
7.2.160.0040.00415.24
7.2.150.0040.01117.10
7.2.140.0000.01317.09
7.2.130.0090.00617.06
7.2.120.0110.00416.95
7.2.110.0110.00317.28
7.2.100.0100.00617.14
7.2.90.0040.01416.82
7.2.80.0060.00917.02
7.2.70.0090.00616.96
7.2.60.0180.01317.12
7.2.50.0030.01417.20
7.2.40.0030.01017.00
7.2.30.0040.01117.15
7.2.20.0090.00617.11
7.2.10.0040.00816.96
7.2.00.0030.01218.20
7.1.330.0100.00515.91
7.1.320.0080.00216.04
7.1.310.0080.00515.82
7.1.300.0060.00315.75
7.1.290.0040.01115.85
7.1.280.0070.00815.77
7.1.270.0020.00915.91
7.1.260.0050.00715.90
7.1.250.0100.00316.09
7.1.240.0070.00415.54
7.1.230.0080.00616.05
7.1.220.0070.00415.61
7.1.210.0110.00415.82
7.1.200.0000.01115.94
7.1.190.0030.00716.00
7.1.180.0070.00715.82
7.1.170.0120.00315.93
7.1.160.0030.00615.89
7.1.150.0100.00715.90
7.1.140.0030.01016.09
7.1.130.0090.00315.73
7.1.120.0090.00615.97
7.1.110.0030.00615.79
7.1.100.0060.00616.02
7.1.90.0040.00715.95
7.1.80.0030.01315.80
7.1.70.0050.00416.68
7.1.60.0380.00415.71
7.1.50.0020.01216.38
7.1.40.0030.01015.75
7.1.30.0030.00915.98
7.1.20.0020.01415.92
7.1.10.0070.00715.64
7.1.00.0090.03719.02
7.0.330.0080.00015.27
7.0.320.0000.01115.60
7.0.310.0070.00715.55
7.0.300.0000.01215.47
7.0.290.0060.00615.41
7.0.280.0030.01015.73
7.0.270.0070.00715.57
7.0.260.0040.01115.57
7.0.250.0110.00415.14
7.0.240.0000.01315.43
7.0.230.0060.01015.69
7.0.220.0030.01015.50
7.0.210.0000.01415.56
7.0.200.0080.00716.25
7.0.190.0030.01015.55
7.0.180.0060.00615.55
7.0.170.0130.00315.67
7.0.160.0040.00715.59
7.0.150.0070.01015.31
7.0.140.0050.04018.83
7.0.130.0000.01515.67
7.0.120.0060.00615.63
7.0.110.0070.00715.59
7.0.100.0030.03517.78
7.0.90.0100.04417.79
7.0.80.0110.03517.69
7.0.70.0080.02817.87
7.0.60.0080.04217.57
7.0.50.0250.03317.95
7.0.40.0050.04416.81
7.0.30.0080.02516.87
7.0.20.0100.04316.80
7.0.10.0070.04816.69
7.0.00.0090.04316.79
5.6.400.0060.00914.29
5.6.390.0050.00514.65
5.6.380.0030.00914.54
5.6.370.0030.00914.47
5.6.360.0030.01314.51
5.6.350.0090.00314.38
5.6.340.0030.01314.52
5.6.330.0040.00714.60
5.6.320.0040.01114.76
5.6.310.0000.01314.33
5.6.300.0040.01114.61
5.6.290.0130.00014.33
5.6.280.0020.04117.66
5.6.270.0040.01214.52
5.6.260.0040.00414.31
5.6.250.0090.03417.52
5.6.240.0050.04917.51
5.6.230.0050.04117.57
5.6.220.0110.04217.68
5.6.210.0080.04817.63
5.6.200.0100.04917.88
5.6.190.0060.04017.71
5.6.180.0080.03017.75
5.6.170.0070.04017.86
5.6.160.0110.04117.74
5.6.150.0080.04317.59
5.6.140.0070.04217.68
5.6.130.0070.04317.69
5.6.120.0090.04617.75
5.6.110.0040.03017.75
5.6.100.0110.03517.78
5.6.90.0070.03217.81
5.6.80.0050.04317.47
5.6.70.0070.02717.36
5.6.60.0100.02217.31
5.6.50.0060.02317.54
5.6.40.0070.02517.37
5.6.30.0030.02617.48
5.6.20.0020.02417.47
5.6.10.0020.02817.38
5.6.00.0080.02217.32
5.5.380.0070.04217.35
5.5.370.0100.03717.28
5.5.360.0090.02617.30
5.5.350.0030.04817.36
5.5.340.0100.03517.47
5.5.330.0030.04617.66
5.5.320.0150.03717.54
5.5.310.0050.04817.73
5.5.300.0070.02317.65
5.5.290.0090.04017.68
5.5.280.0050.04817.71
5.5.270.0080.04317.62
5.5.260.0070.04817.59
5.5.250.0070.03517.56
5.5.240.0040.04917.37
5.5.230.0090.02817.38
5.5.220.0070.02517.29
5.5.210.0030.02517.11
5.5.200.0100.02017.37
5.5.190.0030.02617.27
5.5.180.0030.02817.31
5.5.170.0030.01414.21
5.5.160.0030.03817.33
5.5.150.0050.02117.30
5.5.140.0070.01817.25
5.5.130.0060.02517.16
5.5.120.0030.02617.28
5.5.110.0030.02817.35
5.5.100.0050.02617.16
5.5.90.0070.02517.24
5.5.80.0030.02517.26
5.5.70.0020.02717.13
5.5.60.0050.02317.20
5.5.50.0030.02317.13
5.5.40.0090.01817.22
5.5.30.0100.02017.33
5.5.20.0050.02917.00
5.5.10.0080.02417.31
5.5.00.0050.02916.98
5.4.450.0090.04215.34
5.4.440.0070.04015.09
5.4.430.0030.02515.25
5.4.420.0070.04015.29
5.4.410.0050.03115.21
5.4.400.0080.03815.03
5.4.390.0060.03815.18
5.4.380.0060.02315.01
5.4.370.0030.02315.13
5.4.360.0030.02115.14
5.4.350.0050.02215.06
5.4.340.0020.02014.86
5.4.330.0070.00711.09
5.4.320.0030.02315.01
5.4.310.0070.01514.99
5.4.300.0100.01714.82
5.4.290.0020.02414.95
5.4.280.0080.03415.10
5.4.270.0030.02115.05
5.4.260.0020.02014.92
5.4.250.0030.02115.18
5.4.240.0030.02515.03
5.4.230.0000.02414.98
5.4.220.0020.02315.20
5.4.210.0030.02314.92
5.4.200.0050.02015.03
5.4.190.0060.02115.09
5.4.180.0050.02215.05
5.4.170.0030.02015.16
5.4.160.0060.02014.92
5.4.150.0100.01714.91
5.4.140.0070.02013.79
5.4.130.0060.01513.42
5.4.120.0040.02413.66
5.4.110.0020.02413.72
5.4.100.0030.02313.89
5.4.90.0020.02713.83
5.4.80.0030.02613.75
5.4.70.0030.01813.65
5.4.60.0030.02213.63
5.4.50.0000.02213.74
5.4.40.0050.03213.75
5.4.30.0070.01813.63
5.4.20.0070.02213.67
5.4.10.0030.03213.60
5.4.00.0100.01713.28
5.3.290.0070.03714.64
5.3.280.0070.03714.47
5.3.270.0000.04314.47
5.3.260.0030.04014.58
5.3.250.0030.04014.57
5.3.240.0030.03714.57
5.3.230.0000.04014.43
5.3.220.0070.03314.51
5.3.210.0030.04714.47
5.3.200.0000.04314.56
5.3.190.0000.04014.56
5.3.180.0070.06014.54
5.3.170.0000.04014.55
5.3.160.0000.04014.55
5.3.150.0070.03314.38
5.3.140.0030.03314.51
5.3.130.0030.03714.51
5.3.120.0030.04314.40
5.3.110.0000.04314.54
5.3.100.0000.07713.90
5.3.90.0030.08013.93
5.3.80.0070.05313.88
5.3.70.0070.07713.77
5.3.60.0070.07713.91
5.3.50.0070.04013.93
5.3.40.0070.07313.70
5.3.30.0130.07013.76
5.3.20.0030.04713.64
5.3.10.0000.06713.42
5.3.00.0100.07013.39
5.2.170.0070.06311.13
5.2.160.0070.04311.00
5.2.150.0070.05311.09
5.2.140.0070.06311.14
5.2.130.0070.03711.17
5.2.120.0070.02710.92
5.2.110.0070.05711.05
5.2.100.0100.05711.04
5.2.90.0130.05710.93
5.2.80.0070.06311.06
5.2.70.0070.04711.01
5.2.60.0070.05011.12
5.2.50.0070.06311.02
5.2.40.0070.03311.00
5.2.30.0000.06711.04
5.2.20.0070.04710.79
5.2.10.0100.05310.78
5.2.00.0070.06310.59
5.1.60.0100.0509.87
5.1.50.0100.04710.00
5.1.40.0030.0539.99
5.1.30.0070.05010.39
5.1.20.0100.05010.29
5.1.10.0030.03710.11
5.1.00.0070.0309.90
5.0.50.0070.0208.59
5.0.40.0000.0338.45
5.0.30.0000.0638.05
5.0.20.0030.0478.28
5.0.10.0070.0378.21
5.0.00.0030.0608.00
4.4.90.0030.0236.90
4.4.80.0100.0136.90
4.4.70.0070.0136.90
4.4.60.0030.0336.90
4.4.50.0030.0276.90
4.4.40.0030.0536.90
4.4.30.0030.0336.90
4.4.20.0100.0236.90
4.4.10.0030.0236.90
4.4.00.0000.0536.90
4.3.110.0000.0306.90
4.3.100.0030.0336.90
4.3.90.0070.0276.90
4.3.80.0030.0536.90
4.3.70.0000.0336.90
4.3.60.0000.0336.90
4.3.50.0030.0176.90
4.3.40.0100.0436.90
4.3.30.0030.0276.90
4.3.20.0000.0306.90
4.3.10.0070.0376.90
4.3.00.0000.0336.90

preferences:
37.21 ms | 401 KiB | 5 Q