3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emember_flag = 0; date_default_timezone_set('Asia/Singapore'); define('LF', "\n"); define('DATE_FORMAT', 'Y-m-d H:i:s'); # The format 'today' works the same as 'now' except the time is set to 00:00:00 # More info at http://sg3.php.net/manual/en/datetime.formats.relative.php $end_date = new DateTime('today'); # Effective end date is the end of the last day of current month. # But we are using 'first day of next month' because our comparison uses < not <= $end_date->modify('first day of next month'); $sumend_timestamp = $end_date->getTimestamp(); if ($emember_flag) : $intervalSpec = 'P3M'; else : $intervalSpec = 'P1Y'; endif; $upgrade_interval = new DateInterval($intervalSpec); $start_date = clone $end_date; $start_date->sub($upgrade_interval); $sumstart_timestamp = $start_date->getTimestamp(); echo date(DATE_FORMAT, $sumend_timestamp) . LF; echo date(DATE_FORMAT, $sumstart_timestamp) . LF;

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)
8.3.40.0070.00718.59
8.3.30.0080.00618.77
8.3.20.0040.00420.30
8.3.10.0040.00423.51
8.3.00.0000.00720.80
8.2.170.0070.00722.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00420.79
8.2.110.0040.00419.27
8.2.100.0120.00319.32
8.2.90.0040.00419.35
8.2.80.0030.00617.97
8.2.70.0000.00817.75
8.2.60.0000.00818.02
8.2.50.0030.00618.07
8.2.40.0030.00618.28
8.2.30.0000.00718.46
8.2.20.0000.00718.00
8.2.10.0050.00318.21
8.2.00.0040.00417.99
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00317.63
8.1.230.0080.00417.89
8.1.220.0030.00617.80
8.1.210.0050.00318.77
8.1.200.0070.00417.60
8.1.190.0060.00317.47
8.1.180.0000.00818.10
8.1.170.0030.00618.71
8.1.160.0080.00022.09
8.1.150.0070.00018.85
8.1.140.0030.00617.71
8.1.130.0040.00417.96
8.1.120.0050.00317.72
8.1.110.0040.00417.70
8.1.100.0040.00417.75
8.1.90.0000.00717.72
8.1.80.0040.00317.66
8.1.70.0030.00317.61
8.1.60.0000.00817.68
8.1.50.0060.00317.65
8.1.40.0000.00817.61
8.1.30.0040.00417.75
8.1.20.0000.00817.75
8.1.10.0070.00017.84
8.1.00.0040.00417.71
8.0.300.0030.00618.96
8.0.290.0000.00717.00
8.0.280.0030.00518.57
8.0.270.0030.00317.39
8.0.260.0000.00617.33
8.0.250.0030.00317.10
8.0.240.0060.00017.20
8.0.230.0070.00017.11
8.0.220.0000.00717.05
8.0.210.0070.00017.18
8.0.200.0000.00717.25
8.0.190.0040.00417.05
8.0.180.0050.00217.21
8.0.170.0000.00817.18
8.0.160.0040.00417.09
8.0.150.0030.00516.98
8.0.140.0040.00417.12
8.0.130.0050.00013.65
8.0.120.0050.00317.14
8.0.110.0060.00317.13
8.0.100.0040.00417.06
8.0.90.0000.00817.07
8.0.80.0160.00617.15
8.0.70.0040.00417.11
8.0.60.0000.00716.97
8.0.50.0050.00217.13
8.0.30.0100.00917.42
8.0.20.0120.00717.40
8.0.10.0030.00417.14
8.0.00.0060.01316.88
7.4.330.0050.00015.00
7.4.320.0030.00316.70
7.4.300.0030.00316.70
7.4.290.0030.00316.85
7.4.280.0020.00516.84
7.4.270.0040.00416.60
7.4.260.0050.00316.70
7.4.250.0000.00816.60
7.4.240.0040.00316.79
7.4.230.0030.00316.87
7.4.220.0090.00916.87
7.4.210.0130.00016.84
7.4.200.0030.00316.64
7.4.190.0000.00816.78
7.4.160.0060.01016.61
7.4.150.0120.00617.40
7.4.140.0180.00017.86
7.4.130.0130.00416.76
7.4.120.0090.00916.74
7.4.110.0100.00716.81
7.4.100.0090.00916.59
7.4.90.0080.00816.64
7.4.80.0070.01019.39
7.4.70.0070.01316.77
7.4.60.0180.00416.56
7.4.50.0030.00616.48
7.4.40.0090.00616.72
7.4.30.0100.00716.32
7.4.00.0030.01315.19
7.3.330.0060.00013.38
7.3.320.0050.00013.18
7.3.310.0000.00816.58
7.3.300.0070.00016.41
7.3.290.0100.00916.50
7.3.280.0110.00616.45
7.3.270.0070.01017.40
7.3.260.0110.01116.72
7.3.250.0080.00916.53
7.3.240.0090.00916.55
7.3.230.0180.00016.78
7.3.210.0030.01316.44
7.3.200.0100.00619.39
7.3.190.0170.00016.68
7.3.180.0060.00916.71
7.3.170.0110.00516.74
7.3.160.0070.01016.68
7.3.120.0040.00815.22
7.3.00.0000.01516.90
7.2.330.0070.01016.82
7.2.320.0130.00316.66
7.2.310.0140.00316.79
7.2.300.0110.00616.75
7.2.290.0060.01616.64
7.2.130.0070.00717.08
7.2.120.0060.01017.20
7.2.110.0040.00717.27
7.2.100.0030.00617.04
7.2.90.0070.01317.27
7.2.80.0100.00317.18
7.2.70.0140.00717.14
7.2.60.0090.00516.97
7.2.50.0000.01317.04
7.2.40.0030.01017.07
7.2.30.0110.00717.00
7.2.20.0100.00617.19
7.2.10.0100.00717.10
7.2.00.0050.01218.34
7.1.250.0040.01116.13
7.1.240.0070.00716.04
7.1.230.0100.00315.91
7.1.220.0130.00016.03
7.1.210.0050.00815.95
7.1.200.0060.00315.96
7.1.190.0030.01016.13
7.1.180.0060.00615.93
7.1.170.0000.00916.15
7.1.160.0090.00616.03
7.1.150.0000.01716.14
7.1.140.0060.00815.81
7.1.130.0000.01315.64
7.1.120.0150.00415.95
7.1.110.0000.01415.99
7.1.100.0090.00417.20
7.1.90.0050.01015.98
7.1.80.0000.01316.15
7.1.70.0070.01316.70
7.1.60.0130.00817.86
7.1.50.0110.01216.60
7.1.40.0170.00015.75
7.1.30.0110.00716.10
7.1.20.0150.00315.94
7.1.10.0120.00615.89
7.1.00.0090.04019.07
7.0.330.0000.01015.72
7.0.320.0130.00015.52
7.0.310.0090.01215.62
7.0.300.0060.00915.78
7.0.290.0150.00015.45
7.0.280.0120.00315.36
7.0.270.0120.00615.59
7.0.260.0100.00715.61
7.0.250.0030.01215.54
7.0.240.0070.00415.57
7.0.230.0070.00715.51
7.0.220.0100.00715.56
7.0.210.0130.00315.60
7.0.200.0090.00816.23
7.0.190.0110.00715.61
7.0.180.0170.00315.59
7.0.170.0120.00915.60
7.0.160.0110.00715.61
7.0.150.0100.01015.57
7.0.140.0050.04118.87
7.0.130.0120.00615.79
7.0.120.0080.01215.51
7.0.110.0090.00615.68
7.0.100.0030.02617.85
7.0.90.0060.02517.79
7.0.80.0060.02517.73
7.0.70.0050.02017.65
7.0.60.0090.02017.83
7.0.50.0170.01818.10
7.0.40.0070.02216.79
7.0.30.0060.04716.90
7.0.20.0030.03316.81
7.0.10.0110.04516.88
7.0.00.0050.04816.79
5.6.380.0070.00714.68
5.6.370.0060.00614.21
5.6.360.0060.00614.48
5.6.350.0070.00714.45
5.6.340.0070.00714.53
5.6.330.0060.00914.30
5.6.320.0030.01214.62
5.6.310.0060.00614.01
5.6.300.0110.00414.28
5.6.290.0000.01414.30
5.6.280.0070.03717.75
5.6.270.0080.00414.54
5.6.260.0040.01114.42
5.6.250.0070.01817.65
5.6.240.0020.03117.55
5.6.230.0110.02017.55
5.6.220.0110.02217.64
5.6.210.0070.02217.63
5.6.200.0070.03517.75
5.6.190.0170.03717.64
5.6.180.0090.04017.90
5.6.170.0100.04917.69
5.6.160.0070.04817.88
5.6.150.0070.03317.58
5.6.140.0050.03217.76
5.6.130.0050.03017.79
5.6.120.0060.03717.83
5.6.110.0070.05517.65
5.6.100.0070.04817.78
5.6.90.0060.05117.81
5.6.80.0060.04617.38
5.6.70.0070.04317.22
5.6.60.0030.04017.59
5.6.50.0090.04217.49
5.6.40.0080.02217.45
5.6.30.0090.04217.54
5.6.20.0100.04017.39
5.6.10.0080.04017.35
5.6.00.0080.03917.42
5.5.380.0060.02315.78
5.5.370.0020.02915.73
5.5.360.0050.02015.80
5.5.350.0080.02115.84
5.5.340.0080.03516.18
5.5.330.0030.04316.09
5.5.320.0130.03516.12
5.5.310.0100.04016.11
5.5.300.0030.04616.02
5.5.290.0050.04316.03
5.5.280.0030.04416.07
5.5.270.0040.03716.13
5.5.260.0070.03515.93
5.5.250.0090.02516.03
5.5.240.0050.04115.54
5.5.230.0080.03115.63
5.5.220.0030.04415.57
5.5.210.0060.02315.63
5.5.200.0060.04215.72
5.5.190.0070.04415.52
5.5.180.0030.02815.62
5.5.170.0060.00611.21
5.5.160.0100.04115.70
5.5.150.0030.04915.73
5.5.140.0080.03615.77
5.5.130.0060.04215.69
5.5.120.0100.03915.61
5.5.110.0080.04015.62
5.5.100.0060.04815.71
5.5.90.0040.03115.56
5.5.80.0050.03815.73
5.5.70.0090.03815.61
5.5.60.0100.03815.59
5.5.50.0090.03215.71
5.5.40.0140.03215.57
5.5.30.0070.03715.61
5.5.20.0100.03215.67
5.5.10.0080.03515.64
5.5.00.0020.02915.59
5.4.450.0050.03415.34
5.4.440.0070.03515.22
5.4.430.0100.02315.13
5.4.420.0090.03715.35
5.4.410.0110.03215.18
5.4.400.0050.04015.14
5.4.390.0100.03915.17
5.4.380.0080.03815.02
5.4.370.0090.04015.12
5.4.360.0130.02415.03
5.4.350.0070.04514.97
5.4.340.0080.04014.95
5.4.330.0070.00011.00
5.4.320.0040.03215.04
5.4.310.0050.02314.89
5.4.300.0090.03315.04
5.4.290.0080.03815.08
5.4.280.0080.03614.95
5.4.270.0090.03415.04
5.4.260.0140.03215.03
5.4.250.0000.04715.18
5.4.240.0070.03514.91
5.4.230.0020.03015.28
5.4.220.0050.03415.12
5.4.210.0060.02615.13
5.4.200.0100.03215.12
5.4.190.0090.03515.12
5.4.180.0100.03815.12
5.4.170.0050.04015.26
5.4.160.0030.02815.10
5.4.150.0090.03715.18
5.4.140.0130.03713.66
5.4.130.0090.02313.67
5.4.120.0090.02313.73
5.4.110.0060.02813.77
5.4.100.0050.04013.74
5.4.90.0060.03913.71
5.4.80.0120.03213.80
5.4.70.0060.03913.81
5.4.60.0080.04013.73
5.4.50.0060.04013.71
5.4.40.0110.03613.74
5.4.30.0100.02013.82
5.4.20.0050.03313.74
5.4.10.0030.03713.68
5.4.00.0080.02913.55
5.3.290.0030.04612.82
5.3.280.0140.03312.75
5.3.270.0030.04212.77
5.3.260.0050.04012.78
5.3.250.0090.03612.80
5.3.240.0020.03412.73
5.3.230.0010.04312.77
5.3.220.0100.02312.74
5.3.210.0050.02212.69
5.3.200.0080.04112.78
5.3.190.0050.02512.77
5.3.180.0050.04012.78
5.3.170.0070.03512.78
5.3.160.0050.04012.77
5.3.150.0070.04012.76
5.3.140.0060.03012.70
5.3.130.0100.03512.77
5.3.120.0100.03212.78
5.3.110.0030.04112.73
5.3.100.0070.02812.51
5.3.90.0050.04112.49
5.3.80.0100.02012.50
5.3.70.0080.03412.50
5.3.60.0020.04312.51
5.3.50.0070.03512.40
5.3.40.0050.02512.41
5.3.30.0070.03312.46
5.3.20.0060.04012.33
5.3.10.0070.03712.26
5.3.00.0070.02212.30
5.2.170.0080.02511.11
5.2.160.0050.03510.98
5.2.150.0070.02910.99
5.2.140.0050.03211.11
5.2.130.0060.02811.07
5.2.120.0050.01810.97
5.2.110.0060.03011.05
5.2.100.0020.03911.03
5.2.90.0090.02510.98
5.2.80.0070.03210.96
5.2.70.0040.02811.06
5.2.60.0040.03311.03
5.2.50.0030.02711.03
5.2.40.0030.02310.91
5.2.30.0000.02210.97
5.2.20.0030.03311.00
5.2.10.0070.02810.96
5.2.00.0020.03610.90
5.1.60.0020.02910.90
5.1.50.0020.02710.90
5.1.40.0070.01210.90
5.1.30.0020.02310.90
5.1.20.0050.02010.90
5.1.10.0030.01510.90
5.1.00.0000.02410.90
5.0.50.0050.01210.90
5.0.40.0000.02510.90
5.0.30.0010.02010.90
5.0.20.0030.02310.90
5.0.10.0050.01810.90
5.0.00.0020.03210.90
4.4.90.0020.01310.90
4.4.80.0050.01510.90
4.4.70.0040.01810.90
4.4.60.0000.01710.90
4.4.50.0020.01610.90
4.4.40.0020.02510.90
4.4.30.0030.01910.90
4.4.20.0030.01010.90
4.4.10.0030.00810.90
4.4.00.0020.02410.90
4.3.110.0030.01010.90
4.3.100.0020.01810.90
4.3.90.0020.00810.90
4.3.80.0000.01710.90
4.3.70.0000.02010.90
4.3.60.0030.01210.90
4.3.50.0010.01110.90
4.3.40.0030.02510.90
4.3.30.0030.01710.90
4.3.20.0000.02110.90
4.3.10.0030.02110.90
4.3.00.0000.01910.90

preferences:
52.3 ms | 400 KiB | 5 Q