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(); $diff_days = ($target_days - $today); $days = (int)($diff_days/86400); print "$today"; 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.0040.01515.11
7.4.00.0030.01515.11
7.3.130.0120.00615.11
7.3.120.0000.01715.13
7.3.110.0070.00715.11
7.3.100.0040.00815.14
7.3.90.0030.01015.11
7.3.80.0030.00715.11
7.3.70.0060.00915.11
7.3.60.0030.01215.11
7.3.50.0050.00515.11
7.3.40.0080.00415.11
7.3.30.0070.00715.11
7.3.20.0040.00816.84
7.3.10.0050.01116.78
7.3.00.0040.00816.81
7.2.260.0000.01915.11
7.2.250.0090.00915.32
7.2.240.0060.00915.11
7.2.230.0130.00315.11
7.2.220.0090.00315.21
7.2.210.0040.01115.11
7.2.200.0090.00915.18
7.2.190.0000.01015.11
7.2.180.0060.00615.21
7.2.170.0070.01015.11
7.2.160.0090.00615.11
7.2.150.0070.00317.14
7.2.140.0060.01017.00
7.2.130.0100.00516.95
7.2.120.0060.00516.96
7.2.110.0050.00916.99
7.2.100.0080.00516.97
7.2.90.0040.01017.05
7.2.80.0050.00816.97
7.2.70.0030.01316.97
7.2.60.0130.00716.90
7.2.50.0080.00316.80
7.2.40.0060.00817.01
7.2.30.0060.00917.01
7.2.20.0090.00516.89
7.2.10.0080.00716.86
7.2.00.0090.00617.76
7.1.330.0040.01116.11
7.1.320.0080.00615.96
7.1.310.0060.01016.11
7.1.300.0030.00515.59
7.1.290.0000.01215.77
7.1.280.0040.01116.03
7.1.270.0060.00615.62
7.1.260.0110.00315.84
7.1.250.0070.00715.89
7.1.240.0120.00315.89
7.1.230.0040.01116.10
7.1.220.0130.00315.82
7.1.210.0090.00315.85
7.1.200.0080.00116.00
7.1.190.0040.01115.82
7.1.180.0120.00015.99
7.1.170.0080.00415.70
7.1.160.0030.01115.98
7.1.150.0090.00315.86
7.1.140.0090.00316.03
7.1.130.0080.00615.99
7.1.120.0040.00815.89
7.1.110.0030.00916.11
7.1.100.0000.01015.82
7.1.90.0060.00315.73
7.1.80.0060.00615.92
7.1.70.0070.00316.72
7.1.60.0130.00615.75
7.1.50.0030.01416.52
7.1.40.0060.00316.08
7.1.30.0070.00715.94
7.1.20.0030.01016.03
7.1.10.0060.00816.07
7.1.00.0080.03819.08
7.0.330.0030.00715.50
7.0.320.0060.00315.41
7.0.310.0060.00615.52
7.0.300.0040.00715.59
7.0.290.0040.00715.46
7.0.280.0040.00415.61
7.0.270.0070.00715.35
7.0.260.0060.00615.52
7.0.250.0000.00915.56
7.0.240.0030.01115.82
7.0.230.0100.00015.75
7.0.220.0120.00315.34
7.0.210.0030.00615.55
7.0.200.0060.00916.09
7.0.190.0030.00915.56
7.0.180.0070.00715.47
7.0.170.0060.00615.51
7.0.160.0070.00715.48
7.0.150.0050.00815.52
7.0.140.0020.04318.70
7.0.130.0070.00715.49
7.0.120.0120.00015.69
7.0.110.0060.01015.57
7.0.100.0110.00415.72
7.0.90.0110.04118.54
7.0.80.0120.04018.46
7.0.70.0050.04318.56
7.0.60.0030.04518.70
7.0.50.0000.04418.62
7.0.40.0060.02617.56
7.0.30.0020.02717.61
7.0.20.0020.03017.60
7.0.10.0050.04117.60
7.0.00.0020.04017.57
5.6.400.0000.01315.11
5.6.390.0030.01015.11
5.6.380.0090.00615.11
5.6.370.0040.00415.11
5.6.360.0000.01215.11
5.6.350.0050.00515.11
5.6.340.0070.00715.11
5.6.330.0080.00415.11
5.6.320.0000.01115.11
5.6.310.0040.00815.11
5.6.300.0110.00315.11
5.6.290.0090.00015.11
5.6.280.0090.03518.11
5.6.270.0060.00615.11
5.6.260.0000.01115.11
5.6.250.0000.01315.11
5.6.240.0020.04317.80
5.6.230.0050.04517.78
5.6.220.0030.03717.85
5.6.210.0030.02517.90
5.6.200.0060.04118.11
5.6.190.0020.02718.04
5.6.180.0020.02718.04
5.6.170.0080.03818.05
5.6.160.0060.02518.06
5.6.150.0100.03018.04
5.6.140.0050.04218.03
5.6.130.0050.03318.05
5.6.120.0030.04718.03
5.6.110.0050.04218.08
5.6.100.0060.04318.10
5.6.90.0060.04017.99
5.6.80.0050.04017.77
5.6.70.0060.03317.73
5.6.60.0050.04217.72
5.6.50.0020.04517.68
5.6.40.0070.02017.68
5.6.30.0080.03517.77
5.6.20.0080.03317.71
5.6.10.0070.03417.70
5.6.00.0070.02717.65
5.5.380.0070.03817.81
5.5.370.0080.02217.78
5.5.360.0080.02317.72
5.5.350.0020.02617.68
5.5.340.0100.04017.95
5.5.330.0030.04717.91
5.5.320.0030.04617.97
5.5.310.0020.02817.91
5.5.300.0060.03117.90
5.5.290.0040.04417.99
5.5.280.0050.03517.92
5.5.270.0020.03817.96
5.5.260.0070.04117.95
5.5.250.0050.04317.87
5.5.240.0030.04017.65
5.5.230.0090.03617.62
5.5.220.0030.04517.67
5.5.210.0070.03817.67
5.5.200.0090.01617.58
5.5.190.0020.03217.62
5.5.180.0080.04317.56
5.5.170.0000.01315.11
5.5.160.0030.02317.59
5.5.150.0050.03817.52
5.5.140.0070.04417.65
5.5.130.0020.04217.63
5.5.120.0020.03017.58
5.5.110.0030.02917.56
5.5.100.0060.03117.59
5.5.90.0050.04617.54
5.5.80.0020.03517.56
5.5.70.0030.03217.59
5.5.60.0040.03117.60
5.5.50.0070.04517.58
5.5.40.0070.04017.56
5.5.30.0060.02017.52
5.5.20.0030.04117.55
5.5.10.0060.03317.56
5.5.00.0120.04217.58
5.4.450.0060.04217.12
5.4.440.0050.04317.23
5.4.430.0030.04417.24
5.4.420.0030.04317.28
5.4.410.0030.03917.22
5.4.400.0060.03616.96
5.4.390.0030.03816.96
5.4.380.0050.03217.11
5.4.370.0030.02717.04
5.4.360.0020.03016.96
5.4.350.0000.02417.00
5.4.340.0050.02817.04
5.4.330.0050.00215.11
5.4.320.0060.01917.09
5.4.310.0080.03216.97
5.4.300.0000.04817.06
5.4.290.0020.02417.04
5.4.280.0030.02617.08
5.4.270.0020.04417.12
5.4.260.0060.03116.93
5.4.250.0030.04217.03
5.4.240.0050.04217.11
5.4.230.0050.03517.02
5.4.220.0040.02417.03
5.4.210.0030.02416.95
5.4.200.0030.04217.12
5.4.190.0000.03216.94
5.4.180.0030.02917.08
5.4.170.0090.03717.03
5.4.160.0030.03517.10
5.4.150.0020.03517.08
5.4.140.0060.03515.70
5.4.130.0050.03815.72
5.4.120.0000.03615.73
5.4.110.0000.04015.79
5.4.100.0020.02715.80
5.4.90.0030.03815.79
5.4.80.0060.03615.79
5.4.70.0000.04015.77
5.4.60.0030.03715.65
5.4.50.0020.03915.73
5.4.40.0070.03715.72
5.4.30.0020.04015.72
5.4.20.0020.03315.69
5.4.10.0020.04215.64
5.4.00.0030.03515.39
5.3.290.0070.04714.61
5.3.280.0000.05014.55
5.3.270.0000.07714.59
5.3.260.0070.06314.45
5.3.250.0030.07714.44
5.3.240.0070.07014.43
5.3.230.0000.08014.48
5.3.220.0030.07014.56
5.3.210.0100.06714.43
5.3.200.0030.07014.54
5.3.190.0000.08014.40
5.3.180.0030.07714.51
5.3.170.0030.07714.57
5.3.160.0070.06714.47
5.3.150.0030.07314.56
5.3.140.0030.04314.51
5.3.130.0030.07314.38
5.3.120.0000.05714.50
5.3.110.0030.07714.40
5.3.100.0130.06014.01
5.3.90.0000.06314.00
5.3.80.0000.04014.00
5.3.70.0000.07714.01
5.3.60.0000.05313.96
5.3.50.0030.07013.93
5.3.40.0070.05713.92
5.3.30.0000.05713.86
5.3.20.0030.06313.69
5.3.10.0030.07013.53
5.3.00.0030.07013.64
5.2.170.0000.06710.95
5.2.160.0030.04311.16
5.2.150.0000.06310.93
5.2.140.0000.05711.13
5.2.130.0030.06011.05
5.2.120.0000.03310.97
5.2.110.0100.04310.91
5.2.100.0030.05010.91
5.2.90.0000.06310.94
5.2.80.0030.06011.11
5.2.70.0000.03711.07
5.2.60.0030.03711.10
5.2.50.0000.06711.02
5.2.40.0070.04010.98
5.2.30.0000.05010.81
5.2.20.0000.03010.88
5.2.10.0000.04310.95
5.2.00.0030.03310.64
5.1.60.0030.02310.07
5.1.50.0000.0239.82
5.1.40.0000.02710.08
5.1.30.0030.02310.39
5.1.20.0030.02310.43
5.1.10.0000.02710.11
5.1.00.0030.02310.05
5.0.50.0000.0209.32
5.0.40.0000.0209.32
5.0.30.0000.0279.32
5.0.20.0000.0239.32
5.0.10.0030.0179.32
5.0.00.0000.0309.32
4.4.90.0030.0179.32
4.4.80.0000.0139.32
4.4.70.0000.0279.32
4.4.60.0000.0379.32
4.4.50.0000.0309.32
4.4.40.0000.0309.32
4.4.30.0000.0179.32
4.4.20.0030.0139.32
4.4.10.0000.0209.32
4.4.00.0000.0239.32
4.3.110.0030.0139.32
4.3.100.0000.0139.32
4.3.90.0000.0139.32
4.3.80.0070.0379.32
4.3.70.0000.0179.32
4.3.60.0000.0179.32
4.3.50.0000.0179.32
4.3.40.0000.0209.32
4.3.30.0030.0139.32
4.3.20.0000.0209.32
4.3.10.0030.0109.32
4.3.00.0000.0209.32

preferences:
37.25 ms | 401 KiB | 5 Q