3v4l.org

run code in 300+ PHP versions simultaneously
<?php $anoA = 2014; $mobile = array(); //calc passover day $a= $anoA%19; $b = $anoA%4; $c = $anoA%7; $d = (19*$a + 24)%30; $e = (2*$b + 4*$c + 6*$d + 5)%7; if(($d+$e) > 9){ $day = $d+($e-9); $month = 4; //Case passover in April } else{ $day = $d+$e+22; $month = 3; //Case passover in Mrch } $date = new DateTime("$anoA-$month-$day"); $passover = $date->format("Y-m-d"); //Date of passover $date->modify("-47 day"); //Date of canirval $carnival = $date->format("Y-m-d"); $date->modify("+47 day"); /* $date->modify("-46 day"); //cinzas $cinzas = $date->format("Y-m-d"); $date->modify("+46 day"); */ /* $date->modify("-7 day"); //ramos $ramos = $date->format("Y-m-d"); $date->modify("+7 day"); */ $date->modify("-2 day"); //sexta santa $sextaSanta = $date->format("Y-m-d"); $date->modify("+2 day"); /* $date->modify("+39 day"); //ascencao $ascencao = $date->format("Y-m-d"); $date->modify("-39 day"); $date->modify("+49 day"); //pentecoste $pentecoste = $date->format("Y-m-d"); $date->modify("-49 day"); $date->modify("+56 day"); //santissima trindade $santissimaTrindade = $date->format("Y-m-d"); $date->modify("-56 day"); $date->modify("+60 day"); //corpo de cristo $corpoCristo = $date->format("Y-m-d"); $date->modify("-60 day"); */ $i = 0; /*$this->countryHolidays[$i]['description'] = $mod_strings["LBL_CINZAS"]; $this->countryHolidays[$i++]['date'] = $cinzas; $this->countryHolidays[$i]['description'] = $mod_strings["LBL_RAMOS"]; $this->countryHolidays[$i++]['date'] = $ramos;. */ /* $this->countryHolidays[$i]['description'] = $mod_strings["LBL_PASSOVER"]; $this->countryHolidays[$i++]['date'] = $passover; $this->countryHolidays[$i]['description'] = $mod_strings["LBL_CARNAVAL"]; $this->countryHolidays[$i++]['date'] = $carnival; $this->countryHolidays[$i]['description'] = $mod_strings["LBL_SEXTAFEIRASANTA"]; $this->countryHolidays[$i++]['date'] = $sextaSanta; */ /*$this->countryHolidays[$i]['description'] = $mod_strings["LBL_ASCENCAO"]; $this->countryHolidays[$i++]['date'] = $ascencao; $this->countryHolidays[$i]['description'] = $mod_strings["LBL_PENTECOSTE"]; $this->countryHolidays[$i++]['date'] = $pentecoste; $this->countryHolidays[$i]['description'] = $mod_strings["LBL_SANTISSIMATRINDADE"]; $this->countryHolidays[$i++]['date'] = $santissimaTrindade; $this->countryHolidays[$i]['description'] = $mod_strings["LBL_CORPODECRISTO"]; $this->countryHolidays[$i++]['date'] = $corpoCristo; */ //add mobile days $_SESSION['country_holidays'] = $this->countryHolidays; //array_push($mobile, $passover, $carnival, $cinzas, $ramos, $sextaSanta, $ascencao, $pentecoste, $santissimaTrindade, $corpoCristo); //remover feriados fixos //array_push($mobile, $passover, $carnival, $sextaSanta); //return $mobile; print_r($mobile); ?>

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.0090.00618.36
8.3.50.0070.01022.11
8.3.40.0150.00019.21
8.3.30.0070.00719.04
8.3.20.0080.00020.21
8.3.10.0040.00421.75
8.3.00.0090.00022.27
8.2.180.0070.01416.88
8.2.170.0120.00322.96
8.2.160.0070.00719.33
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0110.00821.00
8.2.110.0040.00722.13
8.2.100.0000.01218.03
8.2.90.0030.00619.30
8.2.80.0000.00817.97
8.2.70.0060.00317.88
8.2.60.0000.00817.93
8.2.50.0050.00518.07
8.2.40.0060.00318.35
8.2.30.0000.00718.21
8.2.20.0040.00417.99
8.2.10.0060.00318.20
8.2.00.0040.00418.12
8.1.280.0110.00725.92
8.1.270.0000.00722.24
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.95
8.1.230.0030.00722.11
8.1.220.0040.00417.91
8.1.210.0080.00018.77
8.1.200.0030.00617.61
8.1.190.0030.00617.60
8.1.180.0040.00418.10
8.1.170.0000.00818.67
8.1.160.0000.00819.02
8.1.150.0050.00320.07
8.1.140.0050.00317.59
8.1.130.0030.00517.96
8.1.120.0000.00717.72
8.1.110.0060.00317.64
8.1.100.0040.00417.67
8.1.90.0040.00417.72
8.1.80.0000.00717.70
8.1.70.0030.00517.62
8.1.60.0030.00617.79
8.1.50.0030.00517.75
8.1.40.0040.00417.75
8.1.30.0080.00017.68
8.1.20.0080.00017.80
8.1.10.0040.00417.68
8.1.00.0060.00317.78
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0040.00418.64
8.0.270.0070.00017.43
8.0.260.0030.00317.16
8.0.250.0030.00317.32
8.0.240.0000.00817.32
8.0.230.0000.00717.32
8.0.220.0030.00317.22
8.0.210.0030.00317.25
8.0.200.0030.00317.19
8.0.190.0040.00417.18
8.0.180.0030.00617.14
8.0.170.0040.00417.19
8.0.160.0040.00417.23
8.0.150.0000.00717.28
8.0.140.0000.00817.06
8.0.130.0060.00013.61
8.0.120.0040.00417.25
8.0.110.0040.00417.23
8.0.100.0070.00017.20
8.0.90.0040.00417.05
8.0.80.0090.00617.27
8.0.70.0000.00817.18
8.0.60.0000.00717.11
8.0.50.0040.00417.32
8.0.30.0150.00317.26
8.0.20.0110.01317.40
8.0.10.0040.00317.38
8.0.00.0130.00617.07
7.4.330.0000.00615.15
7.4.320.0000.00616.71
7.4.300.0000.00616.62
7.4.290.0030.00316.82
7.4.280.0000.00716.80
7.4.270.0030.00316.81
7.4.260.0030.00316.61
7.4.250.0050.00316.81
7.4.240.0060.00316.78
7.4.230.0070.00016.63
7.4.220.0030.01216.71
7.4.210.0060.00816.73
7.4.200.0000.00716.52
7.4.190.0030.00416.86
7.4.160.0080.00816.67
7.4.150.0080.01217.40
7.4.140.0070.01417.86
7.4.130.0090.01416.86
7.4.120.0120.00816.84
7.4.110.0060.01016.62
7.4.100.0070.01016.79
7.4.90.0070.01016.72
7.4.80.0100.00719.39
7.4.70.0090.00916.76
7.4.60.0130.00616.74
7.4.50.0000.00916.94
7.4.40.0040.01122.77
7.4.30.0070.01016.79
7.4.00.0000.01415.11
7.3.330.0000.00513.35
7.3.320.0030.00213.48
7.3.310.0030.00316.67
7.3.300.0070.00016.50
7.3.290.0100.00716.52
7.3.280.0070.01016.62
7.3.270.0080.01017.40
7.3.260.0100.00716.58
7.3.250.0090.00816.75
7.3.240.0030.01516.85
7.3.230.0100.00616.78
7.3.210.0110.00616.93
7.3.200.0060.00919.39
7.3.190.0090.00816.73
7.3.180.0090.00616.80
7.3.170.0070.01016.67
7.3.160.0090.00616.70
7.3.120.0070.01015.22
7.2.330.0170.00917.04
7.2.320.0080.01416.84
7.2.310.0150.00616.97
7.2.300.0170.00616.84
7.2.290.0000.01616.74
7.2.60.0210.00416.75
7.1.200.0060.00916.05
7.1.70.0040.00417.41
7.1.60.0070.01819.82
7.1.50.0040.01817.17
7.1.00.0000.08022.39
7.0.200.0040.00816.82
7.0.140.0000.07721.92
7.0.100.0100.04020.09
7.0.90.0100.08020.00
7.0.80.0070.07019.83
7.0.70.0100.07019.97
7.0.60.0070.08720.00
7.0.50.0070.06720.37
7.0.40.0070.07320.05
7.0.30.0070.07720.05
7.0.20.0030.07719.95
7.0.10.0130.07320.07
7.0.00.0100.08020.12
5.6.280.0070.07020.92
5.6.250.0130.08320.63
5.6.240.0030.07320.61
5.6.230.0030.08320.54
5.6.220.0100.08320.53
5.6.210.0030.08720.47
5.6.200.0100.08721.09
5.6.190.0030.08020.94
5.6.180.0070.08021.03
5.6.170.0100.04021.05
5.6.160.0100.08021.10
5.6.150.0100.07721.11
5.6.140.0030.08721.02
5.6.130.0130.03721.07
5.6.120.0000.08020.94
5.6.110.0130.07721.01
5.6.100.0030.08721.12
5.6.90.0130.08321.02
5.6.80.0070.08020.34
5.6.70.0070.07720.52
5.6.60.0070.06720.39
5.6.50.0030.05320.41
5.6.40.0030.08320.49
5.6.30.0000.08720.41
5.6.20.0100.08320.41
5.6.10.0070.07320.43
5.6.00.0030.08020.37
5.5.380.0100.07320.55
5.5.370.0030.09320.41
5.5.360.0130.07720.54
5.5.350.0100.04020.40
5.5.340.0030.05320.73
5.5.330.0100.08320.84
5.5.320.0030.09020.77
5.5.310.0100.03720.80
5.5.300.0100.06020.84
5.5.290.0070.09020.80
5.5.280.0030.08720.89
5.5.270.0100.07320.81
5.5.260.0130.05320.73
5.5.250.0070.08720.69
5.5.240.0030.07320.30
5.5.230.0100.08020.21
5.5.220.0100.06320.30
5.5.210.0000.06320.30
5.5.200.0030.08720.14
5.5.190.0070.07720.18
5.5.180.0170.07020.24
5.5.160.0170.06720.27
5.5.150.0170.06720.19
5.5.140.0170.05720.00
5.5.130.0170.06720.23
5.5.120.0070.07320.21
5.5.110.0070.07020.18
5.5.100.0070.08320.08
5.5.90.0070.07720.02
5.5.80.0100.06020.13
5.5.70.0100.06320.12
5.5.60.0130.07020.04
5.5.50.0070.08020.00
5.5.40.0100.07320.15
5.5.30.0170.06020.05
5.5.20.0070.08320.09
5.5.10.0030.08320.04
5.5.00.0130.06720.05
5.4.450.0130.06719.45
5.4.440.0130.08019.29
5.4.430.0070.07719.26
5.4.420.0030.09019.44
5.4.410.0170.07719.20
5.4.400.0130.07018.82
5.4.390.0100.07319.01
5.4.380.0170.06018.92
5.4.370.0030.07718.98
5.4.360.0070.07319.14
5.4.350.0070.07018.96
5.4.340.0170.06719.14
5.4.320.0130.06319.03
5.4.310.0030.08019.05
5.4.300.0270.04718.80
5.4.290.0130.06718.96
5.4.280.0070.06019.05
5.4.270.0070.07719.12
5.4.260.0130.03719.04
5.4.250.0170.07018.80
5.4.240.0100.06319.02
5.4.230.0170.06019.11
5.4.220.0030.08019.22
5.4.210.0130.07019.22
5.4.200.0100.06319.02
5.4.190.0070.04719.02
5.4.180.0100.06318.94
5.4.170.0100.08718.97
5.4.160.0100.07319.01
5.4.150.0100.07319.01
5.4.140.0130.06316.34
5.4.130.0030.07316.17
5.4.120.0100.07016.12
5.4.110.0130.06716.41
5.4.100.0100.06016.26
5.4.90.0070.07316.41
5.4.80.0030.07716.31
5.4.70.0070.04716.41
5.4.60.0070.07316.20
5.4.50.0030.08716.30
5.4.40.0070.06716.26
5.4.30.0100.06716.41
5.4.20.0070.03316.41
5.4.10.0130.06716.41
5.4.00.0170.06015.54
5.3.290.0070.07314.51
5.3.280.0130.05314.57
5.3.270.0130.06314.45
5.3.260.0100.07314.55
5.3.250.0070.05314.61
5.3.240.0100.06714.58
5.3.230.0100.07314.59
5.3.220.0130.07014.57
5.3.210.0070.07714.56
5.3.200.0070.07714.44
5.3.190.0100.07314.59
5.3.180.0070.07014.56
5.3.170.0030.07314.55
5.3.160.0070.07714.43
5.3.150.0070.05014.55
5.3.140.0130.07314.42
5.3.130.0100.07314.54
5.3.120.0030.05314.39
5.3.110.0070.07714.42
5.3.100.0100.05313.90
5.3.90.0030.07714.02
5.3.80.0100.07013.88
5.3.70.0070.07314.00
5.3.60.0130.07013.95
5.3.50.0100.07313.90
5.3.40.0130.06713.87
5.3.30.0030.06313.91
5.3.20.0130.06713.69
5.3.10.0070.04013.43
5.3.00.0130.06713.40
5.2.170.0030.06311.16
5.2.160.0070.06011.18
5.2.150.0100.04711.14
5.2.140.0030.03711.24
5.2.130.0100.05711.15
5.2.120.0070.05311.08
5.2.110.0030.05310.95
5.2.100.0100.05710.95
5.2.90.0000.06011.06
5.2.80.0030.06311.15
5.2.70.0070.06010.97
5.2.60.0030.05311.06
5.2.50.0070.04710.98
5.2.40.0030.06710.86
5.2.30.0030.03310.98
5.2.20.0070.06310.97
5.2.10.0000.06310.93
5.2.00.0070.03710.67
5.1.60.0000.05310.49
5.1.50.0070.04710.49
5.1.40.0100.04310.49
5.1.30.0100.05010.49
5.1.20.0030.06010.49
5.1.10.0070.05310.49
5.1.00.0100.02710.49
5.0.50.0000.04010.49
5.0.40.0030.02310.49
5.0.30.0070.06310.49
5.0.20.0000.03710.49
5.0.10.0030.04010.49
5.0.00.0070.06310.49
4.4.90.0100.01010.49
4.4.80.0030.03010.49
4.4.70.0100.03310.49
4.4.60.0030.03010.49
4.4.50.0030.02310.49
4.4.40.0000.04010.49
4.4.30.0000.02310.49
4.4.20.0000.03710.49
4.4.10.0000.03710.49
4.4.00.0070.04710.49
4.3.110.0030.03310.49
4.3.100.0000.03710.49
4.3.90.0000.04010.49
4.3.80.0000.05710.49
4.3.70.0030.03310.49
4.3.60.0030.03310.49
4.3.50.0000.03710.49
4.3.40.0000.05310.49
4.3.30.0070.03010.49
4.3.20.0000.03710.49
4.3.10.0070.03310.49
4.3.00.0030.03010.49

preferences:
43.72 ms | 401 KiB | 5 Q