3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_days = mktime(0,0,0,12,31,2013);// modify the birth day 12/31/2013 $today = time(); print "$today"; /*$diff_days = ($target_days - $today); $days = (int)($diff_days/86400); print "Days till next birthday: $days days!";*/ ?> - See more at: http://www.w3resource.com/php-exercises/php-date-exercises.php#sthash.xJA52BEw.dpuf

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.3.120.0030.01314.85
7.3.110.0000.01214.85
7.3.100.0070.00715.00
7.3.90.0000.00914.73
7.3.80.0040.00415.01
7.3.70.0070.00714.88
7.3.60.0000.01114.80
7.3.50.0030.00814.64
7.3.40.0110.00314.87
7.3.30.0060.00914.61
7.3.20.0070.00716.71
7.3.10.0030.01016.66
7.3.00.0060.00916.74
7.2.240.0070.01015.13
7.2.230.0030.00914.98
7.2.220.0050.00515.11
7.2.210.0120.00314.98
7.2.200.0080.00414.95
7.2.190.0060.00915.12
7.2.180.0030.01414.98
7.2.170.0040.01415.21
7.2.160.0130.00314.96
7.2.150.0110.00716.88
7.2.140.0040.00816.97
7.2.130.0050.00517.08
7.2.120.0040.01416.82
7.2.110.0060.01217.04
7.2.100.0040.01416.76
7.2.90.0060.00917.02
7.2.80.0030.01317.03
7.2.70.0060.00917.04
7.2.60.0070.01017.00
7.2.50.0140.00016.78
7.2.40.0060.01216.63
7.2.30.0000.01217.01
7.2.20.0030.01217.02
7.2.10.0090.00616.85
7.2.00.0040.00918.00
7.1.330.0030.00916.02
7.1.320.0040.01115.72
7.1.310.0070.00715.77
7.1.300.0110.00315.45
7.1.290.0040.00815.81
7.1.280.0060.01015.81
7.1.270.0060.00615.72
7.1.260.0100.00715.68
7.1.250.0080.00615.86
7.1.100.0040.00718.14
7.1.70.0000.00716.93
7.1.60.0900.00715.50
7.1.50.0040.01217.02
7.1.00.0030.07722.31
7.0.200.0070.01016.88
7.0.140.0000.07722.01
7.0.100.0200.08020.03
7.0.90.0100.07720.02
7.0.80.0070.08319.87
7.0.70.0070.05319.88
7.0.60.0100.08019.75
7.0.50.0100.06020.35
7.0.40.0030.08319.95
7.0.30.0100.04719.96
7.0.20.0070.09020.03
7.0.10.0030.08320.12
7.0.00.0130.07320.10
5.6.280.0000.07721.06
5.6.250.0030.08720.65
5.6.240.0100.07720.57
5.6.230.0030.05320.68
5.6.220.0100.06020.48
5.6.210.0070.08320.47
5.6.200.0100.08321.00
5.6.190.0070.04721.16
5.6.180.0170.06021.03
5.6.170.0070.08721.04
5.6.160.0130.07021.04
5.6.150.0130.07721.00
5.6.140.0100.05021.01
5.6.130.0030.08720.99
5.6.120.0130.04021.07
5.6.110.0130.07021.15
5.6.100.0200.06720.91
5.6.90.0070.05320.92
5.6.80.0070.06720.51
5.6.70.0170.07320.39
5.6.60.0100.05020.29
5.6.50.0100.05020.48
5.6.40.0100.07720.38
5.6.30.0000.05720.39
5.6.20.0070.08320.38
5.6.10.0030.07720.35
5.6.00.0030.08020.41
5.5.380.0070.08320.41
5.5.370.0030.07720.50
5.5.360.0030.08720.43
5.5.350.0070.07020.42
5.5.340.0030.05020.87
5.5.330.0170.06720.73
5.5.320.0030.04320.91
5.5.310.0200.07320.85
5.5.300.0130.08320.72
5.5.290.0100.08020.91
5.5.280.0030.05020.91
5.5.270.0130.06720.78
5.5.260.0030.08720.75
5.5.250.0070.04720.70
5.5.240.0100.07020.24
5.5.230.0070.07320.27
5.5.220.0130.03720.13
5.5.210.0070.07720.25
5.5.200.0100.07020.08
5.5.190.0030.08019.98
5.5.180.0030.06020.23
5.5.160.0030.08320.14
5.5.150.0130.07720.16
5.5.140.0100.07320.17
5.5.130.0030.08020.27
5.5.120.0000.05020.20
5.5.110.0000.06020.11
5.5.100.0130.07720.07
5.5.90.0070.08320.14
5.5.80.0070.08020.09
5.5.70.0070.04319.93
5.5.60.0070.03720.09
5.5.50.0000.05020.04
5.5.40.0070.07319.95
5.5.30.0000.08320.08
5.5.20.0030.07719.98
5.5.10.0030.06320.03
5.5.00.0030.06319.95
5.4.450.0100.07019.43
5.4.440.0100.06019.38
5.4.430.0130.06319.17
5.4.420.0100.07319.35
5.4.410.0100.08019.17
5.4.400.0130.07319.08
5.4.390.0000.08319.14
5.4.380.0100.05319.05
5.4.370.0030.06318.90
5.4.360.0000.06018.81
5.4.350.0030.08318.81
5.4.340.0100.05719.03
5.4.320.0130.07319.23
5.4.310.0070.07319.12
5.4.300.0100.07319.09
5.4.290.0100.03719.09
5.4.280.0170.06019.14
5.4.270.0070.07718.97
5.4.260.0100.06019.09
5.4.250.0000.05318.89
5.4.240.0030.07319.04
5.4.230.0100.04319.14
5.4.220.0070.08018.83
5.4.210.0030.07318.77
5.4.200.0000.03719.04
5.4.190.0130.02719.02
5.4.180.0000.05019.13
5.4.170.0070.04319.05
5.4.160.0000.07019.03
5.4.150.0000.05019.05
5.4.140.0030.06716.41
5.4.130.0030.05716.34
5.4.120.0130.06316.34
5.4.110.0070.04016.36
5.4.100.0000.04316.30
5.4.90.0030.06016.26
5.4.80.0100.03716.33
5.4.70.0070.07316.34
5.4.60.0100.04316.35
5.4.50.0100.06316.39
5.4.40.0000.08316.26
5.4.30.0130.06016.17
5.4.20.0100.06016.32
5.4.10.0070.07016.18
5.4.00.0100.07015.80
5.3.290.0030.05314.50
5.3.280.0030.07014.57
5.3.270.0030.06014.59
5.3.260.0030.05714.57
5.3.250.0130.06314.59
5.3.240.0000.05014.46
5.3.230.0030.04014.41
5.3.220.0070.04714.39
5.3.210.0130.06314.55
5.3.200.0200.05314.42
5.3.190.0030.07014.54
5.3.180.0030.04014.47
5.3.170.0000.08314.38
5.3.160.0130.05314.52
5.3.150.0100.06714.52
5.3.140.0100.06714.54
5.3.130.0130.07014.53
5.3.120.0070.08314.41
5.3.110.0200.06314.55
5.3.100.0100.06714.00
5.3.90.0030.06713.89
5.3.80.0030.04013.77
5.3.70.0100.07013.97
5.3.60.0070.04713.86
5.3.50.0070.07713.94
5.3.40.0030.07313.93
5.3.30.0030.05013.89
5.3.20.0030.04313.62
5.3.10.0070.07013.56
5.3.00.0130.07013.49
5.2.170.0070.06011.21
5.2.160.0030.04011.00
5.2.150.0030.06710.98
5.2.140.0100.05711.16
5.2.130.0000.06310.95
5.2.120.0070.03311.05
5.2.110.0100.06011.09
5.2.100.0070.06011.08
5.2.90.0100.05311.15
5.2.80.0000.06710.94
5.2.70.0070.05710.94
5.2.60.0130.05010.97
5.2.50.0000.06010.85
5.2.40.0030.06011.04
5.2.30.0000.05310.96
5.2.20.0200.04310.91
5.2.10.0030.06010.94
5.2.00.0070.04010.82
5.1.60.0000.05710.04
5.1.50.0030.0579.97
5.1.40.0070.0439.95
5.1.30.0070.05010.19
5.1.20.0030.05310.24
5.1.10.0000.04710.05
5.1.00.0100.0439.94
5.0.50.0000.0478.65
5.0.40.0030.0438.49
5.0.30.0100.0578.31
5.0.20.0030.0438.26
5.0.10.0000.0438.20
5.0.00.0030.0538.25
4.4.90.0030.0277.05
4.4.80.0030.0337.05
4.4.70.0030.0207.05
4.4.60.0000.0407.05
4.4.50.0000.0337.05
4.4.40.0030.0437.05
4.4.30.0030.0377.05
4.4.20.0030.0377.05
4.4.10.0030.0307.05
4.4.00.0000.0377.05
4.3.110.0000.0337.05
4.3.100.0000.0277.05
4.3.90.0070.0237.05
4.3.80.0030.0307.05
4.3.70.0000.0337.05
4.3.60.0000.0337.05
4.3.50.0000.0277.05
4.3.40.0030.0237.05
4.3.30.0000.0207.05
4.3.20.0000.0377.05
4.3.10.0030.0377.05
4.3.00.0000.0377.05

preferences:
36.92 ms | 400 KiB | 5 Q