3v4l.org

run code in 300+ PHP versions simultaneously
<?php $DateTime = new \DateTime('2018-5-30'); $formatter = new IntlDateFormatter('en-US', IntlDateFormatter::SHORT, IntlDateFormatter::NONE, 'Europe/Berlin'); $timestamp = $formatter->parse('3/9/18'); echo $timestamp . "\r\n"; echo date('Y-m-d H:i:s', $timestamp) . "\r\n"; echo date('Y-m-d', $timestamp) . "\r\n";

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.01922.29
8.3.50.0070.02320.39
8.3.40.0130.00621.02
8.3.30.0040.01121.08
8.3.20.0030.00524.15
8.3.10.0040.00425.65
8.3.00.0000.00922.56
8.2.180.0070.02320.63
8.2.170.0040.01122.96
8.2.160.0070.00724.45
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0030.00622.53
8.2.110.0080.00324.46
8.2.100.0060.00620.97
8.2.90.0040.00422.92
8.2.80.0060.00321.03
8.2.70.0030.00621.04
8.2.60.0030.00621.22
8.2.50.0040.00421.28
8.2.40.0030.00524.52
8.2.30.0040.00421.75
8.2.20.0060.00321.09
8.2.10.0030.00520.73
8.2.00.0000.00821.18
8.1.280.0100.01925.92
8.1.270.0060.00326.17
8.1.260.0070.01026.35
8.1.250.0090.00028.09
8.1.240.0120.00324.46
8.1.230.0060.00622.13
8.1.220.0030.00620.53
8.1.210.0030.00620.54
8.1.200.0100.00320.35
8.1.190.0050.00520.48
8.1.180.0030.00620.41
8.1.170.0030.00521.81
8.1.160.0080.00021.24
8.1.150.0040.00421.20
8.1.140.0090.00020.66
8.1.130.0000.01221.38
8.1.120.0040.00420.60
8.1.110.0000.00820.76
8.1.100.0060.00320.81
8.1.90.0030.00520.81
8.1.80.0080.00020.76
8.1.70.0040.00420.79
8.1.60.0040.00420.77
8.1.50.0060.00320.80
8.1.40.0000.00820.71
8.1.30.0040.00721.03
8.1.20.0040.00420.75
8.1.10.0050.00320.80
8.1.00.0030.00620.80
8.0.300.0000.00822.10
8.0.290.0050.00319.88
8.0.280.0040.00420.83
8.0.270.0000.00820.02
8.0.260.0070.00019.98
8.0.250.0090.00020.33
8.0.240.0080.00020.34
8.0.230.0070.00020.25
8.0.220.0000.00820.24
8.0.210.0020.00520.24
8.0.200.0030.00320.25
8.0.190.0060.00320.25
8.0.180.0050.00520.09
8.0.170.0090.00020.26
8.0.160.0000.01019.98
8.0.150.0000.00820.01
8.0.140.0040.00420.10
8.0.130.0000.00513.46
8.0.120.0040.00420.15
8.0.110.0040.00420.16
8.0.100.0040.00420.38
8.0.90.0050.00520.41
8.0.80.0060.01620.33
8.0.70.0030.00620.48
8.0.60.0000.00920.26
8.0.50.0030.00620.30
8.0.30.0100.01020.22
8.0.20.0140.00820.63
8.0.10.0060.00320.31
8.0.00.0170.00420.11
7.4.330.0020.00215.55
7.4.320.0070.00319.96
7.4.300.0000.00720.02
7.4.290.0070.00019.76
7.4.280.0060.00320.01
7.4.270.0080.00019.99
7.4.260.0060.00319.66
7.4.250.0070.00019.95
7.4.240.0100.00019.89
7.4.230.0060.00319.98
7.4.220.0030.00619.98
7.4.210.0090.00719.79
7.4.200.0000.00819.77
7.4.160.0080.01119.72
7.4.140.0070.01219.90
7.4.130.0170.00719.73
7.4.120.0110.01119.87
7.4.110.0130.00620.03
7.4.100.0120.00619.84
7.4.90.0120.00619.90
7.4.80.0100.01019.79
7.4.70.0130.00719.82
7.4.60.0120.00619.69
7.4.50.0110.00819.90
7.4.40.0030.01619.73
7.4.00.0130.00718.16
7.3.330.0030.00313.27
7.3.320.0050.00313.32
7.3.310.0050.00319.50
7.3.300.0080.00019.70
7.3.290.0000.00819.65
7.3.280.0090.01319.46
7.3.260.0090.01019.79
7.3.240.0080.01219.75
7.3.230.0030.01519.64
7.3.210.0070.01019.89
7.3.200.0100.00719.76
7.3.190.0060.01419.95
7.3.180.0070.01019.66
7.3.170.0160.01019.72
7.3.160.0100.00719.70
7.3.120.0140.00918.08
7.3.110.0110.01117.79
7.3.100.0060.01118.00
7.3.90.0070.01117.95
7.3.80.0080.00718.07
7.3.70.0020.01017.93
7.3.60.0070.00717.82
7.3.50.0140.00317.99
7.3.40.0060.01217.79
7.3.30.0080.00517.94
7.3.20.0050.01019.65
7.3.10.0090.00619.74
7.3.00.0050.01119.84
7.2.330.0120.00819.82
7.2.320.0100.01019.91
7.2.310.0090.00919.69
7.2.300.0120.01219.21
7.2.290.0200.00619.75
7.2.250.0100.01518.27
7.2.240.0100.01518.12
7.2.230.0080.00818.32
7.2.220.0120.00518.11
7.2.210.0050.01018.29
7.2.200.0060.01018.22
7.2.190.0110.00418.32
7.2.180.0080.00918.29
7.2.170.0120.00618.29
7.2.60.0030.01020.10
7.2.30.0180.01121.42
7.2.20.0140.01421.72
7.2.10.0120.01521.18
7.2.00.0150.01421.74
7.1.330.0050.01319.12
7.1.320.0050.01119.21
7.1.310.0070.00919.05
7.1.300.0060.01019.14
7.1.290.0100.00719.07
7.1.280.0060.01119.08
7.1.270.0080.00618.95
7.1.260.0060.00919.15
7.1.200.0090.00619.00
7.1.150.0120.01120.05
7.1.140.0170.01220.02
7.1.130.0110.01220.54
7.1.120.0140.01220.25
7.1.110.0230.01019.29
7.1.100.0140.01319.26
7.1.90.0120.01219.71
7.1.80.0180.01119.55
7.1.70.0130.01619.12
7.1.60.0440.01035.81
7.1.50.0450.01735.66
7.1.40.0280.01835.06
7.1.30.0400.01335.36
7.1.20.0350.01435.29
7.1.10.0140.01218.07
7.1.00.0240.01418.09

preferences:
34.8 ms | 400 KiB | 5 Q