3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new IntlDateFormatter( 'ja_JP@calendar=japanese', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Europe/Madrid', IntlDateFormatter::TRADITIONAL, 'Gy年M月' ); $str = "令和元年8月"; $new = mb_ereg_replace("令和元年" , "2019年", $str); echo $new; $ts = $formatter->parse($new); //$ts = $formatter->parse('令和元年8月'); var_dump($ts, date('Y-m', $ts));

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.70.0130.01620.75
8.3.60.0040.03222.55
8.3.50.0100.02022.30
8.3.40.0090.00621.00
8.3.30.0130.00720.95
8.3.20.0000.00823.10
8.3.10.0040.00424.32
8.3.00.0090.00023.58
8.2.180.0000.02922.41
8.2.170.0080.00822.96
8.2.160.0150.00624.37
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0060.00326.16
8.2.110.0070.00422.87
8.2.100.0100.00320.72
8.2.90.0000.00922.48
8.2.80.0000.00820.75
8.2.70.0030.00620.91
8.2.60.0030.00621.34
8.2.50.0040.00420.63
8.2.40.0040.00423.39
8.2.30.0000.00821.65
8.2.20.0050.00321.13
8.2.10.0030.00621.83
8.2.00.0060.00321.61
8.1.280.0070.02225.92
8.1.270.0060.00326.26
8.1.260.0070.00426.35
8.1.250.0160.00028.09
8.1.240.0030.00624.50
8.1.230.0090.00322.16
8.1.220.0060.00320.90
8.1.210.0090.00020.48
8.1.200.0060.00320.38
8.1.190.0030.00620.35
8.1.180.0090.00020.63
8.1.170.0000.00921.74
8.1.160.0040.00421.32
8.1.150.0030.00621.29
8.1.140.0000.00822.60
8.1.130.0040.00422.45
8.1.120.0040.00420.62
8.1.110.0040.00420.55
8.1.100.0070.00320.55
8.1.90.0050.00320.62
8.1.80.0040.00420.63
8.1.70.0000.00820.66
8.1.60.0040.00420.64
8.1.50.0030.00620.55
8.1.40.0090.00020.66
8.1.30.0000.00820.91
8.1.20.0080.00020.94
8.1.10.0080.00020.72
8.1.00.0030.00520.66
8.0.300.0040.00423.71
8.0.290.0060.00320.00
8.0.280.0040.00420.96
8.0.270.0000.00820.49
8.0.260.0030.00322.46
8.0.250.0040.00420.41
8.0.240.0020.00520.36
8.0.230.0040.00420.39
8.0.220.0000.00720.29
8.0.210.0040.00420.07
8.0.200.0000.00920.25
8.0.190.0040.00420.28
8.0.180.0000.00920.01
8.0.170.0030.00620.11
8.0.160.0060.00319.91
8.0.150.0080.00019.88
8.0.140.0000.00920.02
8.0.130.0030.00313.29
8.0.120.0030.00620.13
8.0.110.0000.00820.01
8.0.100.0000.00819.84
8.0.90.0060.00319.96
8.0.80.0070.01020.20
8.0.70.0040.00419.98
8.0.60.0040.00419.98
8.0.50.0040.00419.97
8.0.30.0090.00920.25
8.0.20.0090.01020.44
8.0.10.0060.00320.00
8.0.00.0140.00619.94
7.4.330.0030.00315.55
7.4.320.0030.00319.99
7.4.300.0030.00319.79
7.4.290.0070.00320.07
7.4.280.0000.00820.02
7.4.270.0080.00019.72
7.4.260.0030.00313.23
7.4.250.0080.00019.99
7.4.240.0040.00419.67
7.4.230.0040.00420.06
7.4.220.0030.00519.79
7.4.210.0080.01119.88
7.4.200.0030.00619.61
7.4.130.0110.01119.95
7.4.120.0160.01720.00
7.4.110.0110.00720.12
7.4.100.0040.01519.98
7.4.90.0100.01019.84
7.4.80.0090.00919.87
7.4.70.0130.00619.90
7.4.60.0080.01119.79
7.4.50.0100.00720.05
7.4.40.0100.01019.77
7.4.00.0120.01018.34
7.3.330.0080.00019.18
7.3.320.0000.00613.12
7.3.310.0050.00319.43
7.3.300.0040.00419.43
7.3.290.0000.00819.30
7.3.280.0120.00619.49
7.3.260.0080.01219.58
7.3.240.0130.00619.55
7.3.230.0180.00719.43
7.3.210.0060.01619.79
7.3.200.0070.01019.57
7.3.190.0000.01819.68
7.3.180.0030.01419.75
7.3.170.0130.00619.35
7.3.160.0090.01219.73
7.3.120.0180.00917.75
7.3.110.0130.01317.84
7.3.100.0070.01317.95
7.3.90.0070.00917.84
7.3.80.0060.00917.87
7.3.70.0020.01217.84
7.3.60.0060.00817.85
7.3.50.0050.00717.84
7.3.40.0070.00617.95
7.3.30.0070.00917.87
7.3.20.0050.01418.64
7.3.10.0040.01418.60
7.3.00.0030.01118.89
7.2.330.0120.00619.82
7.2.320.0090.01119.74
7.2.310.0060.01319.87
7.2.300.0090.00919.42
7.2.290.0160.00319.43
7.2.250.0170.01018.02
7.2.240.0170.01018.37
7.2.230.0030.01118.07
7.2.220.0050.01118.30
7.2.210.0060.00918.03
7.2.200.0060.00718.19
7.2.190.0050.00818.10
7.2.180.0100.00718.22
7.2.170.0070.01118.15
7.2.160.0060.00818.19
7.2.150.0100.00419.04
7.2.140.0010.01219.21
7.2.130.0060.00919.21
7.2.120.0100.00319.31
7.2.110.0100.00719.09
7.2.100.0080.00819.10
7.2.90.0070.01019.28
7.2.80.0030.01019.39
7.2.70.0020.01519.14
7.2.60.0150.00519.38
7.2.50.0100.00619.22
7.2.40.0060.01119.03
7.2.30.0090.00919.30
7.2.20.0100.00519.22
7.2.10.0080.01119.30
7.2.00.0120.00719.14
7.1.330.0110.01519.17
7.1.320.0070.01218.30
7.1.310.0050.01118.12
7.1.300.0060.01018.14
7.1.290.0060.00618.32
7.1.280.0080.00618.14
7.1.270.0040.01318.27
7.1.260.0060.00718.09
7.1.250.0080.00718.20
7.1.240.0030.01319.31
7.1.230.0030.00618.95
7.1.220.0000.01419.19
7.1.210.0130.00319.21
7.1.200.0100.00718.96
7.1.190.0060.00919.12
7.1.180.0090.00619.05
7.1.170.0060.00919.08
7.1.160.0080.00419.15
7.1.150.0000.01119.09
7.1.140.0060.01018.85
7.1.130.0110.00719.05
7.1.120.0030.00919.20
7.1.110.0040.00719.19
7.1.100.0100.00619.14
7.1.90.0030.00618.74
7.1.80.0100.00319.07
7.1.70.0100.00319.16
7.1.60.0060.00919.35
7.1.50.0050.00519.02
7.1.40.0060.00319.21
7.1.30.0080.00419.16
7.1.20.0100.00319.20
7.1.10.0060.00919.06
7.1.00.0030.01018.97

preferences:
63.17 ms | 401 KiB | 5 Q