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($str , "令和元年" , "2019年"); 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.60.0140.02122.55
8.3.50.0130.01922.05
8.3.40.0120.00421.23
8.3.30.0100.01020.93
8.3.20.0060.00322.98
8.3.10.0040.00424.16
8.3.00.0000.00823.52
8.2.180.0140.02122.43
8.2.170.0160.00022.96
8.2.160.0210.00024.29
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0070.00322.32
8.2.100.0100.00320.72
8.2.90.0080.00022.89
8.2.80.0040.00420.92
8.2.70.0000.01021.04
8.2.60.0050.00321.22
8.2.50.0000.00920.63
8.2.40.0080.00023.44
8.2.30.0000.00921.57
8.2.20.0030.00521.10
8.2.10.0000.00821.77
8.2.00.0060.00321.59
8.1.280.0070.02125.92
8.1.270.0000.00825.79
8.1.260.0000.01126.35
8.1.250.0040.01428.09
8.1.240.0100.00324.23
8.1.230.0090.00323.84
8.1.220.0080.00020.66
8.1.210.0060.00322.04
8.1.200.0030.00620.48
8.1.190.0030.00620.00
8.1.180.0060.00320.53
8.1.170.0030.00621.62
8.1.160.0040.00421.30
8.1.150.0040.00421.22
8.1.140.0030.00522.46
8.1.130.0050.00222.30
8.1.120.0080.00020.41
8.1.110.0090.00020.45
8.1.100.0040.00820.60
8.1.90.0080.00020.55
8.1.80.0000.00820.44
8.1.70.0000.00820.58
8.1.60.0060.00320.56
8.1.50.0030.00520.48
8.1.40.0000.00920.51
8.1.30.0060.00320.82
8.1.20.0060.00320.71
8.1.10.0040.00420.70
8.1.00.0030.00620.70
8.0.300.0100.00022.16
8.0.290.0060.00319.88
8.0.280.0050.00320.80
8.0.270.0080.00020.34
8.0.260.0070.00022.31
8.0.250.0050.00220.25
8.0.240.0000.00720.30
8.0.230.0000.00720.29
8.0.220.0070.00020.27
8.0.210.0050.00320.16
8.0.200.0030.00620.28
8.0.190.0040.00420.09
8.0.180.0060.00319.98
8.0.170.0060.00320.00
8.0.160.0000.00919.88
8.0.150.0060.00319.75
8.0.140.0090.00019.95
8.0.130.0000.00513.29
8.0.120.0040.00420.03
8.0.110.0050.00320.03
8.0.100.0000.00920.18
8.0.90.0040.00419.96
8.0.80.0060.01620.14
8.0.70.0030.00520.17
8.0.60.0030.00620.13
8.0.50.0080.00020.28
8.0.30.0130.00720.15
8.0.20.0100.01020.07
8.0.10.0000.00920.20
8.0.00.0140.00619.96
7.4.330.0000.00615.55
7.4.320.0030.00319.92
7.4.300.0070.00019.54
7.4.290.0080.00019.91
7.4.280.0030.00619.85
7.4.270.0050.00319.54
7.4.260.0030.00313.16
7.4.250.0050.00420.07
7.4.240.0040.00419.90
7.4.230.0040.00419.97
7.4.220.0030.00419.90
7.4.210.0050.01219.73
7.4.200.0000.00820.16
7.4.130.0060.01319.86
7.4.120.0100.01619.86
7.4.110.0170.00319.83
7.4.100.0050.01419.98
7.4.90.0130.00619.98
7.4.80.0120.00619.71
7.4.70.0030.01619.84
7.4.60.0130.00619.77
7.4.50.0040.01519.88
7.4.40.0100.01319.98
7.4.00.0040.01118.22
7.3.330.0070.00019.28
7.3.320.0060.00013.14
7.3.310.0030.00619.53
7.3.300.0000.00819.34
7.3.290.0070.00019.52
7.3.280.0090.01519.34
7.3.260.0120.01019.53
7.3.240.0110.01019.56
7.3.230.0200.00719.79
7.3.210.0110.00819.50
7.3.200.0040.01519.39
7.3.190.0120.01219.57
7.3.180.0060.01319.68
7.3.170.0090.01019.55
7.3.160.0090.00919.71
7.3.100.0100.01217.79
7.3.90.0060.01317.95
7.3.80.0030.01418.00
7.3.70.0060.00917.82
7.3.60.0090.00917.47
7.3.50.0000.01717.79
7.3.40.0100.00717.74
7.3.30.0030.01417.65
7.3.20.0070.01017.71
7.3.10.0100.00717.86
7.3.00.0080.00817.59
7.2.330.0070.01319.84
7.2.320.0090.00919.81
7.2.310.0120.01119.63
7.2.300.0160.00319.86
7.2.290.0080.01119.81
7.2.230.0130.01018.09
7.2.220.0090.00818.15
7.2.210.0030.01418.04
7.2.200.0030.01318.26
7.2.190.0150.00918.17
7.2.180.0160.00818.25
7.2.170.0060.00918.22
7.2.160.0160.00018.21
7.2.150.0090.00918.40
7.2.140.0060.01218.17
7.2.130.0120.01218.20
7.2.120.0110.01218.25
7.2.110.0120.00318.13
7.2.100.0130.01018.03
7.2.90.0240.00818.43
7.2.80.0080.01118.39
7.2.70.0110.01118.16
7.2.60.0100.01018.31
7.2.50.0080.00818.34
7.2.40.0170.01018.25
7.2.30.0060.00918.43
7.2.20.0110.00718.44
7.2.10.0100.00718.11
7.2.00.0100.00718.02
7.1.320.0070.01017.32
7.1.310.0150.00017.30
7.1.300.0180.00317.13
7.1.290.0140.00817.19
7.1.280.0120.00417.12
7.1.270.0080.00817.36
7.1.260.0120.00617.41
7.1.250.0100.01317.37

preferences:
75.47 ms | 401 KiB | 5 Q