3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$writer = new XMLWriter(); //echo var_dump(getdate(strtotime("1 day"))); echo date("Y-m-d H:i:s", time())."\n"; echo date("Y-m-d H:i:s", strtotime('+20 minutes')); //echo date("Y-m-t", strtotime("first day of previous month") ) ;

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.2.60.0070.00716.68
7.2.00.0030.00919.43
7.1.200.0040.00815.75
7.1.100.0070.00718.27
7.1.70.0000.01017.05
7.1.60.0060.01019.32
7.1.50.0040.02117.08
7.1.00.0070.07322.35
7.0.200.0030.00716.87
7.0.140.0000.07721.93
7.0.80.0570.08019.99
7.0.70.0530.04319.98
7.0.60.0430.05719.91
7.0.50.0570.07720.24
7.0.40.0130.07320.02
7.0.30.0100.08320.05
7.0.20.0170.07320.13
7.0.10.0100.07320.08
7.0.00.0070.07020.07
5.6.280.0000.07721.14
5.6.230.0200.07020.50
5.6.220.0100.08020.64
5.6.210.0100.07720.63
5.6.200.0200.06721.02
5.6.190.0130.05321.03
5.6.180.0130.07721.00
5.6.170.0030.06321.02
5.6.160.0070.05020.95
5.6.150.0130.07721.01
5.6.140.0000.05021.13
5.6.130.0130.07721.00
5.6.120.0100.07321.00
5.6.110.0070.05720.92
5.6.100.0100.07020.91
5.6.90.0100.05021.01
5.6.80.0130.07720.42
5.6.70.0070.07320.38
5.6.60.0100.05720.41
5.6.50.0100.07720.49
5.6.40.0130.07720.36
5.6.30.0100.07720.47
5.6.20.0130.05020.45
5.6.10.0100.04720.43
5.6.00.0100.06720.52
5.5.370.0200.07020.36
5.5.360.0100.05320.48
5.5.350.0200.07720.40
5.5.340.0100.08320.86
5.5.330.0130.06320.82
5.5.320.0070.07020.77
5.5.310.0130.07320.90
5.5.300.0000.05020.82
5.5.290.0100.08020.90
5.5.280.0100.08320.86
5.5.270.0100.08320.86
5.5.260.0070.08320.84
5.5.250.0000.09020.60
5.5.240.0000.07320.25
5.5.230.0170.07320.14
5.5.220.0100.08020.25
5.5.210.0070.06720.17
5.5.200.0070.08020.20
5.5.190.0070.07720.16
5.5.180.0070.04320.26
5.5.160.0070.07720.25
5.5.150.0100.06320.26
5.5.140.0030.07720.21
5.5.130.0130.07320.16
5.5.120.0100.05720.23
5.5.110.0000.06320.23
5.5.100.0070.08320.14
5.5.90.0170.06320.10
5.5.80.0030.07720.05
5.5.70.0070.08020.13
5.5.60.0030.06720.07
5.5.50.0070.08020.14
5.5.40.0030.07720.10
5.5.30.0070.07319.95
5.5.20.0070.04320.03
5.5.10.0000.05320.04
5.5.00.0070.06020.09
5.4.450.0030.06019.23
5.4.440.0070.07319.29
5.4.430.0130.07019.45
5.4.420.0030.08719.36
5.4.410.0070.05319.14
5.4.400.0030.05018.99
5.4.390.0130.07318.81
5.4.380.0030.08019.03
5.4.370.0070.06319.03
5.4.360.0030.08019.12
5.4.350.0070.07019.14
5.4.340.0070.04319.11
5.4.320.0000.07319.03
5.4.310.0130.03718.78
5.4.300.0070.06719.12
5.4.290.0030.06318.82
5.4.280.0170.05018.78
5.4.270.0070.07719.04
5.4.260.0030.08019.09
5.4.250.0030.07719.22
5.4.240.0000.05319.02
5.4.230.0000.08019.05
5.4.220.0070.08018.80
5.4.210.0070.05019.11
5.4.200.0070.08019.05
5.4.190.0100.07318.95
5.4.180.0030.07719.09
5.4.170.0070.03719.02
5.4.160.0030.08019.16
5.4.150.0130.07019.02
5.4.140.0100.07016.33
5.4.130.0070.07016.36
5.4.120.0130.06316.12
5.4.110.0030.08316.40
5.4.100.0130.06316.46
5.4.90.0070.06716.36
5.4.80.0030.05716.46
5.4.70.0130.06716.38
5.4.60.0100.06016.19
5.4.50.0100.07016.30
5.4.40.0170.06316.34
5.4.30.0100.06316.34
5.4.20.0100.06016.24
5.4.10.0070.07016.35
5.4.00.0100.06315.68
5.3.290.0070.07314.52
5.3.280.0070.08014.54
5.3.270.0130.03014.46
5.3.260.0070.05314.46
5.3.250.0170.06314.58
5.3.240.0000.08714.58
5.3.230.0100.07714.41
5.3.220.0070.08014.52
5.3.210.0070.04714.55
5.3.200.0200.06314.43
5.3.190.0100.07714.54
5.3.180.0000.07714.55
5.3.170.0170.06714.52
5.3.160.0030.04714.48
5.3.150.0070.05014.50
5.3.140.0000.05714.38
5.3.130.0100.05314.54
5.3.120.0070.04314.36
5.3.110.0070.07714.55
5.3.100.0100.07014.03
5.3.90.0000.07013.87
5.3.80.0070.07313.77
5.3.70.0070.05313.96
5.3.60.0130.06713.98
5.3.50.0070.05713.92
5.3.40.0070.07313.93
5.3.30.0030.07713.86
5.3.20.0030.06313.63
5.3.10.0030.06313.51
5.3.00.0100.07313.54
5.2.170.0130.03011.06
5.2.160.0070.05711.06
5.2.150.0030.06310.96
5.2.140.0030.04310.96
5.2.130.0030.02711.06
5.2.120.0030.03711.10
5.2.110.0070.05711.12
5.2.100.0070.06011.14
5.2.90.0070.05711.13
5.2.80.0030.06010.95
5.2.70.0030.06311.16
5.2.60.0000.07011.00
5.2.50.0030.06311.01
5.2.40.0100.05710.91
5.2.30.0070.05311.05
5.2.20.0000.07010.75
5.2.10.0030.06310.80
5.2.00.0030.05710.73
5.1.60.0030.03310.02
5.1.50.0030.04010.05
5.1.40.0030.0579.97
5.1.30.0030.05710.38
5.1.20.0070.03710.37
5.1.10.0100.05010.06
5.1.00.0100.05010.04
5.0.50.0030.0438.38
5.0.40.0070.0378.48
5.0.30.0000.0708.21
5.0.20.0130.0338.26
5.0.10.0000.0478.25
5.0.00.0030.0508.20
4.4.90.0000.0377.16
4.4.80.0070.0277.16
4.4.70.0030.0337.16
4.4.60.0000.0377.16
4.4.50.0070.0307.16
4.4.40.0030.0277.16
4.4.30.0000.0237.16
4.4.20.0070.0307.16
4.4.10.0030.0337.16
4.4.00.0030.0477.16
4.3.110.0030.0377.16
4.3.100.0030.0377.16
4.3.90.0070.0307.16
4.3.80.0030.0537.16
4.3.70.0030.0237.16
4.3.60.0030.0207.16
4.3.50.0030.0307.16
4.3.40.0030.0537.16
4.3.30.0000.0377.16
4.3.20.0000.0377.16
4.3.10.0000.0407.16
4.3.00.0030.0337.16

preferences:
29.32 ms | 401 KiB | 5 Q