3v4l.org

run code in 300+ PHP versions simultaneously
<?php //the dutch date $dutch_date = "donderdag 27 maart 2014 00:30"; //split it in usable parts $converted_date = array(); $pattern = "#(?P<day_of_the_week>\w+)\ (?P<day>\d+)\ (?P<month>\w+)\ (?P<year>\d+)\ (?P<hour>\d+):(?P<minute>\d+)#s"; preg_match($pattern,$dutch_date, $converted_date); //create the empty date, we'll store our date in this variable in "D, d F Y H:i:s GMT" format $date = ""; //create the "D, "-part $daymap = array("maandag" => "Mon", "dinsdag"=>"Tue", "woensdag"=>"Wed", "donderdag"=>"Thu", "vrijdag"=>"Fri", "zaterdag"=>"Sat", "zondag"=>"Sun"); $date .= $daymap[$converted_date["day_of_the_week"]].", "; //create the "d " part $date .= $converted_date["day"]. " "; //create the "F " part $datemap = array("januari"=>"Jan", "februari"=>"Feb", "maart"=>"Mar", "april"=>"Apr", "mei"=>"May", "juni"=>"Jun", "juli"=>"Jul", "augustus"=>"Aug", "september"=>"Sep", "oktober"=>"Okt", "november"=>"Nov", "december"=>"Dec"); $date .= $datemap[$converted_date["month"]]. " "; //create the "Y " part $date .= $converted_date["year"] . " "; //create the "H:" part if ($converted_date["hour"] == "00"){ $converted_date["hour"] = "23"; } elseif ($converted_date["hour"] == "10"){ $converted_date["hour"] = "09"; } elseif ($converted_date["hour"] == "20"){ $converted_date["hour"] = "19"; } else{ $converted_date["hour"] = substr($converted_date["hour"], 0, 1).(substr($converted_date["hour"], 0, 1) - 1); } $date .= $converted_date["hour"] . ":"; //create the "i:s" part $date .= $converted_date["minute"] .":00 GMT"; echo $date; ?>

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.0150.00318.43
8.3.50.0130.00722.11
8.3.40.0090.00619.09
8.3.30.0120.00319.12
8.3.20.0080.00020.16
8.3.10.0040.00422.14
8.3.00.0080.00022.45
8.2.180.0140.00717.00
8.2.170.0140.00022.96
8.2.160.0000.01320.60
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.01026.16
8.2.120.0030.00519.73
8.2.110.0000.00922.21
8.2.100.0060.00619.89
8.2.90.0080.00019.32
8.2.80.0000.00918.18
8.2.70.0050.00518.00
8.2.60.0040.00417.90
8.2.50.0040.00418.07
8.2.40.0030.00518.28
8.2.30.0000.00718.28
8.2.20.0030.00517.80
8.2.10.0000.00919.79
8.2.00.0040.00418.03
8.1.280.0130.01025.92
8.1.270.0030.00522.12
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00323.79
8.1.230.0090.00319.11
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0030.00617.60
8.1.190.0070.00017.53
8.1.180.0080.00018.10
8.1.170.0040.00418.71
8.1.160.0040.00422.02
8.1.150.0050.00218.82
8.1.140.0050.00217.60
8.1.130.0070.00017.86
8.1.120.0070.00017.59
8.1.110.0000.00717.66
8.1.100.0070.00017.64
8.1.90.0000.00717.64
8.1.80.0000.00717.59
8.1.70.0030.00317.64
8.1.60.0030.00617.79
8.1.50.0060.00317.71
8.1.40.0060.00317.56
8.1.30.0040.00417.84
8.1.20.0000.00817.84
8.1.10.0030.00617.71
8.1.00.0080.00017.74
8.0.300.0000.00818.77
8.0.290.0040.00417.30
8.0.280.0030.00318.44
8.0.270.0040.00417.32
8.0.260.0040.00416.86
8.0.250.0030.00317.16
8.0.240.0050.00517.05
8.0.230.0030.00517.07
8.0.220.0000.00817.00
8.0.210.0000.00717.08
8.0.200.0030.00317.00
8.0.190.0040.00417.04
8.0.180.0030.00517.18
8.0.170.0040.00417.15
8.0.160.0000.00717.14
8.0.150.0040.00317.09
8.0.140.0040.00416.98
8.0.130.0080.00013.56
8.0.120.0080.00016.98
8.0.110.0050.00317.09
8.0.100.0000.00716.96
8.0.90.0030.00517.12
8.0.80.0060.01317.18
8.0.70.0040.00416.97
8.0.60.0000.00817.16
8.0.50.0030.00517.13
8.0.30.0160.00317.30
8.0.20.0120.00617.41
8.0.10.0000.00817.00
8.0.00.0120.00616.90
7.4.330.0000.00515.17
7.4.320.0030.00316.88
7.4.300.0060.00016.76
7.4.290.0030.00316.63
7.4.280.0030.00316.69
7.4.270.0000.00716.78
7.4.260.0000.01216.66
7.4.250.0040.00416.76
7.4.240.0000.00716.73
7.4.230.0030.00516.80
7.4.220.0110.01116.90
7.4.210.0070.00716.81
7.4.200.0040.00416.87
7.4.190.0000.00816.76
7.4.160.0080.00816.70
7.4.150.0130.00417.40
7.4.140.0100.01017.86
7.4.130.0120.00716.70
7.4.120.0140.00316.81
7.4.110.0090.00916.79
7.4.100.0060.01316.73
7.4.90.0140.00416.74
7.4.80.0100.01019.39
7.4.70.0060.01116.81
7.4.60.0070.01016.71
7.4.50.0000.00916.83
7.4.40.0040.01122.77
7.4.30.0090.00616.74
7.4.10.0130.00715.21
7.4.00.0030.01315.18
7.3.330.0000.00613.22
7.3.320.0030.00313.35
7.3.310.0000.00716.59
7.3.300.0070.00016.51
7.3.290.0030.01016.48
7.3.280.0090.00716.51
7.3.270.0040.01317.40
7.3.260.0130.01016.72
7.3.250.0120.00516.73
7.3.240.0090.00916.55
7.3.230.0120.00616.70
7.3.210.0040.01416.53
7.3.200.0060.01019.39
7.3.190.0080.01216.47
7.3.180.0080.00816.52
7.3.170.0120.00416.82
7.3.160.0090.00616.62
7.3.130.0030.01415.07
7.3.120.0080.01014.99
7.3.110.0040.01814.79
7.3.100.0110.00415.10
7.3.90.0090.00615.23
7.3.80.0090.00614.81
7.3.70.0070.00714.96
7.3.60.0100.00614.90
7.3.50.0040.00915.02
7.3.40.0070.00714.98
7.3.30.0120.00015.02
7.3.20.0000.01416.76
7.3.10.0110.00916.40
7.3.00.0130.00316.61
7.2.330.0120.00616.93
7.2.320.0030.01716.67
7.2.310.0080.00816.79
7.2.300.0030.01316.92
7.2.290.0140.00716.70
7.2.260.0070.01415.03
7.2.250.0100.01015.21
7.2.240.0040.01115.26
7.2.230.0070.00715.33
7.2.220.0030.01215.35
7.2.210.0100.00015.27
7.2.200.0060.00315.34
7.2.190.0060.00915.08
7.2.180.0030.01015.17
7.2.170.0090.00615.28
7.2.160.0060.01015.18
7.2.150.0070.00717.11
7.2.140.0030.00716.85
7.2.130.0120.00816.90
7.2.120.0140.00516.96
7.2.110.0160.00916.79
7.2.100.0060.00916.79
7.2.90.0070.01216.83
7.2.80.0130.00817.03
7.2.70.0160.01016.69
7.2.60.0120.00816.68
7.2.50.0220.00816.78
7.2.40.0130.00716.97
7.2.30.0100.01216.79
7.2.20.0160.00616.83
7.2.10.0270.00317.05
7.2.00.0090.01017.74
7.1.330.0090.00316.02
7.1.320.0130.00716.00
7.1.310.0070.00716.02
7.1.300.0110.00415.70
7.1.290.0060.00615.83
7.1.280.0110.00315.82
7.1.270.0040.01115.73
7.1.260.0070.00316.07
7.1.250.0150.00215.83
7.1.240.0090.00315.83
7.1.230.0040.00416.11
7.1.220.0030.00815.93
7.1.210.0140.00015.71
7.1.200.0070.00816.00
7.1.190.0120.00315.91
7.1.180.0070.01015.92
7.1.170.0090.00615.92
7.1.160.0040.00915.84
7.1.150.0060.00615.85
7.1.140.0070.01015.76
7.1.130.0060.00915.75
7.1.120.0090.00615.70
7.1.110.0070.00715.86
7.1.100.0030.00717.07
7.1.90.0110.00315.70
7.1.80.0000.01316.15
7.1.70.0030.00816.40
7.1.60.0040.01216.79
7.1.50.0020.01616.59
7.1.40.0030.01015.84
7.1.30.0080.00616.00
7.1.20.0030.00615.97
7.1.10.0060.01015.67
7.1.00.0040.04219.16
7.0.330.0030.00815.56
7.0.320.0030.00715.39
7.0.310.0030.00915.33
7.0.300.0040.00415.34
7.0.290.0030.01015.62
7.0.280.0000.00915.07
7.0.270.0060.00815.41
7.0.260.0060.00315.54
7.0.250.0030.00915.28
7.0.240.0150.00015.42
7.0.230.0070.00715.41
7.0.220.0080.00815.62
7.0.210.0070.01115.45
7.0.200.0030.00716.21
7.0.190.0030.00515.48
7.0.180.0040.00415.63
7.0.170.0040.01115.40
7.0.160.0070.00715.55
7.0.150.0030.01015.41
7.0.140.0030.04018.79
7.0.130.0050.00515.53
7.0.120.0120.00315.54
7.0.110.0000.01215.42
7.0.100.0070.00715.44
7.0.90.0030.00915.24
7.0.80.0030.01015.52
7.0.70.0030.00615.36
7.0.60.0110.02417.64
7.0.50.0070.02616.67
7.0.40.0070.04516.87
7.0.30.0180.03816.83
7.0.20.0180.03716.95
7.0.10.0150.03216.93
7.0.00.0050.02316.70
5.6.400.0030.00714.55
5.6.390.0080.00414.68
5.6.380.0030.00714.17
5.6.370.0060.00614.26
5.6.360.0030.00914.01
5.6.350.0130.00314.30
5.6.340.0030.01314.55
5.6.330.0030.00614.42
5.6.320.0070.00714.53
5.6.310.0020.00814.55
5.6.300.0030.01314.59
5.6.290.0040.01214.50
5.6.280.0050.03817.66
5.6.270.0110.00014.43
5.6.260.0040.00814.12
5.6.250.0000.01414.05
5.6.240.0030.00614.48
5.6.230.0070.00714.20
5.6.220.0090.00414.32
5.6.210.0030.03117.55
5.6.200.0050.04516.46
5.6.190.0100.04317.45
5.6.180.0150.02717.45
5.6.170.0160.02717.34
5.6.160.0080.04617.29
5.6.150.0020.04316.26
5.6.140.0030.03516.30
5.6.130.0020.04416.17
5.6.120.0040.02617.81
5.6.110.0060.02617.82
5.6.100.0120.04017.79
5.6.90.0080.02817.80
5.6.80.0150.04117.46
5.6.70.0230.03517.16
5.6.60.0060.00614.38
5.6.50.0070.00414.37
5.6.40.0000.01414.64
5.6.30.0060.01214.46
5.6.20.0000.01014.60
5.6.10.0000.01514.24
5.6.00.0040.00414.57
5.5.380.0040.00814.20
5.5.370.0060.00614.38
5.5.360.0060.00614.82
5.5.350.0210.03817.60
5.5.340.0050.02716.15
5.5.330.0030.02617.01
5.5.320.0260.02517.42
5.5.310.0120.03917.34
5.5.300.0080.04416.14
5.5.290.0080.04316.04
5.5.280.0100.04217.61
5.5.270.0090.02417.74
5.5.260.0030.05017.45
5.5.250.0050.04517.49
5.5.240.0020.02617.17
5.5.230.0000.01514.14
5.5.220.0030.01014.26
5.5.210.0030.00614.25
5.5.200.0090.00614.22
5.5.190.0070.00414.17
5.5.180.0070.00414.39
5.5.170.0060.00614.48
5.5.160.0000.01014.43
5.5.150.0060.00914.55
5.5.140.0000.01414.28
5.5.130.0030.01014.31
5.5.120.0100.00614.24
5.5.110.0060.00614.14
5.5.100.0110.00414.30
5.5.90.0000.01314.38
5.5.80.0030.01314.47
5.5.70.0070.00714.54
5.5.60.0000.01414.16
5.5.50.0070.00714.50
5.5.40.0040.00814.39
5.5.30.0060.00614.66
5.5.20.0040.00714.14
5.5.10.0110.00414.25
5.5.00.0070.00714.45
5.4.450.0100.03315.53
5.4.440.0150.03215.57
5.4.430.0380.03315.36
5.4.420.0330.03215.53
5.4.410.0100.03215.24
5.4.400.0440.00115.19
5.4.390.0600.00215.16
5.4.380.0120.03315.04
5.4.370.0070.03115.15
5.4.360.0100.02715.03
5.4.350.0070.03015.13
5.4.340.0030.03415.13
5.4.330.0110.00011.57
5.4.320.0040.02112.02
5.4.310.0110.01712.02
5.4.300.0070.02512.02
5.4.290.0020.02812.02
5.4.280.0050.02211.97
5.4.270.0100.02615.29
5.4.260.0080.03015.15
5.4.250.0110.03115.15
5.4.240.0070.04215.23
5.4.230.0110.02815.17
5.4.220.0100.02715.18
5.4.210.0070.04215.12
5.4.200.0050.02815.24
5.4.190.0070.02915.17
5.4.180.0050.03215.16
5.4.170.0090.03215.23
5.4.160.0080.03215.17
5.4.150.0080.03015.30
5.4.140.0100.03514.03
5.4.130.0080.03913.91
5.4.120.0050.03013.92
5.4.110.0050.04013.99
5.4.100.0070.02913.95
5.4.90.0020.03214.05
5.4.80.0120.02513.95
5.4.70.0090.03114.04
5.4.60.0070.04114.02
5.4.50.0090.03514.02
5.4.40.0140.03214.00
5.4.30.0090.03513.95
5.4.20.0130.03013.92
5.4.10.0140.03213.98
5.4.00.0130.03313.65
5.3.290.0060.02312.19
5.3.280.0100.02513.10
5.3.270.0050.03013.02
5.3.260.0020.03113.14
5.3.250.0070.03313.10
5.3.240.0050.03113.11
5.3.230.0080.04012.98
5.3.220.0100.04213.08
5.3.210.0050.03213.09
5.3.200.0050.03813.10
5.3.190.0070.04113.02
5.3.180.0150.03812.96
5.3.170.0040.03013.02
5.3.160.0110.02413.10
5.3.150.0060.03313.08
5.3.140.0050.04413.07
5.3.130.0080.03013.08
5.3.120.0050.03113.00
5.3.110.0050.03213.14
5.3.100.0070.02812.75
5.3.90.0070.03012.85
5.3.80.0080.03212.82
5.3.70.0130.03412.81
5.3.60.0070.02912.84
5.3.50.0080.02512.70
5.3.40.0090.03512.77
5.3.30.0080.03512.68
5.3.20.0110.02512.61
5.3.10.0080.03812.70
5.3.00.0040.03212.46
5.2.170.0070.05011.17
5.2.160.0070.04311.27
5.2.150.0030.04311.25
5.2.140.0070.05711.17
5.2.130.0100.04311.21
5.2.120.0100.03711.13
5.2.110.0030.04710.95
5.2.100.0100.03711.00
5.2.90.0070.05011.04
5.2.80.0070.05011.12
5.2.70.0000.05011.20
5.2.60.0070.04011.08
5.2.50.0070.05011.05
5.2.40.0200.04011.04
5.2.30.0030.04710.93
5.2.20.0100.04311.07
5.2.10.0030.04310.96
5.2.00.0070.05710.65
5.1.60.0030.0509.93
5.1.50.0100.0309.93
5.1.40.0000.0409.92
5.1.30.0070.03710.28
5.1.20.0070.04010.25
5.1.10.0100.0409.86
5.1.00.0030.05710.12
5.0.50.0030.0308.76
5.0.40.0070.0278.34
5.0.30.0030.0578.14
5.0.20.0130.0238.25
5.0.10.0030.0278.23
5.0.00.0000.0608.18
4.4.90.0070.0205.85
4.4.80.0030.0205.94
4.4.70.0070.0175.85
4.4.60.0030.0235.85
4.4.50.0030.0275.85
4.4.40.0100.0405.88
4.4.30.0100.0235.86
4.4.20.0000.0335.85
4.4.10.0000.0305.85
4.4.00.0030.0375.86
4.3.110.0130.0235.85
4.3.100.0070.0305.85
4.3.90.0030.0235.85
4.3.80.0000.0375.85
4.3.70.0100.0135.85
4.3.60.0000.0235.85
4.3.50.0030.0235.85
4.3.40.0030.0335.85
4.3.30.0000.0306.30
4.3.20.0000.0236.30
4.3.10.0000.0276.30
4.3.00.0070.0207.33

preferences:
45.15 ms | 401 KiB | 5 Q