3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target_days = mktime(0,0,0,05,10,2013);// modify the birth day 12/31/2013 $today = time(); $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.4.10.0070.01316.75
7.4.00.0160.00316.68
7.3.130.0130.00616.52
7.3.120.0090.00616.36
7.3.110.0000.01416.39
7.3.100.0060.00316.52
7.3.90.0070.01116.32
7.3.80.0090.00616.52
7.3.70.0100.00716.51
7.3.60.0090.00616.38
7.3.50.0030.00716.33
7.3.40.0000.01216.39
7.3.30.0070.01116.36
7.3.20.0040.01218.29
7.3.10.0120.00418.37
7.3.00.0090.00618.36
7.2.260.0100.00716.51
7.2.250.0100.01016.73
7.2.240.0000.01616.75
7.2.230.0060.00616.41
7.2.220.0060.01316.73
7.2.210.0040.01216.57
7.2.200.0040.01416.52
7.2.190.0100.01016.42
7.2.180.0070.00716.60
7.2.170.0000.01316.40
7.2.160.0070.00716.43
7.2.150.0090.00918.37
7.2.140.0120.00418.51
7.2.130.0100.00618.45
7.2.120.0000.01418.64
7.2.110.0130.00318.38
7.2.100.0040.01218.45
7.2.90.0040.00718.29
7.2.80.0080.00818.52
7.2.70.0000.01518.40
7.2.60.0100.00718.52
7.2.50.0140.00418.56
7.2.40.0030.01218.33
7.2.30.0030.01318.53
7.2.20.0060.00618.27
7.2.10.0070.00718.31
7.2.00.0070.00718.89
7.1.330.0080.00817.41
7.1.320.0030.01017.43
7.1.310.0030.00617.29
7.1.300.0030.01617.48
7.1.290.0070.00717.25
7.1.280.0030.01017.51
7.1.270.0060.00617.34
7.1.260.0090.00317.50
7.1.250.0070.01017.14
7.1.240.0080.00417.34
7.1.230.0040.00817.50
7.1.220.0080.00817.62
7.1.210.0100.00617.51
7.1.200.0040.01117.45
7.1.190.0000.01317.44
7.1.180.0030.01217.28
7.1.170.0060.00617.49
7.1.160.0090.00617.50
7.1.150.0060.00917.38
7.1.140.0070.00717.32
7.1.130.0100.00017.37
7.1.120.0120.00017.45
7.1.110.0030.01417.30
7.1.100.0000.01217.83
7.1.90.0080.00817.22
7.1.80.0040.01117.51
7.1.70.0050.00717.43
7.1.60.0120.00716.53
7.1.50.0030.01017.25
7.1.40.0040.00717.43
7.1.30.0090.00617.55
7.1.20.0070.01117.48
7.1.10.0060.00317.37
7.1.00.0040.04119.96
7.0.330.0090.00617.07
7.0.320.0060.00317.15
7.0.310.0120.00317.11
7.0.300.0060.00617.29
7.0.290.0040.00917.22
7.0.280.0040.01217.20
7.0.270.0000.01117.26
7.0.260.0040.01117.23
7.0.250.0040.00717.05
7.0.240.0030.01017.20
7.0.230.0030.01016.99
7.0.220.0030.01017.11
7.0.210.0000.01517.04
7.0.200.0050.00917.03
7.0.190.0000.01016.93
7.0.180.0090.00617.18
7.0.170.0030.00617.00
7.0.160.0090.00917.04
7.0.150.0030.00917.15
7.0.140.0070.03519.58
7.0.130.0030.01017.13
7.0.120.0030.00617.29
7.0.110.0070.00717.11
7.0.100.0000.01217.13
7.0.90.0050.04019.44
7.0.80.0040.02319.44
7.0.70.0050.04219.37
7.0.60.0020.04119.54
7.0.50.0060.04119.63
7.0.40.0070.04217.55
7.0.30.0040.03917.55
7.0.20.0080.04817.52
7.0.10.0080.04017.59
7.0.00.0020.04117.34
5.6.400.0060.00916.07
5.6.390.0110.00016.24
5.6.380.0040.01115.88
5.6.370.0030.01015.86
5.6.360.0060.00915.95
5.6.350.0120.00616.11
5.6.340.0030.01215.76
5.6.330.0100.00315.89
5.6.320.0030.00915.98
5.6.310.0030.01115.86
5.6.300.0030.00615.98
5.6.290.0040.00715.82
5.6.280.0060.04018.51
5.6.270.0060.00916.18
5.6.260.0030.00615.90
5.6.250.0080.00415.71
5.6.240.0090.04218.29
5.6.230.0060.04318.28
5.6.220.0020.04718.30
5.6.210.0070.04218.33
5.6.200.0090.02318.56
5.6.190.0020.05118.45
5.6.180.0070.04318.38
5.6.170.0070.03918.41
5.6.160.0070.04118.45
5.6.150.0070.03218.46
5.6.140.0100.03218.48
5.6.130.0030.04018.48
5.6.120.0050.04718.33
5.6.110.0080.04318.53
5.6.100.0020.04718.36
5.6.90.0080.03518.47
5.6.80.0040.03018.14
5.6.70.0030.03918.17
5.6.60.0050.04418.12
5.6.50.0020.04418.05
5.6.40.0030.04618.04
5.6.30.0070.03818.12
5.6.20.0050.02618.04
5.6.10.0050.03318.19
5.6.00.0060.04117.99
5.5.380.0050.04417.98
5.5.370.0070.04418.04
5.5.360.0030.04718.06
5.5.350.0030.04218.14
5.5.340.0020.04918.35
5.5.330.0040.04718.32
5.5.320.0070.04018.26
5.5.310.0100.03518.34
5.5.300.0020.03718.41
5.5.290.0050.04618.23
5.5.280.0030.04918.28
5.5.270.0040.04618.29
5.5.260.0080.03718.36
5.5.250.0070.02018.26
5.5.240.0030.03317.99
5.5.230.0070.04417.94
5.5.220.0060.03317.91
5.5.210.0100.01818.04
5.5.200.0050.04218.00
5.5.190.0060.04617.80
5.5.180.0050.04518.04
5.5.170.0050.00515.70
5.5.160.0050.04618.01
5.5.150.0030.04618.04
5.5.140.0040.03517.93
5.5.130.0030.04517.99
5.5.120.0070.04717.93
5.5.110.0060.01917.85
5.5.100.0050.02017.98
5.5.90.0020.04917.84
5.5.80.0050.03018.04
5.5.70.0090.04017.77
5.5.60.0050.02017.81
5.5.50.0050.04217.95
5.5.40.0100.03817.97
5.5.30.0050.03817.88
5.5.20.0050.03817.83
5.5.10.0080.04217.81
5.5.00.0080.04017.73
5.4.450.0030.02816.12
5.4.440.0030.04516.12
5.4.430.0000.04316.03
5.4.420.0000.04515.97
5.4.410.0080.03115.98
5.4.400.0040.03515.76
5.4.390.0070.02315.97
5.4.380.0030.04215.89
5.4.370.0070.04215.89
5.4.360.0050.03315.79
5.4.350.0010.04115.76
5.4.340.0060.03815.89
5.4.330.0080.00312.69
5.4.320.0100.03515.87
5.4.310.0030.03615.83
5.4.300.0030.03015.90
5.4.290.0030.02215.81
5.4.280.0010.04115.89
5.4.270.0030.04215.75
5.4.260.0020.02215.82
5.4.250.0030.03715.86
5.4.240.0020.03415.85
5.4.230.0040.02515.74
5.4.220.0020.04915.81
5.4.210.0030.02115.86
5.4.200.0000.03215.89
5.4.190.0050.04015.84
5.4.180.0030.02315.74
5.4.170.0060.02215.91
5.4.160.0080.03215.78
5.4.150.0070.03915.72
5.4.140.0040.03314.49
5.4.130.0020.03114.48
5.4.120.0020.03914.53
5.4.110.0030.04214.61
5.4.100.0030.03914.59
5.4.90.0030.03814.53
5.4.80.0050.03814.53
5.4.70.0050.02014.48
5.4.60.0030.04314.45
5.4.50.0040.03814.43
5.4.40.0010.04114.49
5.4.30.0000.03814.55
5.4.20.0030.03814.44
5.4.10.0000.02214.45
5.4.00.0060.01814.23
5.3.290.0030.08014.63
5.3.280.0070.03014.59
5.3.270.0030.07014.61
5.3.260.0070.07714.59
5.3.250.0070.07314.58
5.3.240.0070.07014.46
5.3.230.0000.07714.43
5.3.220.0030.03714.40
5.3.210.0000.07714.41
5.3.200.0000.07314.50
5.3.190.0070.06014.42
5.3.180.0030.03714.42
5.3.170.0000.05314.55
5.3.160.0070.06714.44
5.3.150.0000.07314.54
5.3.140.0000.05014.56
5.3.130.0070.07314.50
5.3.120.0070.07314.40
5.3.110.0070.04014.36
5.3.100.0030.06714.02
5.3.90.0030.09013.84
5.3.80.0070.06714.01
5.3.70.0000.05314.02
5.3.60.0000.06314.01
5.3.50.0000.05013.93
5.3.40.0030.04713.88
5.3.30.0100.05713.90
5.3.20.0070.06013.66
5.3.10.0030.03313.51
5.3.00.0030.06713.61
5.2.170.0030.05011.21
5.2.160.0000.05010.98
5.2.150.0000.05711.10
5.2.140.0000.05711.18
5.2.130.0000.05711.09
5.2.120.0000.03011.15
5.2.110.0000.05310.98
5.2.100.0000.03311.08
5.2.90.0000.05710.94
5.2.80.0000.04311.07
5.2.70.0000.03711.01
5.2.60.0000.04710.96
5.2.50.0030.02711.05
5.2.40.0000.04710.98
5.2.30.0000.03010.99
5.2.20.0000.03010.96
5.2.10.0030.06310.75
5.2.00.0030.03710.77
5.1.60.0000.0539.83
5.1.50.0000.0279.82
5.1.40.0000.03010.04
5.1.30.0000.05710.39
5.1.20.0000.05010.46
5.1.10.0000.02710.05
5.1.00.0030.04710.11
5.0.50.0000.0378.94
5.0.40.0000.0438.94
5.0.30.0000.0608.94
5.0.20.0030.0408.94
5.0.10.0070.0238.94
5.0.00.0000.0538.94
4.4.90.0030.0338.94
4.4.80.0000.0178.94
4.4.70.0030.0138.94
4.4.60.0000.0138.94
4.4.50.0000.0378.94
4.4.40.0000.0438.94
4.4.30.0000.0338.94
4.4.20.0000.0378.94
4.4.10.0030.0278.94
4.4.00.0030.0508.94
4.3.110.0030.0338.94
4.3.100.0000.0338.94
4.3.90.0000.0308.94
4.3.80.0000.0538.94
4.3.70.0000.0308.94
4.3.60.0100.0138.94
4.3.50.0000.0378.94
4.3.40.0000.0538.94
4.3.30.0030.0238.94
4.3.20.0000.0308.94
4.3.10.0000.0278.94
4.3.00.0000.0278.94

preferences:
33.73 ms | 400 KiB | 5 Q