3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SectionRegistry { const fieldsDates = [ 'date' => true, ]; function __construct($db) { if(isset(static::fieldsDates[$db])) print "$db\n"; } } new SectionRegistry('date'); new SectionRegistry('time');

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.00616.38
8.3.50.0150.00316.57
8.3.40.0110.00318.57
8.3.30.0090.00618.75
8.3.20.0000.00820.38
8.3.10.0030.00521.92
8.3.00.0040.00423.49
8.2.180.0140.00016.38
8.2.170.0110.00322.96
8.2.160.0070.00720.48
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.01120.54
8.2.110.0060.00319.27
8.2.100.0090.00317.78
8.2.90.0050.00319.18
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0000.00817.91
8.2.50.0000.00818.22
8.2.40.0070.00020.60
8.2.30.0070.00019.25
8.2.20.0000.00718.23
8.2.10.0030.00618.10
8.2.00.0040.00417.93
8.1.280.0000.01425.92
8.1.270.0030.00622.40
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0000.01217.72
8.1.220.0090.00317.76
8.1.210.0050.00318.77
8.1.200.0120.00017.22
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0080.00018.45
8.1.160.0020.00518.91
8.1.150.0000.00720.26
8.1.140.0040.00417.32
8.1.130.0000.00718.99
8.1.120.0000.00817.30
8.1.110.0070.00317.22
8.1.100.0040.00417.38
8.1.90.0040.00417.34
8.1.80.0030.00617.28
8.1.70.0040.00417.42
8.1.60.0040.00417.48
8.1.50.0050.00317.45
8.1.40.0040.00417.41
8.1.30.0000.00717.45
8.1.20.0070.00017.59
8.1.10.0000.00717.52
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0020.00516.75
8.0.280.0080.00018.38
8.0.270.0030.00317.16
8.0.260.0030.00318.47
8.0.250.0030.00316.95
8.0.240.0000.00716.84
8.0.230.0070.00016.90
8.0.220.0070.00016.69
8.0.210.0000.00716.79
8.0.200.0000.00616.88
8.0.190.0050.00316.85
8.0.180.0000.00716.79
8.0.170.0040.00416.73
8.0.160.0040.00416.90
8.0.150.0030.00516.63
8.0.140.0070.00016.79
8.0.130.0050.00013.26
8.0.120.0040.00416.68
8.0.110.0100.00016.70
8.0.100.0050.00316.70
8.0.90.0040.00416.61
8.0.80.0090.00916.70
8.0.70.0050.00216.77
8.0.60.0000.00916.89
8.0.50.0000.00816.72
8.0.30.0160.00517.00
8.0.20.0070.01217.40
8.0.10.0040.00417.05
8.0.00.0130.00616.80
7.4.330.0000.00515.55
7.4.320.0030.00316.37
7.4.300.0000.00616.54
7.4.290.0030.00316.33
7.4.280.0040.00416.57
7.4.270.0070.00016.54
7.4.260.0050.00316.53
7.4.250.0000.00716.48
7.4.240.0070.00016.58
7.4.230.0070.00016.54
7.4.220.0100.00716.43
7.4.210.0080.00716.37
7.4.200.0070.00016.52
7.4.160.0110.00516.38
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0090.00816.28
7.4.120.0130.00716.33
7.4.110.0140.01116.64
7.4.100.0110.00716.41
7.4.90.0130.00416.39
7.4.80.0110.00619.39
7.4.70.0090.01316.36
7.4.60.0060.01016.29
7.4.50.0070.00716.39
7.4.40.0060.01216.29
7.4.30.0150.00616.53
7.4.10.0130.00315.09
7.4.00.0100.00614.90
7.3.330.0030.00313.16
7.3.320.0060.00013.28
7.3.310.0070.00016.28
7.3.300.0000.00716.29
7.3.290.0030.00316.18
7.3.280.0100.00716.30
7.3.270.0100.00717.40
7.3.260.0100.00816.37
7.3.250.0120.00716.33
7.3.240.0120.00516.33
7.3.230.0100.00716.32
7.3.210.0130.00516.44
7.3.200.0030.01316.27
7.3.190.0090.00616.47
7.3.180.0100.00616.43
7.3.170.0080.00816.53
7.3.160.0060.00916.31
7.3.130.0120.00814.79
7.3.120.0000.01814.54
7.3.110.0090.00914.82
7.3.100.0100.00315.08
7.3.90.0100.00314.75
7.3.80.0040.00714.44
7.3.70.0150.00014.72
7.3.60.0000.01414.95
7.3.50.0030.01014.59
7.3.40.0070.00314.96
7.3.30.0000.01514.77
7.3.20.0090.00316.35
7.3.10.0030.01016.51
7.3.00.0120.00316.74
7.2.330.0100.00716.29
7.2.320.0030.01316.79
7.2.310.0090.00916.71
7.2.300.0090.00616.42
7.2.290.0080.00816.70
7.2.260.0070.01115.17
7.2.250.0060.01315.15
7.2.240.0030.01014.96
7.2.230.0000.01414.73
7.2.220.0070.00315.07
7.2.210.0040.01115.11
7.2.200.0100.00714.99
7.2.190.0000.01315.02
7.2.180.0000.01214.88
7.2.170.0130.00314.78
7.2.160.0110.00315.05
7.2.150.0070.00716.68
7.2.140.0070.01416.94
7.2.130.0060.00316.98
7.2.120.0080.00416.84
7.2.110.0100.00716.78
7.2.100.0070.01116.93
7.2.90.0130.00316.64
7.2.80.0070.01016.76
7.2.70.0070.00716.82
7.2.60.0140.00016.67
7.2.50.0130.00316.98
7.2.40.0070.00416.99
7.2.30.0080.00816.94
7.2.20.0040.01117.07
7.2.10.0040.00816.91
7.2.00.0060.00916.65
7.1.330.0090.00315.77
7.1.320.0040.01115.55
7.1.310.0090.00616.11
7.1.300.0030.00615.80
7.1.290.0060.01015.51
7.1.280.0030.01015.49
7.1.270.0110.00415.75
7.1.260.0130.00615.80
7.1.250.0080.00415.64
7.1.240.0060.00915.89
7.1.230.0030.01015.68
7.1.220.0030.01015.50
7.1.210.0090.00315.71
7.1.200.0060.00815.79
7.1.190.0060.00615.77
7.1.180.0030.00615.84
7.1.170.0040.00715.49
7.1.160.0040.00415.90
7.1.150.0110.00415.49
7.1.140.0070.01015.82
7.1.130.0090.00015.69
7.1.120.0070.00715.85
7.1.110.0000.01315.77
7.1.100.0440.01115.96
7.1.90.0500.01015.85
7.1.80.0900.01016.03
7.1.70.0540.00815.35
7.1.60.0510.00624.60
7.1.50.0510.01224.17
7.1.40.0520.01024.09
7.1.30.0470.01124.18
7.1.20.0400.01324.27
7.1.10.0590.01115.27
7.1.00.0530.00715.30
7.0.330.0120.00015.58
7.0.320.0100.00315.48
7.0.310.0030.01015.38
7.0.300.0050.00315.20
7.0.290.0110.00715.44
7.0.280.0040.00715.57
7.0.270.0000.01215.37
7.0.260.0050.00315.34
7.0.250.0080.00415.47
7.0.240.0370.00815.58
7.0.230.0550.00915.74
7.0.220.0770.00915.70
7.0.210.0640.00515.07
7.0.200.0490.00815.30
7.0.190.0460.01015.27
7.0.180.0550.00514.74
7.0.170.0620.00515.06
7.0.160.0450.00714.73
7.0.150.0640.00614.94
7.0.140.0600.00914.95
7.0.130.0680.00914.99
7.0.120.0920.01115.07
7.0.110.0630.01014.95
7.0.100.0460.00814.89
7.0.90.0660.00514.89
7.0.80.0560.00814.99
7.0.70.0570.01614.91
7.0.60.0380.01114.92
7.0.50.0680.00914.97
7.0.40.0490.00914.05
7.0.30.0640.01314.15
7.0.20.0750.00814.06
7.0.10.1040.01114.11
7.0.00.1530.01114.08
5.6.400.0120.00314.20
5.6.390.0040.01114.11
5.6.380.0060.00314.21
5.6.370.0060.00614.32
5.6.360.0040.00814.13
5.6.350.0000.01514.27
5.6.340.0070.00714.26
5.6.330.0070.00714.02
5.6.320.0090.00014.12
5.6.310.0030.00614.29
5.6.300.0090.00314.11
5.6.290.0080.00413.77
5.6.280.0050.00314.04
5.6.270.0030.00614.44
5.6.260.0030.00914.08
5.6.250.0000.01414.09
5.6.240.0130.00314.04
5.6.230.0000.01314.07
5.6.220.0060.00614.02
5.6.210.0060.00914.08
5.6.200.0080.00414.29
5.6.190.0030.00614.07
5.6.180.0040.00714.12
5.6.170.0000.00913.99
5.6.160.0110.00314.01
5.6.150.0160.00013.82
5.6.140.0040.01413.80
5.6.130.0100.00614.14
5.6.120.0060.00914.16
5.6.110.0030.01413.90
5.6.100.0030.01313.89
5.6.90.0070.00413.79
5.6.80.0030.00914.07
5.6.70.0000.01513.96
5.6.60.0060.00613.89
5.6.50.0000.01314.08
5.6.40.0080.00813.96
5.6.30.0100.00014.09
5.6.20.0060.00613.87
5.6.10.0070.00714.13
5.6.00.0030.00613.94

preferences:
24.06 ms | 400 KiB | 5 Q