3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "All 3 should show the fractions of second:\n"; echo var_dump((new \DateTime())->format('Y-m-d\TH:i:s.u')); echo var_dump((new \IntlDateFormatter( 'en-US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'UTC', \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH:mm:ss.SSSSSS' ))->format(new \DateTime())); echo var_dump(datefmt_create( 'en-US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL, 'UTC', \IntlDateFormatter::GREGORIAN, 'yyyy-MM-dd HH:mm:ss.SSSSSS' )->format(new \DateTime()));

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.0170.00320.13
8.3.50.0100.01021.55
8.3.40.0100.00620.92
8.3.30.0130.00320.88
8.3.20.0040.00422.59
8.3.10.0000.00922.64
8.3.00.0080.00025.78
8.2.180.0110.01125.92
8.2.170.0160.00622.96
8.2.160.0090.00624.51
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00924.39
8.2.120.0030.00626.35
8.2.110.0080.00323.93
8.2.100.0060.00620.84
8.2.90.0030.00620.90
8.2.80.0030.00621.04
8.2.70.0040.00420.55
8.2.60.0030.00621.03
8.2.50.0060.00320.63
8.2.40.0000.00822.84
8.2.30.0000.00822.61
8.2.20.0040.00421.06
8.2.10.0000.00820.87
8.2.00.0000.00821.20
8.1.280.0160.01225.92
8.1.270.0030.00624.31
8.1.260.0030.00526.35
8.1.250.0090.00028.09
8.1.240.0030.00724.72
8.1.230.0160.00423.85
8.1.220.0040.00423.88
8.1.210.0040.00421.77
8.1.200.0160.00020.10
8.1.190.0060.00320.35
8.1.180.0000.01020.40
8.1.170.0030.00621.78
8.1.160.0030.00721.05
8.1.150.0040.00422.56
8.1.140.0040.00422.38
8.1.130.0000.00921.29
8.1.120.0040.00420.48
8.1.110.0030.00720.38
8.1.100.0050.00320.57
8.1.90.0080.00020.39
8.1.80.0000.00920.59
8.1.70.0000.00820.63
8.1.60.0030.00720.61
8.1.50.0000.00820.51
8.1.40.0030.00620.62
8.1.30.0040.00420.79
8.1.20.0000.00820.91
8.1.10.0000.00920.62
8.1.00.0060.00320.60
8.0.300.0090.00022.09
8.0.290.0000.00820.00
8.0.280.0000.00820.72
8.0.270.0090.00019.88
8.0.260.0040.00420.31
8.0.250.0040.00420.14
8.0.240.0000.00920.29
8.0.230.0000.00820.02
8.0.220.0040.00420.13
8.0.210.0050.00219.98
8.0.200.0000.00720.12
8.0.190.0030.00620.06
8.0.180.0000.00820.05
8.0.170.0000.00820.07
8.0.160.0040.00420.03
8.0.150.0050.00519.84
8.0.140.0030.00519.82
8.0.130.0030.00313.49
8.0.120.0000.00820.15
8.0.110.0060.00320.17
8.0.100.0040.00420.02
8.0.90.0060.00320.14
8.0.80.0170.00020.16
8.0.70.0040.00420.02
8.0.60.0000.00820.17
8.0.50.0040.00420.29
8.0.30.0110.01020.25
8.0.20.0130.00920.48
8.0.10.0050.00320.30
8.0.00.0140.00619.91
7.4.330.0020.00215.55
7.4.320.0000.00819.91
7.4.300.0000.00719.71
7.4.290.0000.00919.58
7.4.280.0030.00619.77
7.4.270.0030.00619.90
7.4.260.0030.00619.91
7.4.250.0040.00419.89
7.4.240.0000.00819.77
7.4.230.0000.00819.85
7.4.220.0090.00819.95
7.4.210.0150.00719.94
7.4.200.0080.00019.84
7.4.160.0090.00819.74
7.4.150.0070.01419.70
7.4.140.0140.00819.70
7.4.130.0130.01419.65
7.4.120.0160.00419.72
7.4.110.0120.00919.89
7.4.100.0070.01319.55
7.4.90.0100.01019.81
7.4.80.0100.01019.79
7.4.70.0140.00719.67
7.4.60.0030.01419.73
7.4.50.0070.01020.04
7.4.40.0050.01419.70
7.4.30.0070.01319.80
7.4.00.0070.01018.34
7.3.330.0000.00513.23
7.3.320.0030.00313.15
7.3.310.0040.00419.50
7.3.300.0040.00419.38
7.3.290.0040.00419.19
7.3.280.0080.01119.43
7.3.270.0120.00619.55
7.3.260.0090.01019.62
7.3.250.0130.00719.71
7.3.240.0090.01019.46
7.3.230.0200.00019.62
7.3.210.0090.00919.73
7.3.200.0100.01019.73
7.3.190.0140.00419.61
7.3.180.0140.00319.68
7.3.170.0140.00619.34
7.3.160.0120.00619.37
7.2.330.0120.00819.62
7.2.320.0030.01519.80
7.2.310.0150.00319.87
7.2.300.0060.01519.86
7.2.290.0100.01719.75
7.2.60.0040.01119.84
7.2.00.0100.01022.77
7.1.200.0070.01418.80
7.1.70.0030.00820.44
7.1.60.0080.00420.59
7.1.50.0060.00620.60
7.1.40.0030.01019.90
7.1.30.0120.00419.95
7.1.20.0040.01120.01
7.1.10.0060.00319.81
7.1.00.0000.01020.01
7.0.200.0000.00820.41
7.0.190.0000.00920.27
7.0.180.0060.00919.61
7.0.170.0030.00919.72
7.0.160.0040.00419.46
7.0.150.0030.00719.42
7.0.140.0030.00619.39
7.0.130.0000.01019.98
7.0.120.0090.00019.82
7.0.110.0000.01019.76
7.0.100.0050.00819.60
7.0.90.0000.01019.43
7.0.80.0030.01219.49
7.0.70.0030.00719.44
7.0.60.0030.00619.19
7.0.50.0000.01019.68
7.0.40.0030.01317.73
7.0.30.0040.01117.68
7.0.20.0030.00817.64
7.0.10.0030.00917.64
7.0.00.0030.00617.67

preferences:
57.42 ms | 401 KiB | 5 Q