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["year"] . "-"; $datemap = array("januari"=>"01", "februari"=>"02", "maart"=>"03", "april"=>"04", "mei"=>"05", "juni"=>"06", "juli"=>"07", "augustus"=>"08", "september"=>"09", "oktober"=>"10", "november"=>"11", "december"=>"12"); $date .= $datemap[$converted_date["month"]]. "-"; $date .= $converted_date["day"]. " "; $date .= $converted_date["hour"] . ":"; $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.0140.01118.50
8.3.50.0100.00822.24
8.3.40.0120.00618.92
8.3.30.0110.00419.09
8.3.20.0050.00320.41
8.3.10.0000.00822.00
8.3.00.0050.00522.43
8.2.180.0060.01516.75
8.2.170.0090.00622.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0070.00726.16
8.2.120.0130.00319.71
8.2.110.0090.00019.22
8.2.100.0080.00317.84
8.2.90.0050.00318.34
8.2.80.0050.00317.97
8.2.70.0030.00617.93
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0040.00419.40
8.2.30.0000.00818.16
8.2.20.0000.00717.73
8.2.10.0040.00419.68
8.2.00.0040.00417.83
8.1.280.0180.00325.92
8.1.270.0040.00422.13
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.59
8.1.230.0060.00620.99
8.1.220.0050.00317.78
8.1.210.0040.00418.92
8.1.200.0050.00317.48
8.1.190.0000.00817.36
8.1.180.0030.00518.10
8.1.170.0040.00418.80
8.1.160.0040.00421.97
8.1.150.0080.00018.88
8.1.140.0040.00417.71
8.1.130.0000.00717.87
8.1.120.0040.00417.64
8.1.110.0050.00217.66
8.1.100.0040.00417.58
8.1.90.0000.00717.52
8.1.80.0000.00717.61
8.1.70.0030.00317.55
8.1.60.0040.00417.72
8.1.50.0000.00817.58
8.1.40.0040.00417.66
8.1.30.0000.00817.69
8.1.20.0030.00517.75
8.1.10.0070.00017.76
8.1.00.0050.00217.61
8.0.300.0040.00419.98
8.0.290.0040.00716.72
8.0.280.0030.00518.55
8.0.270.0000.00717.29
8.0.260.0000.00716.89
8.0.250.0000.00717.14
8.0.240.0040.00417.13
8.0.230.0030.00317.13
8.0.220.0000.00716.93
8.0.210.0050.00217.09
8.0.200.0030.00317.04
8.0.190.0040.00417.13
8.0.180.0000.00817.04
8.0.170.0070.00017.07
8.0.160.0000.00817.11
8.0.150.0030.00316.99
8.0.140.0000.00716.89
8.0.130.0040.00413.47
8.0.120.0050.00316.86
8.0.110.0020.00516.97
8.0.100.0000.00716.93
8.0.90.0000.00716.95
8.0.80.0060.01217.00
8.0.70.0050.00317.08
8.0.60.0000.00816.89
8.0.50.0050.00316.83
8.0.30.0130.00617.19
8.0.20.0160.00217.40
8.0.10.0020.00517.15
8.0.00.0140.00516.97
7.4.330.0050.00015.11
7.4.320.0060.00016.77
7.4.300.0030.00316.56
7.4.290.0000.00716.67
7.4.280.0070.00016.73
7.4.270.0070.00016.66
7.4.260.0040.00816.65
7.4.250.0000.00816.74
7.4.240.0040.00416.69
7.4.230.0030.00316.64
7.4.220.0000.01716.76
7.4.210.0060.00916.69
7.4.200.0000.00816.66
7.4.190.0040.00416.57
7.4.160.0130.00316.82
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0090.00816.61
7.4.120.0080.00916.71
7.4.110.0100.00616.77
7.4.100.0070.01016.73
7.4.90.0120.01216.68
7.4.80.0100.00719.39
7.4.70.0040.01216.66
7.4.60.0050.01116.67
7.4.50.0050.00316.64
7.4.40.0040.01122.77
7.4.30.0070.01016.52
7.4.10.0160.00316.58
7.4.00.0070.00915.73
7.3.330.0050.00213.41
7.3.320.0050.00013.40
7.3.310.0040.00416.34
7.3.300.0000.00716.51
7.3.290.0140.00016.41
7.3.280.0050.01116.42
7.3.270.0110.00617.40
7.3.260.0090.00916.67
7.3.250.0110.00816.74
7.3.240.0150.00416.55
7.3.230.0040.01216.41
7.3.210.0100.01016.49
7.3.200.0080.00819.39
7.3.190.0080.00816.54
7.3.180.0090.00616.43
7.3.170.0040.01816.80
7.3.160.0120.00316.61
7.3.130.0060.00616.74
7.3.120.0080.00815.79
7.3.110.0030.01316.38
7.3.100.0060.01016.32
7.3.90.0040.01116.63
7.3.80.0140.00016.57
7.3.70.0070.00716.47
7.3.60.0070.01016.52
7.3.50.0120.00016.44
7.3.40.0030.01116.44
7.3.30.0000.01416.50
7.3.20.0100.00718.46
7.3.10.0060.00618.29
7.3.00.0080.00418.48
7.2.330.0070.01116.83
7.2.320.0030.02016.80
7.2.310.0090.01216.81
7.2.300.0030.01316.77
7.2.290.0150.00716.76
7.2.260.0060.01316.54
7.2.250.0040.01416.64
7.2.240.0100.01016.54
7.2.230.0060.00916.71
7.2.220.0030.01316.72
7.2.210.0070.01016.69
7.2.200.0130.00316.57
7.2.190.0030.01016.64
7.2.180.0060.00916.62
7.2.170.0090.00416.43
7.2.160.0070.00716.66
7.2.150.0090.00318.63
7.2.140.0060.00918.43
7.2.130.0040.00818.34
7.2.120.0060.00918.38
7.2.110.0090.00918.45
7.2.100.0070.00718.59
7.2.90.0040.00818.47
7.2.80.0040.01518.60
7.2.70.0110.00318.66
7.2.60.0060.00618.35
7.2.50.0040.01118.38
7.2.40.0040.01118.65
7.2.30.0070.00718.37
7.2.20.0040.00818.55
7.2.10.0040.01218.37
7.2.00.0070.00518.95
7.1.330.0080.00817.43
7.1.320.0030.00617.40
7.1.310.0070.01117.32
7.1.300.0060.00617.55
7.1.290.0100.00617.49
7.1.280.0040.01117.61
7.1.270.0130.00317.49
7.1.260.0030.01017.32
7.1.250.0030.01317.54
7.1.240.0090.00617.39
7.1.230.0070.00317.39
7.1.220.0030.00717.37
7.1.210.0000.01317.29
7.1.200.0060.00617.54
7.1.190.0030.01017.43
7.1.180.0000.01517.36
7.1.170.0040.01117.45
7.1.160.0060.00617.47
7.1.150.0040.01117.44
7.1.140.0040.01217.46
7.1.130.0090.00317.48
7.1.120.0090.00617.23
7.1.110.0060.00917.33
7.1.100.0060.00518.08
7.1.90.0100.00317.48
7.1.80.0070.00317.52
7.1.70.0020.00817.25
7.1.60.0100.00918.52
7.1.50.0110.00717.33
7.1.40.0080.00317.34
7.1.30.0090.00317.46
7.1.20.0090.00617.34
7.1.10.0090.00617.45
7.1.00.0080.03719.98
7.0.330.0030.00717.14
7.0.320.0070.00717.38
7.0.310.0030.00917.29
7.0.300.0070.00716.95
7.0.290.0070.00717.09
7.0.280.0060.00617.04
7.0.270.0060.00617.16
7.0.260.0030.00717.23
7.0.250.0140.00017.11
7.0.240.0110.00317.23
7.0.230.0130.00017.21
7.0.220.0060.00317.29
7.0.210.0060.01216.92
7.0.200.0060.00517.01
7.0.190.0030.00617.17
7.0.180.0090.00617.14
7.0.170.0090.00617.26
7.0.160.0100.00017.16
7.0.150.0030.01017.00
7.0.140.0000.04319.62
7.0.130.0040.00817.27
7.0.120.0060.00617.07
7.0.110.0110.00417.09
7.0.100.0040.00716.88
7.0.90.0070.00317.17
7.0.80.0060.00716.88
7.0.70.0030.00916.82
7.0.60.0060.04218.42
7.0.50.0040.03617.57
7.0.40.0070.04217.59
7.0.30.0110.03117.58
7.0.20.0240.03917.70
7.0.10.0070.03017.66
7.0.00.0130.04017.57
5.6.400.0120.00015.71
5.6.390.0060.00315.85
5.6.380.0070.00415.83
5.6.370.0130.00315.71
5.6.360.0000.01716.10
5.6.350.0070.00716.00
5.6.340.0040.00715.85
5.6.330.0060.00616.04
5.6.320.0080.00516.19
5.6.310.0030.00616.30
5.6.300.0070.01116.05
5.6.290.0140.00316.08
5.6.280.0030.04418.70
5.6.270.0060.00915.92
5.6.260.0000.01216.15
5.6.250.0030.00916.03
5.6.240.0040.00815.94
5.6.230.0090.00616.13
5.6.220.0030.01015.94
5.6.210.0070.03518.16
5.6.200.0040.03917.09
5.6.190.0090.03518.31
5.6.180.1930.03318.22
5.6.170.0190.04018.11
5.6.160.0060.02618.07
5.6.150.0060.02217.07
5.6.140.0030.04017.17
5.6.130.0030.03217.06
5.6.120.0130.03818.61
5.6.110.0070.04718.42
5.6.100.0110.04318.46
5.6.90.0190.03618.47
5.6.80.0060.02418.18
5.6.70.0220.03817.99
5.6.60.0040.01116.04
5.6.50.0040.00815.76
5.6.40.0100.00315.88
5.6.30.0030.01115.93
5.6.20.0000.01115.82
5.6.10.0030.01215.74
5.6.00.0110.00315.82
5.5.380.0070.01115.88
5.5.370.0090.00316.13
5.5.360.0070.01115.91
5.5.350.0060.04418.10
5.5.340.0080.03616.99
5.5.330.0070.02317.98
5.5.320.0150.04618.07
5.5.310.0150.04018.02
5.5.300.0070.04517.01
5.5.290.0110.02616.97
5.5.280.0030.02718.27
5.5.270.0050.02518.06
5.5.260.0080.03718.27
5.5.250.0030.04418.26
5.5.240.0190.02718.05
5.5.230.0030.00815.91
5.5.220.0060.00615.88
5.5.210.0000.01415.79
5.5.200.0090.00615.99
5.5.190.0030.00615.63
5.5.180.0030.00915.67
5.5.170.0080.00315.85
5.5.160.0040.01116.02
5.5.150.0090.00915.74
5.5.140.0060.00615.92
5.5.130.0030.00615.77
5.5.120.0000.01115.72
5.5.110.0030.00615.89
5.5.100.0040.01415.84
5.5.90.0110.00715.93
5.5.80.0060.00615.85
5.5.70.0100.00715.76
5.5.60.0060.00615.75
5.5.50.0080.00315.75
5.5.40.0070.00715.79
5.5.30.0070.00715.70
5.5.20.0030.01015.92
5.5.10.0100.00315.51
5.5.00.0000.01115.88
5.4.450.1080.02516.10
5.4.440.1050.02515.94
5.4.430.0880.02216.00
5.4.420.1060.02516.09
5.4.410.1050.02115.72
5.4.400.0780.02215.89
5.4.390.0780.02615.75
5.4.380.0030.02315.76
5.4.370.0070.03715.87
5.4.360.0070.03515.69
5.4.350.0480.02315.76
5.4.340.0740.02315.66
5.4.330.0000.01012.69
5.4.320.0830.02615.82
5.4.310.0900.01715.95
5.4.300.0780.02015.74
5.4.290.0800.01815.59
5.4.280.0720.02315.81
5.4.270.0750.02215.84
5.4.260.0740.02115.83
5.4.250.0730.02515.95
5.4.240.0800.02015.88
5.4.230.0870.02215.90
5.4.220.0880.02715.88
5.4.210.0750.02215.80
5.4.200.0850.02715.99
5.4.190.0740.02015.65
5.4.180.0720.02215.89
5.4.170.0750.02015.62
5.4.160.0720.02415.64
5.4.150.0830.03315.79
5.4.140.0770.01714.47
5.4.130.0750.02014.43
5.4.120.0430.02214.51
5.4.110.0070.01814.61
5.4.100.0030.02214.57
5.4.90.0800.01714.50
5.4.80.0760.02014.59
5.4.70.0770.02014.35
5.4.60.0830.02014.49
5.4.50.0980.02214.52
5.4.40.0770.02014.53
5.4.30.0890.01914.53
5.4.20.0890.02214.41
5.4.10.0780.01714.57
5.4.00.0710.01614.20
5.3.290.0850.02513.86
5.3.280.0670.01913.68
5.3.270.0060.04213.84
5.3.260.0530.02713.97
5.3.250.0720.02413.96
5.3.240.0850.02513.74
5.3.230.0780.02513.86
5.3.220.0830.02613.68
5.3.210.0820.02913.68
5.3.200.0750.02713.60
5.3.190.0010.02313.74
5.3.180.0030.02913.75
5.3.170.0070.04013.78
5.3.160.0440.02913.90
5.3.150.0840.02413.78
5.3.140.0850.02013.87
5.3.130.0820.02413.69
5.3.120.0590.02913.83
5.3.110.0000.02713.78
5.3.100.0050.04013.73
5.3.90.0280.03113.52
5.3.80.0670.02413.39
5.3.70.0740.01913.45
5.3.60.0800.02813.51
5.3.50.0780.03013.35
5.3.40.0730.02413.43
5.3.30.0800.02213.50
5.3.20.0830.02113.34
5.3.10.0870.02013.29
5.3.00.0810.02413.27
5.2.170.1300.04011.23
5.2.160.1330.04011.01
5.2.150.1230.03311.22
5.2.140.0100.06310.98
5.2.130.0170.05010.96
5.2.120.0100.03011.27
5.2.110.0100.03011.15
5.2.100.0170.04011.12
5.2.90.0170.03310.97
5.2.80.0200.06010.94
5.2.70.0230.05010.96
5.2.60.0130.06310.90
5.2.50.0200.04010.86
5.2.40.0230.04011.06
5.2.30.0100.03711.04
5.2.20.0200.02710.98
5.2.10.0200.05010.72
5.2.00.0100.04710.74
5.1.60.0100.0279.88
5.1.50.0230.0239.98
5.1.40.0130.05310.00
5.1.30.0170.04710.35
5.1.20.0100.05010.30
5.1.10.0170.05010.24
5.1.00.0170.0509.99
5.0.50.0070.0478.44
5.0.40.0100.0438.32
5.0.30.0070.0608.22
5.0.20.0130.0378.33
5.0.10.0030.0308.22
5.0.00.0030.0378.22
4.4.90.0030.0208.22
4.4.80.0070.0278.22
4.4.70.0100.0208.22
4.4.60.0100.0178.22
4.4.50.0030.0178.22
4.4.40.0030.0338.22
4.4.30.0070.0178.22
4.4.20.0070.0338.22
4.4.10.0030.0338.22
4.4.00.0070.0308.22
4.3.110.0070.0378.22
4.3.100.0070.0138.22
4.3.90.0030.0178.22
4.3.80.0030.0278.22
4.3.70.0070.0138.22
4.3.60.0070.0238.22
4.3.50.0070.0138.22
4.3.40.0070.0208.22
4.3.30.0000.0178.22
4.3.20.0030.0208.22
4.3.10.0000.0178.22
4.3.00.0100.0108.22

preferences:
59.22 ms | 401 KiB | 5 Q