3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = 'fr'; $timezone = 'Europe/Luxembourg'; $fmt = new IntlDateFormatter($locale, IntlDateFormatter::MEDIUM, IntlDateFormatter::NONE, $timezone , NULL, 'MMMM'); echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-01-01')), 0, 3)) . EOL; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-02-01')), 0, 3)) . EOL; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-03-01')), 0, 3)) . EOL; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-04-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-05-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-06-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-07-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-08-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-09-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-10-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-11-01')), 0, 3)) . '<br>'; echo ucfirst(mb_strimwidth($fmt->format(new DateTime('2000-12-01')), 0, 3)) . '<br>';

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.5.10.0040.00320.26
8.5.00.0120.01725.75
8.4.150.0030.00014.05
8.4.140.0350.01021.47
8.4.130.0120.01022.34
8.4.120.0140.00927.29
8.4.110.0080.00425.76
8.4.100.0160.00621.55
8.4.90.0130.01021.41
8.4.80.0070.00223.82
8.4.70.0170.01321.68
8.4.60.0130.01022.13
8.4.50.0130.01022.14
8.4.40.0140.00321.54
8.4.30.0150.00621.64
8.4.20.0030.00621.60
8.4.10.0110.00721.17
8.3.280.0110.01924.03
8.3.270.0100.01120.33
8.3.260.0120.01120.11
8.3.250.0140.00622.33
8.3.240.0130.00820.77
8.3.230.0070.00220.00
8.3.220.0100.01122.55
8.3.210.0110.01120.38
8.3.200.0070.00220.26
8.3.190.0120.00620.77
8.3.180.0110.01220.32
8.3.170.0100.00723.87
8.3.160.0200.00420.65
8.3.150.0110.01120.65
8.3.140.0000.00820.25
8.3.130.0060.01520.02
8.3.120.0030.00723.95
8.3.110.0130.00020.55
8.3.100.0160.00320.39
8.3.90.0000.01026.77
8.3.80.0060.00322.05
8.3.70.0130.00320.25
8.3.60.0080.00822.18
8.3.50.0190.00523.81
8.3.40.0130.00321.18
8.3.30.0070.01421.34
8.3.20.0080.00022.59
8.3.10.0030.00622.98
8.3.00.0030.00621.96
8.2.290.0340.00923.73
8.2.280.0110.00821.88
8.2.270.0210.00020.65
8.2.260.0150.00520.35
8.2.250.0080.00020.21
8.2.240.0050.00520.51
8.2.230.0050.00520.94
8.2.220.0090.00024.06
8.2.210.0210.00026.77
8.2.200.0100.00022.04
8.2.190.0160.00621.91
8.2.180.0160.00722.02
8.2.170.0040.01122.96
8.2.160.0140.00422.53
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0030.00622.61
8.2.120.0040.00426.35
8.2.110.0040.00724.52
8.2.100.0100.00321.09
8.2.90.0080.00320.97
8.2.80.0060.00321.56
8.2.70.0030.00620.63
8.2.60.0040.00421.16
8.2.50.0060.00320.88
8.2.40.0040.00422.68
8.2.30.0000.00821.79
8.2.20.0030.00620.86
8.2.10.0080.00021.13
8.2.00.0030.00621.21
8.1.330.0140.00723.48
8.1.320.0090.01319.93
8.1.310.0160.00320.45
8.1.300.0170.00721.98
8.1.290.0070.00330.84
8.1.280.0130.01025.92
8.1.270.0070.01126.21
8.1.260.0090.00028.09
8.1.250.0120.00328.09
8.1.240.0030.00624.28
8.1.230.0030.00924.08
8.1.220.0000.00821.02
8.1.210.0040.00722.09
8.1.200.0070.00420.60
8.1.190.0040.00420.60
8.1.180.0030.00620.47
8.1.170.0000.00822.02
8.1.160.0080.00023.16
8.1.150.0080.00021.25
8.1.140.0000.00822.74
8.1.130.0040.00420.86
8.1.120.0000.00820.78
8.1.110.0060.00320.87
8.1.100.0060.00320.75
8.1.90.0090.00020.76
8.1.80.0080.00020.66
8.1.70.0000.00820.84
8.1.60.0030.00620.68
8.1.50.0060.00320.86
8.1.40.0090.00020.92
8.1.30.0090.00021.06
8.1.20.0060.00321.03
8.1.10.0050.00520.76
8.1.00.0030.00720.95
8.0.300.0000.00922.50
8.0.290.0080.00020.13
8.0.280.0000.00720.89
8.0.270.0080.00420.46
8.0.260.0000.00720.45
8.0.250.0000.00720.43
8.0.240.0050.00320.33
8.0.230.0000.00820.39
8.0.220.0040.00420.30
8.0.210.0000.00720.32
8.0.200.0040.00420.57
8.0.190.0040.00420.27
8.0.180.0040.00420.36
8.0.170.0040.00420.54
8.0.160.0000.00820.24
8.0.150.0000.00820.04
8.0.140.0050.00320.30
8.0.130.0060.00013.34
8.0.120.0060.00320.31
8.0.110.0000.00920.50
8.0.100.0060.00320.14
8.0.90.0090.00020.07
8.0.80.0100.01020.52
8.0.70.0040.00420.43
8.0.60.0030.00620.66
8.0.50.0000.00820.13
8.0.30.0060.01520.53
8.0.20.0140.00720.64
8.0.10.0040.00420.23
8.0.00.0110.01220.31
7.4.330.0020.00215.08
7.4.320.0170.00020.23
7.4.300.0070.00020.02
7.4.290.0110.00320.33
7.4.280.0000.01019.98
7.4.270.0080.00020.29
7.4.260.0260.00320.28
7.4.250.0030.00620.00
7.4.240.0040.00420.33
7.4.230.0000.00820.04
7.4.220.0160.01320.37
7.4.210.0150.00220.22
7.4.200.0040.00420.12
7.4.160.0090.00920.06
7.4.150.0070.01119.99
7.4.140.0150.00920.09
7.4.130.0070.01420.12
7.4.120.0090.01620.05
7.4.110.0090.01520.15
7.4.100.0120.00920.12
7.4.90.0060.01320.19
7.4.80.0170.01419.93
7.4.70.0150.00420.09
7.4.60.0000.01819.88
7.4.50.0060.00620.10
7.4.40.0130.00620.13
7.4.30.0180.00420.34
7.4.00.0120.00518.46
7.3.330.0060.00013.23
7.3.320.0000.00613.25
7.3.310.0030.00519.77
7.3.300.0090.00019.85
7.3.290.0030.00519.38
7.3.280.0090.01019.70
7.3.270.0100.01019.97
7.3.260.0090.01619.84
7.3.250.0130.01119.85
7.3.240.0190.00419.73
7.3.230.0110.01419.89
7.3.210.0070.01119.79
7.3.200.0070.01319.80
7.3.190.0080.01119.83
7.3.180.0180.00019.57
7.3.170.0120.01219.55
7.3.160.0120.00919.64
7.3.120.0100.01018.11
7.3.110.0080.00817.96
7.3.100.0000.01518.02
7.3.90.0040.01117.95
7.3.80.0090.00318.05
7.3.70.0040.01218.14
7.3.60.0030.01018.13
7.3.50.0070.01017.87
7.3.40.0100.00718.09
7.3.30.0090.00917.97
7.3.20.0140.00319.67
7.3.10.0110.00319.68
7.3.00.0060.00919.74
7.2.330.0200.00019.71
7.2.320.0130.01320.11
7.2.310.0140.00719.85
7.2.300.0110.00919.70
7.2.290.0100.01320.16
7.2.250.0110.00818.32
7.2.240.0090.01218.42
7.2.230.0060.00618.20
7.2.220.0110.00718.39
7.2.210.0080.00418.29
7.2.200.0040.01118.08
7.2.190.0060.01018.21
7.2.180.0080.00618.03
7.2.170.0030.01318.06
7.2.60.0130.01319.82
7.2.00.0140.00722.65
7.1.330.0070.01019.31
7.1.320.0030.01319.09
7.1.310.0070.01019.35
7.1.300.0100.00719.21
7.1.290.0100.00719.10
7.1.280.0070.01019.24
7.1.270.0110.00419.19
7.1.260.0110.00719.20
7.1.200.0060.00919.31
7.1.100.0070.00321.70
7.1.70.0000.01020.98
7.1.60.0030.02320.75
7.1.50.0140.01420.59
7.1.00.0070.07325.58
7.0.200.0000.01020.72
7.0.60.0300.07723.23
7.0.50.0130.07717.91
7.0.40.0100.08322.98
7.0.30.0270.06723.05
7.0.20.0270.08023.16
7.0.10.0130.07322.96
7.0.00.0070.09023.06
5.6.280.0070.07023.85
5.6.210.0070.07023.77
5.6.200.0100.05318.11
5.6.190.0130.07323.34
5.6.180.0130.07323.55
5.6.170.0370.07323.54
5.6.160.0100.05723.41
5.6.150.0070.04718.15
5.6.140.0030.07018.08
5.6.130.0030.04718.21
5.6.120.0200.04324.13
5.6.110.0070.04324.15
5.6.100.0070.06024.13
5.6.90.0070.08724.29
5.6.80.0030.04323.36
5.5.350.0300.07723.72
5.5.340.0100.08017.98
5.5.330.0030.08323.23
5.5.320.0430.05723.11
5.5.310.0330.07723.17
5.5.300.0030.04317.95
5.5.290.0000.07018.02
5.5.280.0000.04723.95
5.5.270.0130.08323.91
5.5.260.0170.04323.95
5.5.250.0030.08723.71
5.5.240.0230.07723.02

preferences:
157.51 ms | 403 KiB | 5 Q