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" 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 $date .= $converted_date["hour"] . ":"; //create the "i:s" part $date .= $converted_date["minute"] .":00"; 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.0060.01218.68
8.3.50.0140.00722.05
8.3.40.0120.00619.09
8.3.30.0040.01119.04
8.3.20.0080.00020.14
8.3.10.0040.00422.09
8.3.00.0050.00322.43
8.2.180.0070.01118.54
8.2.170.0180.00422.96
8.2.160.0110.00420.53
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0140.00426.16
8.2.120.0110.00017.88
8.2.110.0070.00322.25
8.2.100.0030.00920.39
8.2.90.0000.00820.20
8.2.80.0000.00818.16
8.2.70.0030.00618.03
8.2.60.0040.00418.16
8.2.50.0080.00018.10
8.2.40.0000.00718.22
8.2.30.0000.00818.23
8.2.20.0000.00817.75
8.2.10.0000.00919.53
8.2.00.0000.00717.71
8.1.280.0150.00325.92
8.1.270.0000.00922.22
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0030.00624.01
8.1.230.0160.00019.14
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0030.00617.38
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0000.00818.69
8.1.160.0040.00422.01
8.1.150.0040.00418.84
8.1.140.0000.00717.56
8.1.130.0000.00717.77
8.1.120.0030.00517.51
8.1.110.0030.00317.63
8.1.100.0000.00717.49
8.1.90.0040.00417.51
8.1.80.0030.00517.61
8.1.70.0000.00717.58
8.1.60.0030.00617.76
8.1.50.0000.00817.73
8.1.40.0030.00517.60
8.1.30.0000.00817.75
8.1.20.0050.00317.70
8.1.10.0040.00417.80
8.1.00.0000.00817.69
8.0.300.0000.00819.81
8.0.290.0050.00316.75
8.0.280.0000.00718.48
8.0.270.0030.00317.25
8.0.260.0070.00016.97
8.0.250.0030.00317.12
8.0.240.0000.00917.15
8.0.230.0000.00717.01
8.0.220.0070.00016.94
8.0.210.0080.00017.07
8.0.200.0000.00817.11
8.0.190.0030.00516.96
8.0.180.0040.00417.09
8.0.170.0040.00417.13
8.0.160.0080.00017.02
8.0.150.0040.00416.96
8.0.140.0080.00017.01
8.0.130.0000.00813.45
8.0.120.0080.00017.00
8.0.110.0090.00017.11
8.0.100.0030.00416.84
8.0.90.0000.00716.94
8.0.80.0030.01317.04
8.0.70.0050.00316.84
8.0.60.0050.00317.05
8.0.50.0040.00416.87
8.0.30.0130.01016.94
8.0.20.0100.00817.40
8.0.10.0050.00317.23
8.0.00.0080.01416.89
7.4.330.0050.00015.05
7.4.320.0000.00716.66
7.4.300.0000.00816.80
7.4.290.0030.00316.64
7.4.280.0000.00716.76
7.4.270.0000.00716.75
7.4.260.0040.00716.71
7.4.250.0070.00016.60
7.4.240.0000.00816.61
7.4.230.0030.00316.86
7.4.220.0070.01016.75
7.4.210.0060.01016.73
7.4.200.0040.00316.79
7.4.190.0030.00316.80
7.4.160.0080.00816.71
7.4.150.0140.00317.40
7.4.140.0090.00917.86
7.4.130.0100.00816.70
7.4.120.0110.00716.65
7.4.110.0150.00616.62
7.4.100.0190.00316.93
7.4.90.0120.00616.73
7.4.80.0060.01619.39
7.4.70.0030.01316.71
7.4.60.0090.00716.61
7.4.50.0030.00316.82
7.4.40.0060.00922.77
7.4.30.0100.00716.65
7.4.00.0090.00615.19
7.3.330.0000.00713.39
7.3.320.0000.00513.40
7.3.310.0100.00016.46
7.3.300.0030.00316.38
7.3.290.0070.01016.45
7.3.280.0080.01016.45
7.3.270.0060.00917.40
7.3.260.0070.01016.54
7.3.250.0140.00316.54
7.3.240.0130.00316.64
7.3.230.0140.00316.54
7.3.210.0060.01516.42
7.3.200.0090.00619.39
7.3.190.0100.00716.49
7.3.180.0030.01216.48
7.3.170.0100.00716.88
7.3.160.0110.00616.54
7.3.120.0070.00715.07
7.2.330.0090.00916.56
7.2.320.0070.01616.87
7.2.310.0070.01016.77
7.2.300.0120.01216.88
7.2.290.0030.01316.68
7.2.00.0040.01419.48
7.1.100.0000.01118.42
7.1.70.0040.00417.11
7.1.60.0100.01319.82
7.1.50.0080.01117.25
7.1.00.0030.08322.38
7.0.200.0090.00016.99
7.0.140.0000.07722.21
7.0.60.0130.05019.84
7.0.50.0070.08017.91
7.0.40.0000.05020.23
7.0.30.0230.04720.11
7.0.20.0370.06720.32
7.0.10.0270.07720.35
7.0.00.0100.08020.22
5.6.280.0030.07321.13
5.6.210.0130.08020.73
5.6.200.0100.04718.15
5.6.190.0000.05020.43
5.6.180.3970.04720.54
5.6.170.0370.07720.48
5.6.160.0100.08020.49
5.6.150.0030.04018.15
5.6.140.0070.07318.19
5.6.130.0130.07318.10
5.6.120.0030.05721.05
5.6.110.0030.04721.14
5.6.100.0170.06721.14
5.6.90.0030.08720.92
5.6.80.0100.07720.51
5.6.70.0170.03320.36
5.5.350.0030.03720.40
5.5.340.0100.03717.96
5.5.330.0070.04020.37
5.5.320.0270.07320.29
5.5.310.0330.07020.30
5.5.300.0070.06317.87
5.5.290.0130.07317.98
5.5.280.0130.07720.98
5.5.270.0130.07320.97
5.5.260.0070.05720.80
5.5.250.0100.07720.66
5.5.240.0170.08020.18
5.4.450.0600.07319.54
5.4.440.0530.05019.47
5.4.430.0170.05319.31
5.4.420.0130.05019.45
5.4.410.0100.05719.41
5.4.400.0770.00018.75
5.4.390.0770.00018.70
5.4.380.0300.05018.61
5.4.370.0200.04318.68
5.4.360.0230.04318.70
5.4.350.0170.05018.75
5.4.340.0270.03718.56
5.4.320.0050.03912.46
5.4.310.0110.04512.45
5.4.300.0090.04312.46
5.4.290.0040.04212.45
5.4.280.0060.03512.36
5.4.270.0200.04318.91
5.4.260.0200.07018.65
5.4.250.0270.05319.02
5.4.240.0030.07718.84
5.4.230.0100.07318.88
5.4.220.0130.07318.77
5.4.210.0030.06318.88
5.4.200.0100.06018.89
5.4.190.0100.06018.74
5.4.180.0170.04318.68
5.4.170.0030.06718.73
5.4.160.0230.05718.71
5.4.150.0100.06018.82
5.4.140.0100.05316.40
5.4.130.0030.07316.25
5.4.120.0100.06316.30
5.4.110.0030.06316.41
5.4.100.0070.06716.43
5.4.90.0070.05716.42
5.4.80.0130.04716.33
5.4.70.0130.04716.19
5.4.60.0100.07316.39
5.4.50.0130.07016.45
5.4.40.0100.06316.47
5.4.30.0100.05716.16
5.4.20.0230.05716.41
5.4.10.0200.05016.35
5.4.00.0130.06315.70
5.3.290.0030.04512.80
5.3.280.0070.07314.61
5.3.270.0100.07014.39
5.3.260.0100.07314.71
5.3.250.0130.06014.72
5.3.240.0070.06014.53
5.3.230.0170.05714.65
5.3.220.0200.04714.60
5.3.210.0070.07014.49
5.3.200.0030.07714.62
5.3.190.0170.06314.57
5.3.180.0130.05714.46
5.3.170.0100.07014.42
5.3.160.0070.05314.57
5.3.150.0000.06314.59
5.3.140.0100.05314.28
5.3.130.0070.05714.47
5.3.120.0100.05714.47
5.3.110.0170.06714.59
5.3.100.0170.07013.90
5.3.90.0100.06014.04
5.3.80.0170.04314.02
5.3.70.0030.06314.07
5.3.60.0130.07014.03
5.3.50.0130.06014.05
5.3.40.0100.07013.79
5.3.30.0070.04713.83
5.3.20.0030.06313.39
5.3.10.0200.04013.54
5.3.00.0130.07013.65
5.2.170.0000.04711.17
5.2.160.0070.05011.08
5.2.150.0100.05311.07
5.2.140.0070.04711.29
5.2.130.0030.04310.94
5.2.120.0070.04011.13
5.2.110.0030.04311.04
5.2.100.0000.04311.12
5.2.90.0100.06710.94
5.2.80.0170.05011.03
5.2.70.0030.04711.10
5.2.60.0100.05711.16
5.2.50.0170.04310.87
5.2.40.0070.04011.02
5.2.30.0130.04711.01
5.2.20.0100.05310.73
5.2.10.0070.03710.95
5.2.00.0030.04310.79
5.1.60.0070.0339.89
5.1.50.0130.0439.93
5.1.40.0070.0479.94
5.1.30.0100.05010.20
5.1.20.0100.03310.36
5.1.10.0170.0379.84
5.1.00.0100.03310.21
5.0.50.0000.0438.79
5.0.40.0000.0438.49
5.0.30.0100.0438.14
5.0.20.0100.0308.35
5.0.10.0030.0408.17
5.0.00.0070.0408.37
4.4.90.0000.0235.80
4.4.80.0030.0235.78
4.4.70.0070.0235.81
4.4.60.0000.0235.72
4.4.50.0000.0275.80
4.4.40.0000.0405.92
4.4.30.0000.0305.77
4.4.20.0000.0305.82
4.4.10.0070.0275.87
4.4.00.0070.0305.81
4.3.110.0000.0305.72
4.3.100.0000.0235.71
4.3.90.0070.0275.67
4.3.80.0070.0375.71
4.3.70.0030.0305.71
4.3.60.0000.0235.72
4.3.50.0070.0205.71
4.3.40.0100.0375.67
4.3.30.0030.0204.85
4.3.20.0030.0304.82
4.3.10.0030.0304.80
4.3.00.0030.0206.04

preferences:
39.88 ms | 401 KiB | 5 Q