3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = '23/02/2013 '; $match = '/\b(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/\d{4}(\s(0[1-9]|1[012]))?/'; var_dump(preg_match($match, $d)); exit; $t = new DateTime(str_replace('/', '-', $d)); print $t->format('d/m/Y');

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.0120.00616.88
8.3.50.0100.01017.49
8.3.40.0150.00018.92
8.3.30.0110.00318.93
8.3.20.0040.00418.98
8.3.10.0050.00318.98
8.3.00.0040.00419.63
8.2.180.0170.00725.92
8.2.170.0110.00418.91
8.2.160.0130.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0090.00020.80
8.2.110.0080.00320.52
8.2.100.0080.00418.03
8.2.90.0030.00519.17
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0030.00619.35
8.2.40.0040.00418.34
8.2.30.0000.00717.93
8.2.20.0000.00917.75
8.2.10.0040.00417.93
8.2.00.0040.00418.00
8.1.280.0080.00825.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.96
8.1.230.0060.00617.52
8.1.220.0030.00617.77
8.1.210.0090.00018.77
8.1.200.0030.00717.48
8.1.190.0000.00817.53
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0040.00418.86
8.1.150.0030.00618.79
8.1.140.0000.00817.56
8.1.130.0070.00017.83
8.1.120.0040.00417.61
8.1.110.0040.00417.43
8.1.100.0050.00217.45
8.1.90.0040.00417.58
8.1.80.0030.00317.54
8.1.70.0050.00217.55
8.1.60.0030.00617.55
8.1.50.0080.00017.70
8.1.40.0040.00417.55
8.1.30.0050.00317.66
8.1.20.0080.00017.71
8.1.10.0040.00417.59
8.1.00.0040.00417.62
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.41
8.0.270.0050.00317.21
8.0.260.0030.00317.00
8.0.250.0030.00617.04
8.0.240.0000.00717.14
8.0.230.0000.00717.13
8.0.220.0000.00716.98
8.0.210.0000.00716.97
8.0.200.0030.00317.09
8.0.190.0030.00517.15
8.0.180.0040.00717.03
8.0.170.0040.00416.91
8.0.160.0000.00817.03
8.0.150.0040.00416.95
8.0.140.0070.00017.01
8.0.130.0000.00513.40
8.0.120.0070.00017.03
8.0.110.0000.00717.09
8.0.100.0000.00817.04
8.0.90.0020.00517.13
8.0.80.0070.00716.99
8.0.70.0070.00017.17
8.0.60.0000.00717.16
8.0.50.0000.00717.17
8.0.30.0130.00717.06
8.0.20.0090.01017.22
8.0.10.0040.00417.34
8.0.00.0140.01016.78
7.4.330.0000.00513.11
7.4.320.0070.00316.80
7.4.300.0000.00616.69
7.4.290.0000.00616.72
7.4.280.0030.00516.80
7.4.270.0030.00316.71
7.4.260.0000.00613.54
7.4.250.0030.00616.76
7.4.240.0040.00416.76
7.4.230.0000.00716.60
7.4.220.0060.01316.75
7.4.210.0050.00916.80
7.4.200.0030.00316.83
7.4.190.0000.00716.71
7.4.160.0090.01516.65
7.4.150.0070.01016.93
7.4.140.0090.00916.61
7.4.130.0140.00416.67
7.4.120.0060.01316.69
7.4.110.0100.00916.52
7.4.100.0120.00316.60
7.4.90.0070.01016.81
7.4.80.0070.01019.39
7.4.70.0100.00916.83
7.4.60.0100.01016.58
7.4.50.0100.00316.60
7.4.40.0070.00416.42
7.4.30.0000.01616.64
7.4.00.0070.01014.89
7.3.330.0030.00313.21
7.3.320.0060.00013.14
7.3.310.0070.00016.18
7.3.300.0070.00016.38
7.3.290.0060.01016.42
7.3.280.0120.00516.36
7.3.270.0100.00716.53
7.3.260.0140.00316.58
7.3.250.0060.01216.51
7.3.240.0070.01016.50
7.3.230.0100.01016.59
7.3.210.0140.00316.29
7.3.200.0070.01016.41
7.3.190.0000.02216.72
7.3.180.0100.01016.21
7.3.170.0100.00716.32
7.3.160.0060.01016.63
7.3.120.0110.00315.14
7.3.10.0070.00716.38
7.3.00.0040.00816.56
7.2.330.0180.00616.74
7.2.320.0080.01616.62
7.2.310.0070.01116.76
7.2.300.0040.01616.59
7.2.290.0050.01116.64
7.2.130.0000.01517.05
7.2.120.0080.00817.05
7.2.110.0040.00716.99
7.2.100.0110.00316.97
7.2.90.0040.01116.95
7.2.80.0040.00716.67
7.2.70.0040.01116.88
7.2.60.0060.00616.88
7.2.50.0030.00916.99
7.2.40.0060.00617.13
7.2.30.0090.00916.93
7.2.20.0090.00616.57
7.2.10.0120.00316.76
7.2.00.0070.00218.17
7.1.250.0040.00416.07
7.1.200.0030.00915.60
7.1.100.0070.00718.16
7.1.70.0040.00717.21
7.1.60.0120.01219.40
7.1.50.0070.01717.06
7.1.00.0030.04022.35
7.0.200.0080.00815.03
7.0.140.0000.09721.97
7.0.120.0000.07721.96
7.0.60.0100.07319.79
7.0.50.0030.04017.89
7.0.40.0030.09020.09
7.0.30.0030.06720.29
7.0.20.0170.07020.20
7.0.10.0070.08720.25
7.0.00.0170.07319.97
5.6.210.0000.04320.72
5.6.200.0070.05318.22
5.6.190.0030.09320.66
5.6.180.0130.06720.41
5.6.170.0100.06020.41
5.6.160.0070.04720.76
5.6.150.0070.04320.33
5.6.140.0030.05720.34
5.6.130.0100.04020.37
5.6.120.0070.04320.16
5.6.110.0130.07720.41
5.6.100.0070.08320.30
5.6.90.0100.08320.15
5.6.80.0030.04319.55
5.6.70.0000.04319.75
5.6.60.0030.06719.71
5.6.50.0070.07719.84
5.6.40.0030.08719.79
5.6.30.0130.08019.64
5.6.20.0030.07719.46
5.6.10.0100.07719.69
5.6.00.0070.05719.75
5.5.350.0370.05320.44
5.5.340.0030.04017.96
5.5.330.0000.08720.20
5.5.320.0100.07320.47
5.5.310.0070.05720.06
5.5.300.0170.08020.23
5.5.290.0130.07719.91
5.5.280.0100.08019.90
5.5.270.0070.08320.07
5.5.260.0130.08320.25
5.5.250.0000.07720.04
5.5.240.0100.07719.64
5.5.230.0030.04719.49
5.5.220.0130.07319.55
5.5.210.0070.07319.54
5.5.200.0070.04319.55
5.5.190.0130.04719.43
5.5.180.0030.07019.47
5.5.160.0170.07019.58
5.5.150.0030.06719.52
5.5.140.0100.06019.60
5.5.130.0130.06319.57
5.5.120.0070.05019.31
5.5.110.0000.04319.32
5.5.100.0130.06319.42
5.5.90.0100.07719.21
5.5.80.0030.08319.36
5.5.70.0000.05319.15
5.5.60.0100.06019.47
5.5.50.0070.05719.16
5.5.40.0100.08019.46
5.5.30.0070.04019.29
5.5.20.0200.05319.43
5.5.10.0070.04319.27
5.5.00.0070.04019.30
5.4.450.0170.05319.14
5.4.440.0070.04719.40
5.4.430.0070.06319.50
5.4.420.0070.08319.41
5.4.410.0100.06719.27
5.4.400.0070.07719.12
5.4.390.0100.04019.00
5.4.380.0030.04019.14
5.4.370.0170.06719.11
5.4.360.0130.06719.14
5.4.350.0130.07018.79
5.4.340.0070.08018.79
5.4.320.0070.05018.91
5.4.310.0000.04319.17
5.4.300.0030.04019.17
5.4.290.0000.06019.11
5.4.280.0100.06318.96
5.4.270.0070.07719.09
5.4.260.0030.07718.91
5.4.250.0100.08019.14
5.4.240.0030.07319.15
5.4.230.0070.08018.80
5.4.220.0070.05019.08
5.4.210.0070.07018.78
5.4.200.0070.06719.15
5.4.190.0130.05718.90
5.4.180.0100.05019.16
5.4.170.0100.04019.19
5.4.160.0100.07319.05
5.4.150.0070.06319.16
5.4.140.0070.04316.33
5.4.130.0070.03716.38
5.4.120.0030.04716.28
5.4.110.0070.07316.58
5.4.100.0030.03716.23
5.4.90.0030.05016.60
5.4.80.0000.04016.28
5.4.70.0100.04016.34
5.4.60.0170.05316.24
5.4.50.0070.04016.28
5.4.40.0030.05316.30
5.4.30.0100.06316.36
5.4.20.0030.03716.24
5.4.10.0100.04016.23
5.4.00.0130.06715.69
5.3.290.0070.04714.56
5.3.280.0070.07714.47
5.3.270.0070.07014.53
5.3.260.0100.07314.43
5.3.250.0070.07714.48
5.3.240.0100.06314.58
5.3.230.0070.03714.52
5.3.220.0030.03714.38
5.3.210.0100.05014.48
5.3.200.0070.03314.46
5.3.190.0070.04314.50
5.3.180.0070.05714.65
5.3.170.0100.06714.46
5.3.160.0130.05314.51
5.3.150.0130.07714.53
5.3.140.0100.06314.53
5.3.130.0100.06714.48
5.3.120.0100.07314.63
5.3.110.0170.06314.56
5.3.100.0070.06013.98
5.3.90.0070.04013.95
5.3.80.0070.07013.83
5.3.70.0070.03713.95
5.3.60.0070.04313.83
5.3.50.0100.07013.96
5.3.40.0100.05713.91
5.3.30.0030.07713.75
5.3.20.0030.05013.63
5.3.10.0000.04313.60
5.3.00.0030.08013.58
5.2.170.0030.03711.15
5.2.160.0170.02311.07
5.2.150.0030.06711.05
5.2.140.0070.03311.12
5.2.130.0030.06311.04
5.2.120.0000.04310.95
5.2.110.0030.06311.03
5.2.100.0030.05011.10
5.2.90.0000.04311.09
5.2.80.0030.05710.98
5.2.70.0100.05711.02
5.2.60.0100.04310.94
5.2.50.0070.04710.91
5.2.40.0130.02710.85
5.2.30.0070.06010.87
5.2.20.0070.04010.82
5.2.10.0100.02310.80
5.2.00.0070.03710.71
5.1.60.0030.03010.05
5.1.50.0070.03010.05
5.1.40.0000.02710.12
5.1.30.0030.03710.32
5.1.20.0000.03310.36
5.1.10.0030.03310.05
5.1.00.0100.03710.12
5.0.50.0030.0508.62
5.0.40.0000.0238.46
5.0.30.0070.0638.29
5.0.20.0030.0438.18
5.0.10.0070.0378.07
5.0.00.0000.0738.20
4.4.90.0030.0276.63
4.4.80.0070.0136.63
4.4.70.0000.0376.63
4.4.60.0000.0336.63
4.4.50.0000.0236.63
4.4.40.0000.0306.63
4.4.30.0000.0176.63
4.4.20.0000.0336.63
4.4.10.0000.0276.63
4.4.00.0000.0476.63
4.3.110.0030.0336.63
4.3.100.0000.0376.63
4.3.90.0030.0206.63
4.3.80.0030.0336.63
4.3.70.0070.0306.63
4.3.60.0070.0206.63
4.3.50.0070.0136.63
4.3.40.0070.0506.63
4.3.30.0000.0306.63
4.3.20.0000.0276.63
4.3.10.0000.0376.63
4.3.00.0000.0406.63

preferences:
47.93 ms | 401 KiB | 5 Q