3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month=(new \DateTime())->format('m'); $day=(new \DateTime())->format('d'); $year=(new \DateTime())->format('y'); if ($year % 2 == 0) { $yr=01; } else { $yr=02; } echo ($month.$day.$yr); ?>

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.0090.00618.43
8.3.50.0110.01022.04
8.3.40.0100.01018.79
8.3.30.0090.00619.17
8.3.20.0060.00320.34
8.3.10.0050.00320.69
8.3.00.0000.00819.47
8.2.180.0170.00316.75
8.2.170.0070.00722.96
8.2.160.0130.00020.11
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.13
8.2.110.0000.00920.52
8.2.100.0080.00418.22
8.2.90.0000.00719.39
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0120.00018.07
8.2.40.0000.00818.34
8.2.30.0020.00518.05
8.2.20.0020.00517.85
8.2.10.0000.00818.18
8.2.00.0000.00717.87
8.1.280.0090.00925.92
8.1.270.0040.00421.93
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.99
8.1.230.0110.00019.06
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0000.00818.70
8.1.160.0000.00721.88
8.1.150.0040.00418.95
8.1.140.0000.00717.55
8.1.130.0030.00317.80
8.1.120.0000.00717.64
8.1.110.0050.00317.68
8.1.100.0030.00317.68
8.1.90.0030.00517.71
8.1.80.0000.00717.60
8.1.70.0000.00717.50
8.1.60.0000.00917.72
8.1.50.0030.00517.55
8.1.40.0030.00617.64
8.1.30.0000.00817.79
8.1.20.0030.00617.78
8.1.10.0030.00517.58
8.1.00.0040.00417.73
8.0.300.0000.00818.77
8.0.290.0000.00817.00
8.0.280.0030.00318.46
8.0.270.0000.00717.23
8.0.260.0000.00617.32
8.0.250.0060.00317.20
8.0.240.0070.00017.14
8.0.230.0080.00317.12
8.0.220.0040.00417.06
8.0.210.0030.00317.05
8.0.200.0060.00017.04
8.0.190.0040.00417.14
8.0.180.0070.00017.08
8.0.170.0000.00917.14
8.0.160.0030.00317.21
8.0.150.0040.00416.94
8.0.140.0050.00316.91
8.0.130.0000.00513.43
8.0.120.0000.00817.07
8.0.110.0040.00417.02
8.0.100.0040.00417.01
8.0.90.0070.00017.05
8.0.80.0090.01317.05
8.0.70.0080.00017.20
8.0.60.0000.00717.10
8.0.50.0040.00417.05
8.0.30.0150.00617.08
8.0.20.0090.01017.40
8.0.10.0000.00717.20
8.0.00.0060.01316.89
7.4.330.0050.00015.14
7.4.320.0030.00316.53
7.4.300.0030.00316.64
7.4.290.0000.00716.65
7.4.280.0050.00216.65
7.4.270.0000.00716.70
7.4.260.0030.00316.62
7.4.250.0030.00516.70
7.4.240.0020.00516.69
7.4.230.0030.00316.56
7.4.220.0150.00316.84
7.4.210.0120.00316.63
7.4.200.0040.00416.45
7.4.160.0040.01216.80
7.4.150.0070.01017.40
7.4.140.0040.01617.86
7.4.130.0100.00816.56
7.4.120.0140.00516.76
7.4.110.0120.00916.56
7.4.100.0090.00916.55
7.4.90.0060.01316.67
7.4.80.0150.00719.39
7.4.70.0100.01016.51
7.4.60.0030.01716.60
7.4.50.0000.00716.49
7.4.40.0070.01016.74
7.4.30.0100.00616.75
7.4.00.0080.00815.12
7.3.330.0060.00013.27
7.3.320.0060.00013.19
7.3.310.0030.00516.28
7.3.300.0070.00016.28
7.3.290.0060.00916.34
7.3.280.0140.00616.43
7.3.270.0100.01017.40
7.3.260.0090.00816.51
7.3.250.0110.01216.66
7.3.240.0080.00816.56
7.3.230.0100.01016.55
7.3.210.0070.01016.47
7.3.200.0120.00919.39
7.3.190.0110.00616.42
7.3.180.0150.00316.63
7.3.170.0060.00916.49
7.3.160.0120.00916.59
7.3.120.0040.01415.14
7.3.110.0100.00714.63
7.3.100.0000.01415.04
7.3.90.0040.00815.04
7.3.80.0030.00615.04
7.3.70.0070.00714.75
7.3.60.0000.00915.07
7.3.50.0030.00915.07
7.3.40.0000.01315.05
7.3.30.0070.00714.69
7.3.20.0170.00016.79
7.3.10.0110.00416.80
7.3.00.0060.01316.53
7.2.330.0100.00716.85
7.2.320.0100.00716.82
7.2.310.0000.01516.77
7.2.300.0080.00816.55
7.2.290.0100.01316.80
7.2.250.0030.01415.15
7.2.240.0040.01215.24
7.2.230.0070.01015.27
7.2.220.0040.00815.41
7.2.210.0000.01215.34
7.2.200.0030.01315.24
7.2.190.0100.00715.01
7.2.180.0100.00714.86
7.2.170.0030.00915.27
7.2.60.0030.00516.91
7.2.00.0210.00519.33
7.1.330.0100.00315.68
7.1.320.0080.00815.88
7.1.310.0070.00715.87
7.1.300.0030.00916.04
7.1.290.0030.00715.78
7.1.280.0040.00816.00
7.1.270.0070.00715.93
7.1.260.0140.00015.78
7.1.200.0080.00015.98
7.1.100.0080.00818.09
7.1.70.0050.00317.23
7.1.60.0100.01319.32
7.1.50.0070.00317.02
7.1.00.0070.07322.31
7.0.200.0050.00516.89
7.0.140.0130.06322.07
7.0.60.0070.04020.07
7.0.50.0070.08717.87
7.0.40.0000.08720.12
7.0.30.0330.05320.09
7.0.20.0270.07320.12
7.0.10.0100.08719.99
7.0.00.0070.04020.13
5.6.280.0000.09721.05
5.6.210.0030.04320.71
5.6.200.0070.03718.18
5.6.190.0070.07720.56
5.6.180.0430.06720.61
5.6.170.0230.07020.52
5.6.160.0070.04020.61
5.6.150.0070.07318.22
5.6.140.0030.08318.18
5.6.130.0000.05318.21
5.6.120.0070.07020.75
5.6.110.0230.07720.97
5.6.100.0200.06321.07
5.6.90.0130.08021.05
5.6.80.0200.07320.50
5.5.350.0170.07720.52
5.5.340.0000.04317.92
5.5.330.0130.04320.21
5.5.320.0330.07320.50
5.5.310.0300.07320.41
5.5.300.0000.04017.92
5.5.290.0070.07318.00
5.5.280.0000.05720.84
5.5.270.0070.03720.78
5.5.260.0030.07720.86
5.5.250.0100.06720.68
5.5.240.0200.03720.13
5.4.450.0430.04719.13
5.4.440.1100.08319.55
5.4.430.0870.03319.45
5.4.420.0670.00019.64
5.4.410.0630.00019.35
5.4.400.0600.00018.96
5.4.390.0770.00019.05
5.4.380.0700.00019.21
5.4.370.0600.00019.08
5.4.360.0870.00019.07
5.4.350.0630.00019.21
5.4.340.0630.00019.07
5.4.320.0100.03812.46
5.4.310.0060.04212.45
5.4.300.0080.04412.45
5.4.290.0060.04812.46
5.4.280.0090.05012.35
5.4.270.0160.09212.35
5.4.260.0100.05712.35
5.4.250.0070.04112.35
5.4.240.0070.04212.35
5.4.230.0080.04612.34
5.4.220.0060.04412.34
5.4.210.0080.04712.34
5.4.200.0070.04712.34
5.4.190.0050.03712.34
5.4.180.0080.03812.34
5.4.170.0070.03712.35
5.4.160.0060.03612.35
5.4.150.0100.03712.34
5.4.140.0080.04412.03
5.4.130.0030.04112.02
5.4.120.0070.03711.97
5.4.110.0040.04511.97
5.4.100.0070.04711.97
5.4.90.0090.04611.97
5.4.80.0070.04111.97
5.4.70.0030.03811.96
5.4.60.0040.03811.96
5.4.50.0070.05211.96
5.4.40.0080.03511.95
5.4.30.0050.03711.95
5.4.20.0080.03711.95
5.4.10.0040.04211.95
5.4.00.0090.04211.44
5.3.290.0100.04112.80
5.3.280.0100.04112.71
5.3.270.0080.04312.73
5.3.260.0130.04412.72
5.3.250.0070.04512.72
5.3.240.0070.03612.72
5.3.230.0120.03312.70
5.3.220.0040.04012.68
5.3.210.0050.04112.68
5.3.200.0050.03912.68
5.3.190.0060.03712.68
5.3.180.0050.03812.68
5.3.170.0070.03712.67
5.3.160.0070.03612.67
5.3.150.0070.03712.67
5.3.140.0060.03912.66
5.3.130.0060.04212.66
5.3.120.0070.04112.65
5.3.110.0070.03812.65
5.3.100.0060.03712.12
5.3.90.0050.04112.08
5.3.80.0090.03512.08
5.3.70.0070.03512.07
5.3.60.0050.03712.06
5.3.50.0070.05112.00
5.3.40.0080.04012.00
5.3.30.0040.04011.96
5.3.20.0070.03511.74
5.3.10.0090.03811.71
5.3.00.0130.08211.70
5.2.170.0030.0389.18
5.2.160.0120.0309.18
5.2.150.0060.0319.18
5.2.140.0030.0349.18
5.2.130.0040.0309.14
5.2.120.0080.0269.14
5.2.110.0050.0299.15
5.2.100.0050.0299.14
5.2.90.0020.0329.14
5.2.80.0050.0309.14
5.2.70.0030.0329.14
5.2.60.0040.0319.09
5.2.50.0070.0379.06
5.2.40.0050.0309.04
5.2.30.0030.0319.01
5.2.20.0040.0299.00
5.2.10.0070.0268.92
5.2.00.0090.0378.78
5.1.60.0080.0278.06
5.1.50.0070.0238.06
5.1.40.0020.0288.05
5.1.30.0020.0308.40
5.1.20.0060.0258.41
5.1.10.0040.0378.14
5.1.00.0060.0248.14
5.0.50.0050.0196.62
5.0.40.0070.0196.48
5.0.30.0030.0326.29
5.0.20.0030.0206.26
5.0.10.0040.0196.24
5.0.00.0030.0406.23
4.4.90.0040.0174.78
4.4.80.0040.0204.75
4.4.70.0040.0214.75
4.4.60.0030.0214.75
4.4.50.0030.0224.77
4.4.40.0030.0284.70
4.4.30.0050.0174.76
4.4.20.0020.0234.85
4.4.10.0040.0174.85
4.4.00.0040.0314.76
4.3.110.0020.0164.67
4.3.100.0020.0164.67
4.3.90.0040.0134.64
4.3.80.0010.0264.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0194.63
4.3.40.0020.0294.54
4.3.30.0040.0143.29
4.3.20.0050.0173.26
4.3.10.0030.0203.22
4.3.00.0070.0204.41

preferences:
45.21 ms | 401 KiB | 5 Q