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年"); $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.0100.03322.55
8.3.50.0090.02222.29
8.3.40.0070.01021.09
8.3.30.0090.00920.79
8.3.20.0040.00422.94
8.3.10.0060.00324.33
8.3.00.0060.00323.39
8.2.180.0140.01422.67
8.2.170.0060.01022.96
8.2.160.0060.00924.41
8.2.150.0000.01024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0120.00022.70
8.2.100.0080.00420.84
8.2.90.0040.00422.48
8.2.80.0080.00020.50
8.2.70.0090.00020.80
8.2.60.0030.00521.22
8.2.50.0030.00620.50
8.2.40.0090.00023.32
8.2.30.0040.00421.37
8.2.20.0040.00421.01
8.2.10.0030.00621.63
8.2.00.0000.00821.50
8.1.280.0190.01925.92
8.1.270.0030.00626.13
8.1.260.0040.00826.35
8.1.250.0070.01028.09
8.1.240.0060.00324.27
8.1.230.0200.00621.98
8.1.220.0100.00020.66
8.1.210.0070.00320.23
8.1.200.0060.00320.36
8.1.190.0060.00320.23
8.1.180.0030.00620.53
8.1.170.0000.00821.78
8.1.160.0040.00421.25
8.1.150.0030.00521.11
8.1.140.0000.00922.38
8.1.130.0040.00422.29
8.1.120.0050.00320.52
8.1.110.0030.00620.45
8.1.100.0070.00320.61
8.1.90.0090.00020.51
8.1.80.0030.00620.54
8.1.70.0070.00020.41
8.1.60.0000.01020.49
8.1.50.0000.00820.53
8.1.40.0080.00320.39
8.1.30.0070.00320.66
8.1.20.0070.00320.79
8.1.10.0040.00420.46
8.1.00.0000.00820.52
8.0.300.0000.00823.82
8.0.290.0050.00819.50
8.0.280.0040.00420.73
8.0.270.0040.00420.21
8.0.260.0080.00022.36
8.0.250.0060.00320.17
8.0.240.0040.00420.32
8.0.230.0030.00520.34
8.0.220.0040.00420.13
8.0.210.0000.00820.09
8.0.200.0030.00620.13
8.0.190.0030.00620.19
8.0.180.0040.00420.05
8.0.170.0030.00619.96
8.0.160.0030.00620.11
8.0.150.0060.00319.74
8.0.140.0040.00419.93
8.0.130.0050.00013.38
8.0.120.0060.00320.10
8.0.110.0030.00719.92
8.0.100.0000.00820.04
8.0.90.0040.00420.02
8.0.80.0030.01320.00
8.0.70.0030.00620.17
8.0.60.0000.00820.27
8.0.50.0040.00420.02
8.0.30.0200.00220.22
8.0.20.0130.00620.09
8.0.10.0060.00320.30
8.0.00.0130.01320.04
7.4.330.0020.00215.55
7.4.320.0040.00419.88
7.4.300.0000.00719.84
7.4.290.0050.00219.95
7.4.280.0040.00419.83
7.4.270.0060.00319.70
7.4.260.0000.00513.18
7.4.250.0050.00319.95
7.4.240.0060.00219.89
7.4.230.0000.00820.06
7.4.220.0020.00620.06
7.4.210.0040.01420.14
7.4.200.0000.00920.15
7.4.130.0090.00919.88
7.4.120.0030.02319.84
7.4.110.0120.01219.82
7.4.100.0040.01619.99
7.4.90.0110.00719.75
7.4.80.0070.01119.77
7.4.70.0110.01219.93
7.4.60.0060.01319.80
7.4.50.0070.00519.88
7.4.40.0150.00319.83
7.4.10.0100.01018.24
7.4.00.0110.00818.34
7.3.330.0090.00019.01
7.3.320.0060.00013.25
7.3.310.0000.00819.29
7.3.300.0040.00419.12
7.3.290.0000.00719.25
7.3.280.0180.00319.44
7.3.260.0130.00719.46
7.3.240.0090.01219.43
7.3.230.0070.02019.33
7.3.210.0100.01019.27
7.3.200.0170.00019.46
7.3.190.0120.01219.30
7.3.180.0070.01119.36
7.3.170.0040.01519.48
7.3.160.0070.01119.56
7.3.130.0040.01417.63
7.3.120.0100.01018.07
7.3.110.0100.01018.09
7.3.100.0110.00717.95
7.3.90.0070.01017.61
7.3.80.0130.00217.51
7.3.70.0110.00717.79
7.3.60.0080.00817.90
7.3.50.0090.00717.75
7.3.40.0050.00917.69
7.3.30.0120.00617.46
7.3.20.0100.00718.63
7.3.10.0100.00918.73
7.3.00.0090.00718.50
7.2.330.0080.01119.48
7.2.320.0140.00519.71
7.2.310.0160.00319.64
7.2.300.0170.00319.52
7.2.290.0030.01619.54
7.2.260.0110.00718.25
7.2.250.0070.01118.09
7.2.240.0030.01418.33
7.2.230.0100.00718.16
7.2.220.0120.00818.32
7.2.210.0050.01018.20
7.2.200.0100.00517.97
7.2.190.0080.01018.16
7.2.180.0060.00918.05
7.2.170.0060.00918.01
7.2.160.0090.00818.17
7.2.150.0040.01719.13
7.2.140.0120.00819.20
7.2.130.0080.00719.13
7.2.120.0420.01019.09
7.2.110.0100.00619.02
7.2.100.0050.01019.02
7.2.90.0120.00319.26
7.2.80.0040.01119.21
7.2.70.0070.00818.96
7.2.60.0090.00819.10
7.2.50.0040.01419.15
7.2.40.0030.01319.09
7.2.30.0030.01319.10
7.2.20.0090.00719.17
7.2.10.0040.01119.18
7.2.00.0050.01219.08
7.1.330.0080.00619.32
7.1.320.0060.01018.26
7.1.310.0080.01018.20
7.1.300.0110.00818.06
7.1.290.0040.01118.11
7.1.280.0070.01218.06
7.1.270.0120.00318.00
7.1.260.0040.01217.96
7.1.250.0110.00518.15
7.1.240.0030.01319.28
7.1.230.0100.00318.93
7.1.220.0040.01119.29
7.1.210.0040.01118.70
7.1.200.0060.00619.17
7.1.190.0070.01119.10
7.1.180.0100.01019.32
7.1.170.0090.00619.14
7.1.160.0040.00718.98
7.1.150.0060.00319.27
7.1.140.0030.01018.98
7.1.130.0110.00619.18
7.1.120.0060.00919.06
7.1.110.0030.00919.04
7.1.100.0070.01019.37
7.1.90.0030.01018.88
7.1.80.0130.00318.96
7.1.70.0060.01019.21
7.1.60.0030.01019.09
7.1.50.0030.01019.06
7.1.40.0060.00919.02
7.1.30.0000.01518.93
7.1.20.0070.00719.35
7.1.10.0060.00918.84
7.1.00.0120.00318.82

preferences:
63.93 ms | 401 KiB | 5 Q