3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today_day = 28; $day = date("d-m-Y", mktime(0,0,0,2, $today_day,date("Y"))); $firstday = $day; $data_exploded=explode("-", $firstday); $mes = $data_exploded[1]; $ano = $data_exploded[2]; echo "firstday=$firstday\n"; echo "m=".$mes . " | Y=" . $ano."\n"; echo $day ."\n"; $today_day++; $day = date("d-m-Y", mktime(0,0,0,$mes,$today_day,$ano)); echo "m=".$mes . " | Y=" . $ano."\n"; echo $day ."\n"; $today_day++; $day = date("d-m-Y", mktime(0,0,0,$mes,$today_day,$ano)); echo $day ."\n"; ?>

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.60.0110.00316.50
8.3.50.0120.01317.22
8.3.40.0160.00318.96
8.3.30.0120.00318.88
8.3.20.0040.00418.63
8.3.10.0030.00619.04
8.3.00.0000.00919.63
8.2.180.0110.00718.66
8.2.170.0110.00422.96
8.2.160.0070.01120.70
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0030.00520.90
8.2.110.0070.00321.10
8.2.100.0040.00719.57
8.2.90.0040.00418.03
8.2.80.0050.00317.97
8.2.70.0080.00018.05
8.2.60.0020.00518.34
8.2.50.0050.00318.10
8.2.40.0040.00422.18
8.2.30.0030.00519.38
8.2.20.0030.00617.64
8.2.10.0000.00717.68
8.2.00.0000.00717.82
8.1.280.0140.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0100.00322.80
8.1.220.0080.00017.79
8.1.210.0080.00019.03
8.1.200.0060.00317.48
8.1.190.0110.00017.23
8.1.180.0050.00518.10
8.1.170.0000.00818.64
8.1.160.0030.00518.97
8.1.150.0040.00419.03
8.1.140.0070.00017.56
8.1.130.0030.00517.63
8.1.120.0040.00417.54
8.1.110.0050.00317.50
8.1.100.0070.00017.48
8.1.90.0000.00717.64
8.1.80.0040.00417.49
8.1.70.0000.00717.57
8.1.60.0030.00617.68
8.1.50.0020.00517.54
8.1.40.0050.00517.56
8.1.30.0000.00917.63
8.1.20.0030.00617.61
8.1.10.0000.00817.59
8.1.00.0060.00317.54
8.0.300.0030.00319.73
8.0.290.0000.00816.75
8.0.280.0070.00018.53
8.0.270.0040.00417.26
8.0.260.0030.00318.64
8.0.250.0000.00817.08
8.0.240.0030.00317.01
8.0.230.0040.00416.99
8.0.220.0030.00317.03
8.0.210.0050.00317.00
8.0.200.0000.00617.10
8.0.190.0080.00017.17
8.0.180.0050.00517.02
8.0.170.0070.00317.01
8.0.160.0000.00717.07
8.0.150.0000.00716.87
8.0.140.0050.00316.96
8.0.130.0050.00013.43
8.0.120.0050.00517.03
8.0.110.0000.00816.89
8.0.100.0040.00417.02
8.0.90.0070.00016.86
8.0.80.0070.01017.03
8.0.70.0040.00417.10
8.0.60.0000.00816.98
8.0.50.0000.00816.89
8.0.30.0100.00717.00
8.0.20.0110.00817.28
8.0.10.0040.00416.95
8.0.00.0130.00816.96
7.4.330.0000.00713.08
7.4.320.0030.00316.54
7.4.300.0000.00616.70
7.4.290.0000.00716.57
7.4.280.0050.00316.63
7.4.270.0000.00716.71
7.4.260.0000.00713.18
7.4.250.0000.00816.63
7.4.240.0000.00716.64
7.4.230.0040.00416.36
7.4.220.0070.01016.61
7.4.210.0080.01216.61
7.4.200.0000.00816.67
7.4.190.0000.00716.71
7.4.160.0150.00016.41
7.4.150.0070.01016.66
7.4.140.0120.01417.86
7.4.130.0160.01016.63
7.4.120.0070.01016.54
7.4.110.0060.01216.54
7.4.100.0100.00716.49
7.4.90.0120.00616.78
7.4.80.0170.00319.39
7.4.70.0090.00916.62
7.4.60.0110.00616.70
7.4.50.0000.00616.38
7.4.40.0040.00816.52
7.4.30.0090.00916.59
7.4.00.0090.00615.21
7.3.330.0000.00613.31
7.3.320.0030.00313.14
7.3.310.0030.00316.23
7.3.300.0000.00616.39
7.3.290.0060.00916.44
7.3.280.0120.00916.38
7.3.270.0070.01016.63
7.3.260.0120.00616.67
7.3.240.0140.00716.70
7.3.230.0130.00316.57
7.3.210.0030.01416.45
7.3.200.0000.01716.46
7.3.190.0120.00416.51
7.3.180.0090.00616.60
7.3.170.0080.00816.61
7.3.160.0090.00616.81
7.3.120.0080.00714.96
7.3.110.0070.01114.65
7.3.100.0060.01215.20
7.3.90.0070.01014.86
7.3.80.0060.00914.95
7.3.70.0060.01014.97
7.3.60.0030.01015.02
7.3.50.0070.01015.05
7.3.40.0130.00014.98
7.3.30.0070.00714.69
7.3.20.0030.01016.59
7.3.10.0030.00916.64
7.3.00.0090.00516.67
7.2.330.0120.00616.46
7.2.320.0090.00916.55
7.2.310.0190.00317.11
7.2.300.0170.00716.49
7.2.290.0070.01016.66
7.2.250.0040.01415.14
7.2.240.0140.00715.42
7.2.230.0120.00315.31
7.2.220.0030.01415.13
7.2.210.0070.00715.19
7.2.200.0000.00915.32
7.2.190.0000.01415.27
7.2.180.0030.00715.43
7.2.170.0090.00315.19
7.2.130.0070.01016.92
7.2.120.0030.01216.79
7.2.110.0070.01116.72
7.2.100.0090.00316.81
7.2.90.0090.00516.63
7.2.80.0030.00916.98
7.2.70.0030.01016.94
7.2.60.0190.00416.77
7.2.50.0100.00717.00
7.2.40.0070.00716.89
7.2.30.0110.00716.96
7.2.20.0000.01216.60
7.2.10.0070.00716.97
7.2.00.0050.00918.23
7.1.330.0070.01015.99
7.1.320.0040.00816.03
7.1.310.0070.00315.75
7.1.300.0110.00415.96
7.1.290.0000.01115.92
7.1.280.0070.00715.91
7.1.270.0060.00615.55
7.1.260.0030.01015.97
7.1.250.0070.00215.81
7.1.100.0100.00318.16
7.1.70.0050.00217.30
7.1.60.0160.00719.25
7.1.50.0030.02116.93
7.1.00.0000.03722.40
7.0.200.0030.00516.98
7.0.140.0000.07722.00
7.0.120.0000.07722.03
7.0.110.0670.06719.87
7.0.100.0700.07319.96
7.0.90.0370.07019.98
7.0.80.0430.04319.87
7.0.70.0700.04720.02
7.0.60.0600.07720.02
7.0.50.0600.04720.35
7.0.40.0130.07320.19
7.0.30.0070.08019.96
7.0.20.0100.08320.25
7.0.10.0130.08020.15
7.0.00.0030.08720.23
5.6.280.0000.07320.81
5.6.260.0030.08320.66
5.6.250.0170.07320.89
5.6.240.0130.06720.70
5.6.230.0070.07720.56
5.6.220.0070.07720.63
5.6.210.0100.03720.39
5.6.200.0100.07721.05
5.6.190.0070.08321.22
5.6.180.0030.08321.03
5.6.170.0070.06721.08
5.6.160.0100.08321.19
5.6.150.0070.08721.14
5.6.140.0230.06021.14
5.6.130.0100.08021.14
5.6.120.0130.07721.14
5.6.110.0130.07720.90
5.6.100.0100.08020.98
5.6.90.0100.07321.20
5.6.80.0070.06720.50
5.6.70.0070.08020.43
5.6.60.0070.08020.30
5.6.50.0100.08020.38
5.6.40.0170.03720.29
5.6.30.0070.07020.51
5.6.20.0030.04020.43
5.6.10.0030.05720.50
5.6.00.0030.04020.61
5.5.380.0100.05720.53
5.5.370.0030.04320.26
5.5.360.0100.07720.40
5.5.350.0070.05720.41
5.5.340.0100.04720.91
5.5.330.0130.06320.91
5.5.320.0030.07020.82
5.5.310.0100.07020.97
5.5.300.0100.07720.70
5.5.290.0100.07720.77
5.5.280.0070.08720.91
5.5.270.0030.09020.86
5.5.260.0070.08020.94
5.5.250.0100.07320.67
5.5.240.0070.07720.09
5.5.230.0070.08020.27
5.5.220.0130.07720.27
5.5.210.0070.06020.22
5.5.200.0130.04020.05
5.5.190.0030.04720.11
5.5.180.0100.04720.16
5.5.160.0070.03720.29
5.5.150.0070.03720.05
5.5.140.0030.04020.11
5.5.130.0000.04320.30
5.5.120.0000.04020.34
5.5.110.0100.04020.25
5.5.100.0070.04020.14
5.5.90.0130.03320.23
5.5.80.0030.03720.25
5.5.70.0000.04320.02
5.5.60.0070.03720.03
5.5.50.0070.06320.01
5.5.40.0100.03320.24
5.5.30.0100.04720.19
5.5.20.0030.04020.03
5.5.10.0030.04020.02
5.5.00.0070.06320.09
5.4.450.0070.08019.40
5.4.440.0100.07719.59
5.4.430.0130.06719.48
5.4.420.0170.07019.45
5.4.410.0070.05019.18
5.4.400.0030.08319.03
5.4.390.0070.07318.95
5.4.380.0130.07318.93
5.4.370.0130.06719.02
5.4.360.0130.08019.00
5.4.350.0070.03318.95
5.4.340.0100.04319.07
5.4.320.0000.04018.95
5.4.310.0100.03019.01
5.4.300.0030.03719.00
5.4.290.0000.04019.27
5.4.280.0100.03718.94
5.4.270.0000.04019.04
5.4.260.0170.02319.00
5.4.250.0070.03319.02
5.4.240.0070.03319.02
5.4.230.0100.03319.16
5.4.220.0030.04018.98
5.4.210.0070.03318.98
5.4.200.0070.06719.07
5.4.190.0000.05019.26
5.4.180.0030.05319.26
5.4.170.0070.03318.92
5.4.160.0000.04318.91
5.4.150.0070.03719.22
5.4.140.0000.03716.23
5.4.130.0030.03716.23
5.4.120.0070.03316.23
5.4.110.0070.03716.29
5.4.100.0070.06316.43
5.4.90.0070.03316.58
5.4.80.0100.02716.52
5.4.70.0000.03716.32
5.4.60.0070.04016.27
5.4.50.0100.03316.47
5.4.40.0000.04016.26
5.4.30.0070.03716.43
5.4.20.0000.04016.34
5.4.10.0030.04016.37
5.4.00.0130.02715.74
5.3.290.0030.04714.56
5.3.280.0100.06314.48
5.3.270.0070.03714.45
5.3.260.0000.04014.54
5.3.250.0000.04714.71
5.3.240.0030.04014.50
5.3.230.0070.03714.55
5.3.220.0070.03714.45
5.3.210.0030.03714.64
5.3.200.0070.04014.59
5.3.190.0000.04014.59
5.3.180.0030.04714.58
5.3.170.0000.04014.67
5.3.160.0000.04014.51
5.3.150.0030.03714.61
5.3.140.0070.06314.36
5.3.130.0070.03714.50
5.3.120.0030.03714.65
5.3.110.0070.03314.38
5.3.100.0000.04714.11
5.3.90.0000.04013.93
5.3.80.0000.04013.92
5.3.70.0130.03013.92
5.3.60.0100.04014.02
5.3.50.0000.04013.82
5.3.40.0170.02713.89
5.3.30.0030.07313.98
5.3.20.0100.06713.56
5.3.10.0000.06013.76
5.3.00.0170.06013.59
5.2.170.0000.03313.19
5.2.160.0070.05013.19
5.2.150.0070.06313.19
5.2.140.0070.04313.19
5.2.130.0030.06013.19
5.2.120.0030.05713.19
5.2.110.0070.05013.19
5.2.100.0070.03313.19
5.2.90.0030.03013.19
5.2.80.0070.06013.19
5.2.70.0030.02713.19
5.2.60.0070.04013.19
5.2.50.0100.05713.19
5.2.40.0130.05013.19
5.2.30.0070.06013.19
5.2.20.0070.06013.19
5.2.10.0070.05713.19
5.2.00.0030.05013.19
5.1.60.0070.04713.19
5.1.50.0030.04713.19
5.1.40.0030.05313.19
5.1.30.0070.02013.19
5.1.20.0030.04713.19
5.1.10.0030.05313.19
5.1.00.0030.05713.19
5.0.50.0070.04313.19
5.0.40.0000.04013.19
5.0.30.0030.06313.19
5.0.20.0070.04313.19
5.0.10.0030.03313.19
5.0.00.0000.06313.19
4.4.90.0070.03013.19
4.4.80.0000.04013.19
4.4.70.0000.04013.19
4.4.60.0070.02713.19
4.4.50.0070.02313.19
4.4.40.0000.02313.19
4.4.30.0000.02013.19
4.4.20.0000.03713.19
4.4.10.0030.03313.19
4.4.00.0070.03713.19
4.3.110.0070.01313.19
4.3.100.0000.03713.19
4.3.90.0030.03313.19
4.3.80.0000.05713.19
4.3.70.0000.03713.19
4.3.60.0030.03713.19
4.3.50.0030.03313.19
4.3.40.0000.04713.19
4.3.30.0000.03013.19
4.3.20.0000.03713.19
4.3.10.0000.02713.19
4.3.00.0030.03313.19

preferences:
65.48 ms | 400 KiB | 5 Q