3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('2000-01-01'); $b = new DateTime('2010-01-01'); $diff = date_diff($a, $b); echo '$a=', $a->format('Y-m-d H:i:s'), "\n"; echo '$b=', $b->format('Y-m-d H:i:s'), "\n"; var_dump($diff);

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.4.20.0100.01017.89
8.4.10.0040.00417.70
8.3.150.0040.00416.45
8.3.140.0080.00016.69
8.3.130.0030.00518.61
8.3.120.0140.00718.67
8.3.110.0060.00316.66
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0040.00416.50
8.3.70.0180.00418.31
8.3.60.0070.01418.56
8.3.50.0140.00521.27
8.3.40.0000.01518.83
8.3.30.0070.00720.30
8.3.20.0040.00420.21
8.3.10.0000.00821.00
8.3.00.0040.00422.32
8.2.260.0130.00617.09
8.2.250.0150.00416.95
8.2.240.0120.00417.30
8.2.230.0060.00320.94
8.2.220.0040.00437.54
8.2.210.0140.00426.77
8.2.200.0060.00316.75
8.2.190.0040.01216.75
8.2.180.0160.00318.19
8.2.170.0120.00922.96
8.2.160.0120.00319.04
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00317.75
8.2.110.0070.00422.25
8.2.100.0030.00917.84
8.2.90.0050.00318.03
8.2.80.0030.00617.97
8.2.70.0080.00017.75
8.2.60.0050.00318.03
8.2.50.0030.00618.07
8.2.40.0070.00317.98
8.2.30.0040.00419.32
8.2.20.0040.00417.72
8.2.10.0050.00317.83
8.2.00.0040.00417.81
8.1.310.0090.00916.72
8.1.300.0100.01316.05
8.1.290.0030.00618.88
8.1.280.0100.00725.92
8.1.270.0070.00321.98
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00622.55
8.1.230.0060.00622.64
8.1.220.0000.00817.89
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0040.00417.48
8.1.180.0000.00918.10
8.1.170.0060.00318.77
8.1.160.0040.00418.92
8.1.150.0000.00718.66
8.1.140.0040.00417.57
8.1.130.0000.00917.91
8.1.120.0040.00417.64
8.1.110.0050.00317.64
8.1.100.0070.00017.46
8.1.90.0000.00817.59
8.1.80.0040.00417.48
8.1.70.0050.00317.52
8.1.60.0050.00317.53
8.1.50.0040.00417.59
8.1.40.0030.00617.58
8.1.30.0070.00017.59
8.1.20.0040.00417.75
8.1.10.0040.00417.59
8.1.00.0000.00817.64
8.0.300.0030.00519.96
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0030.00317.33
8.0.260.0070.00316.96
8.0.250.0000.00717.17
8.0.240.0050.00317.05
8.0.230.0050.00316.95
8.0.220.0080.00016.98
8.0.210.0070.00016.99
8.0.200.0000.00817.09
8.0.190.0040.00416.94
8.0.180.0000.00816.94
8.0.170.0050.00317.04
8.0.160.0070.00016.96
8.0.150.0040.00316.86
8.0.140.0000.00717.05
8.0.130.0000.00813.31
8.0.120.0070.00016.98
8.0.110.0080.00016.96
8.0.100.0050.00317.00
8.0.90.0080.00016.97
8.0.80.0110.00417.01
8.0.70.0050.00317.07
8.0.60.0050.00217.00
8.0.50.0050.00317.01
8.0.30.0100.01217.30
8.0.20.0090.01217.40
8.0.10.0040.00417.13
8.0.00.0150.00616.94
7.4.330.0050.00016.77
7.4.320.0000.00616.67
7.4.300.0030.00316.67
7.4.290.0000.00816.65
7.4.280.0000.00716.66
7.4.270.0070.00016.66
7.4.260.0050.00013.17
7.4.250.0070.00016.45
7.4.240.0050.00216.61
7.4.230.0000.00716.70
7.4.220.0030.01716.64
7.4.210.0110.00616.60
7.4.200.0070.00016.48
7.4.190.0000.00716.84
7.4.150.0110.00717.40
7.4.140.0080.01417.86
7.4.130.0140.00816.62
7.4.120.0170.00316.78
7.4.110.0110.00716.51
7.4.100.0090.01016.65
7.4.90.0210.00316.41
7.4.80.0070.01019.39
7.4.70.0090.00916.74
7.4.60.0130.00816.47
7.4.50.0040.00416.16
7.4.40.0030.01322.77
7.4.30.0190.00416.52
7.4.10.0070.01315.30
7.4.00.0040.01514.90
7.3.330.0050.00013.13
7.3.320.0000.00613.14
7.3.310.0020.00516.07
7.3.300.0000.00716.11
7.3.290.0070.00716.32
7.3.280.0080.01016.29
7.3.270.0090.00917.40
7.3.260.0090.01318.24
7.3.250.0110.00716.43
7.3.240.0080.01516.51
7.3.230.0140.00716.41
7.3.210.0100.00716.40
7.3.200.0180.00619.39
7.3.190.0140.00416.45
7.3.180.0060.00916.27
7.3.170.0100.00716.39
7.3.160.0170.00716.28
7.3.130.0000.01814.82
7.3.120.0080.01014.72
7.3.110.0080.01214.89
7.3.100.0080.00814.91
7.3.90.0120.00615.00
7.3.80.0130.00714.89
7.3.70.0030.00714.87
7.3.60.0080.00414.85
7.3.50.0170.00014.70
7.3.40.0040.01114.66
7.3.30.0070.00714.64
7.3.20.0000.00916.56
7.3.10.0040.01116.36
7.3.00.0070.01016.65
7.2.330.0110.00716.76
7.2.320.0000.01916.56
7.2.310.0170.00716.86
7.2.300.0090.01316.89
7.2.290.0140.00616.88
7.2.260.0060.01215.05
7.2.250.0040.01515.00
7.2.240.0070.00714.91
7.2.230.0000.01215.14
7.2.220.0080.00315.23
7.2.210.0100.01015.24
7.2.200.0100.00314.89
7.2.190.0060.01015.10
7.2.180.0140.00314.97
7.2.170.0110.00014.97
7.2.160.0110.00415.11
7.2.150.0080.00817.04
7.2.140.0030.01316.77
7.2.130.0090.00016.98
7.2.120.0060.00816.83
7.2.110.0120.00616.88
7.2.100.0030.01216.77
7.2.90.0030.00916.96
7.2.80.0080.00816.77
7.2.70.0000.01016.50
7.2.60.0080.00617.07
7.2.50.0040.01116.69
7.2.40.0090.00316.92
7.2.30.0080.00816.57
7.2.20.0030.01017.07
7.2.10.0000.01217.10
7.2.00.0070.00718.18
7.1.330.0030.01015.89
7.1.320.0080.00515.68
7.1.310.0070.00315.85
7.1.300.0030.00615.83
7.1.290.0040.01115.72
7.1.280.0000.00915.75
7.1.270.0060.00615.70
7.1.260.0030.01315.94
7.1.250.0060.00615.93
7.1.240.0070.00315.65
7.1.230.0060.00615.76
7.1.220.0030.01315.88
7.1.210.0000.01015.93
7.1.200.0080.00615.94
7.1.190.0060.00615.96
7.1.180.0030.01215.88
7.1.170.0000.01015.86
7.1.160.0030.00615.84
7.1.150.0040.01115.67
7.1.140.0060.01015.81
7.1.130.0000.00815.69
7.1.120.0060.00615.86
7.1.110.0070.00315.88
7.1.100.0040.00816.92
7.1.90.0060.00615.99
7.1.80.0070.00715.89
7.1.70.0060.00516.65
7.1.60.0110.00817.49
7.1.50.0060.01116.54
7.1.40.0000.01415.99
7.1.30.0000.01115.98
7.1.20.0120.00015.87
7.1.10.0070.00415.53
7.1.00.0060.01819.18
7.0.330.0060.00615.24
7.0.320.0100.00015.65
7.0.310.0100.00715.32
7.0.300.0060.00315.28
7.0.290.0070.00715.11
7.0.280.0030.00615.39
7.0.270.0060.00615.54
7.0.260.0110.00315.62
7.0.250.0040.00815.66
7.0.240.0060.00315.51
7.0.230.0050.00515.47
7.0.220.0040.01115.40
7.0.210.0060.00915.41
7.0.200.0030.00716.19
7.0.190.0040.00815.45
7.0.180.0040.01215.57
7.0.170.0000.00915.75
7.0.160.0070.00415.54
7.0.150.0070.01015.57
7.0.140.0080.03718.75
7.0.130.0060.00915.67
7.0.120.0040.00815.45
7.0.110.0060.00315.48
7.0.100.0080.04517.72
7.0.90.0100.04717.77
7.0.80.0110.04417.71
7.0.70.0110.04417.57
7.0.60.0080.05517.73
7.0.50.0100.04217.88
7.0.40.0110.04316.84
7.0.30.0090.04316.72
7.0.20.0060.05116.78
7.0.10.0130.04316.71
7.0.00.0110.04116.79
5.6.400.0100.00714.18
5.6.390.0030.00914.63
5.6.380.0000.00914.46
5.6.370.0070.01114.49
5.6.360.0030.01014.48
5.6.350.0000.00914.30
5.6.340.0030.00914.34
5.6.330.0060.00314.33
5.6.320.0040.01214.59
5.6.310.0070.00714.24
5.6.300.0080.00414.43
5.6.290.0060.00914.53
5.6.280.0060.03917.77
5.6.270.0030.00714.53
5.6.260.0040.00814.42
5.6.250.0100.04217.55
5.6.240.0070.04017.53
5.6.230.0030.04517.51
5.6.220.0130.03617.49
5.6.210.0040.02617.52
5.6.200.0090.03917.77
5.6.190.0100.04017.66
5.6.180.0070.04717.58
5.6.170.0000.04317.89
5.6.160.0110.03817.76
5.6.150.0050.04217.66
5.6.140.0110.03017.86
5.6.130.0070.02417.71
5.6.120.0140.04217.61
5.6.110.0050.04317.66
5.6.100.0050.04417.77
5.6.90.0100.04517.74
5.6.80.0080.04317.31
5.6.70.0110.03817.38
5.6.60.0080.03017.34
5.6.50.0080.04317.47
5.6.40.0030.04917.39
5.6.30.0080.04017.40
5.6.20.0050.03117.29
5.6.10.0030.03817.39
5.6.00.0050.05317.28
5.5.380.0100.04517.31
5.5.370.0150.04017.43
5.5.360.0030.05117.48
5.5.350.0090.03917.46
5.5.340.0090.04317.63
5.5.330.0040.04617.71
5.5.320.0070.04217.69
5.5.310.0110.04217.34
5.5.300.0060.03017.60
5.5.290.0080.02517.47
5.5.280.0180.03617.69
5.5.270.0000.03917.68
5.5.260.0100.04317.56
5.5.250.0070.04217.28
5.5.240.0050.04517.11
5.5.230.0140.03717.36
5.5.220.0060.04217.23
5.5.210.0130.03517.12
5.5.200.0030.04517.36
5.5.190.0020.04417.32
5.5.180.0030.04617.19
5.5.170.0070.00714.14
5.5.160.0070.04317.35
5.5.150.0090.03717.25
5.5.140.0060.04017.14
5.5.130.0110.01817.09
5.5.120.0060.04317.18
5.5.110.0050.03917.25
5.5.100.0100.03817.10
5.5.90.0080.04117.21
5.5.80.0050.04316.90
5.5.70.0050.02917.14
5.5.60.0120.02817.22
5.5.50.0030.04317.24
5.5.40.0050.04017.21
5.5.30.0080.03217.22
5.5.20.0050.02417.28
5.5.10.0050.03617.08
5.5.00.0110.03117.31
5.4.450.0040.04414.94
5.4.440.0020.04615.24
5.4.430.0090.04115.18
5.4.420.0070.04315.18
5.4.410.0100.03815.08
5.4.400.0050.04114.89
5.4.390.0080.04015.07
5.4.380.0060.04014.87
5.4.370.0090.04114.81
5.4.360.0080.03814.93
5.4.350.0070.03814.97
5.4.340.0090.04115.12
5.4.330.0060.00910.96
5.4.320.0080.04415.01
5.4.310.0100.03714.96
5.4.300.0040.02515.13
5.4.290.0070.02215.04
5.4.280.0070.03815.01
5.4.270.0060.03814.99
5.4.260.0000.04414.90
5.4.250.0110.02715.01
5.4.240.0020.03715.16
5.4.230.0050.03314.97
5.4.220.0020.02815.10
5.4.210.0060.03614.89
5.4.200.0070.03915.13
5.4.190.0030.02215.05
5.4.180.0030.02314.88
5.4.170.0050.04015.14
5.4.160.0030.03415.09
5.4.150.0050.02615.06
5.4.140.0100.03513.71
5.4.130.0050.02313.65
5.4.120.0030.04413.75
5.4.110.0070.04013.86
5.4.100.0060.04113.68
5.4.90.0050.04213.66
5.4.80.0020.04213.74
5.4.70.0020.04613.77
5.4.60.0090.03713.63
5.4.50.0140.03013.67
5.4.40.0040.04013.65
5.4.30.0080.02313.65
5.4.20.0050.03913.58
5.4.10.0070.03713.64
5.4.00.0060.03513.35
5.3.290.0050.04012.53
5.3.280.0060.04012.54
5.3.270.0030.03212.66
5.3.260.0070.02412.50
5.3.250.0050.04112.55
5.3.240.0060.04112.59
5.3.230.0090.03912.63
5.3.220.0070.04212.55
5.3.210.0050.03112.43
5.3.200.0090.03212.47
5.3.190.0100.03512.55
5.3.180.0040.02712.49
5.3.170.0070.03712.62
5.3.160.0100.03512.60
5.3.150.0060.04112.60
5.3.140.0080.03612.54
5.3.130.0110.03212.54
5.3.120.0050.03512.43
5.3.110.0050.04512.58
5.3.100.0030.03512.15
5.3.90.0050.04012.27
5.3.80.0060.03912.24
5.3.70.0060.03412.09
5.3.60.0090.03512.32
5.3.50.0080.03712.17
5.3.40.0080.03812.24
5.3.30.0070.03612.27
5.3.20.0050.03012.11
5.3.10.0030.02211.98
5.3.00.0060.01912.00
5.2.170.0070.04010.96
5.2.160.0070.05011.00
5.2.150.0000.06710.98
5.2.140.0070.06310.98
5.2.130.0100.04310.93
5.2.120.0030.03011.13
5.2.110.0070.04311.02
5.2.100.0070.02711.09
5.2.90.0000.03011.02
5.2.80.0000.03311.08
5.2.70.0100.04711.14
5.2.60.0100.02710.84
5.2.50.0030.04710.88
5.2.40.0030.03010.83
5.2.30.0030.02710.80
5.2.20.0030.03310.99
5.2.10.0100.02310.71
5.2.00.0000.03310.74
5.1.60.0000.0239.97
5.1.50.0000.0239.87
5.1.40.0000.02310.02
5.1.30.0030.04010.39
5.1.20.0030.02710.25
5.1.10.0000.03010.05
5.1.00.0000.02710.06
5.0.50.0030.0208.59
5.0.40.0030.0208.39
5.0.30.0000.0378.15
5.0.20.0030.0278.26
5.0.10.0030.0208.16
5.0.00.0000.0308.23
4.4.90.0030.0178.15
4.4.80.0030.0178.15
4.4.70.0000.0178.15
4.4.60.0000.0178.15
4.4.50.0000.0178.15
4.4.40.0070.0378.15
4.4.30.0070.0178.15
4.4.20.0000.0178.15
4.4.10.0000.0378.15
4.4.00.0000.0238.15
4.3.110.0030.0138.15
4.3.100.0030.0178.15
4.3.90.0000.0238.15
4.3.80.0000.0238.15
4.3.70.0000.0278.15
4.3.60.0000.0138.15
4.3.50.0000.0178.15
4.3.40.0000.0208.15
4.3.30.0000.0278.15
4.3.20.0000.0238.15
4.3.10.0030.0208.15
4.3.00.0000.0178.15

preferences:
38.07 ms | 403 KiB | 5 Q