3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Ozzie\WeekDays { const MONDAY = 'monday'; const TUESDAY = 'tuesday'; const WEDNESDAY = 'wednesday'; const THURSDAY = 'thursday'; const FRYDAY = 'fryday'; const SATURDAY = 'saturday'; const SUNDAY = 'sunday'; } namespace Ozzie { class WeekDays { const MONDAY = 'monday'; const TUESDAY = 'tuesday'; const WEDNESDAY = 'wednesday'; const THURSDAY = 'thursday'; const FRYDAY = 'fryday'; const SATURDAY = 'saturday'; const SUNDAY = 'sunday'; } } namespace { use const Ozzie\WeekDays\MONDAY as MONDAY; echo Ozzie\WeekDays\MONDAY . ' - ' . Ozzie\WeekDays::MONDAY . ' - ' . MONDAY; }

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.10.0060.00317.51
8.3.140.0070.00716.47
8.3.130.0040.00418.27
8.3.120.0030.00618.72
8.3.110.0080.00020.94
8.3.100.0000.00924.06
8.3.90.0000.01526.77
8.3.80.0030.00616.63
8.3.70.0070.01118.30
8.3.60.0130.00718.20
8.3.50.0080.01021.20
8.3.40.0140.00718.76
8.3.30.0140.00418.51
8.3.20.0150.00018.60
8.3.10.0040.00421.04
8.3.00.0000.00721.95
8.2.250.0000.01818.07
8.2.240.0060.00317.16
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0070.00416.48
8.2.190.0110.00316.58
8.2.180.0100.00716.75
8.2.170.0090.00922.96
8.2.160.0030.01020.52
8.2.150.0110.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00421.06
8.2.110.0070.00320.35
8.2.100.0090.00317.55
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0080.00317.50
8.2.60.0090.00017.80
8.2.50.0080.00018.07
8.2.40.0040.00418.09
8.2.30.0050.00221.29
8.2.20.0000.00717.59
8.2.10.0000.00817.57
8.2.00.0030.00617.55
8.1.300.0060.00616.13
8.1.290.0090.00018.88
8.1.280.0100.00725.92
8.1.270.0080.00023.99
8.1.260.0000.01526.35
8.1.250.0080.00028.09
8.1.240.0040.00722.42
8.1.230.0040.00720.82
8.1.220.0000.00818.77
8.1.210.0070.00318.89
8.1.200.0100.00017.23
8.1.190.0040.00417.39
8.1.180.0030.00618.10
8.1.170.0040.00418.25
8.1.160.0000.00718.71
8.1.150.0030.00618.59
8.1.140.0000.00717.40
8.1.130.0020.00517.75
8.1.120.0030.00417.43
8.1.110.0000.00717.36
8.1.100.0000.00717.28
8.1.90.0000.00817.41
8.1.80.0000.00717.44
8.1.70.0000.00717.31
8.1.60.0040.00417.52
8.1.50.0000.00717.30
8.1.40.0000.00717.37
8.1.30.0040.00417.51
8.1.20.0060.00317.56
8.1.10.0040.00417.48
8.1.00.0000.00817.44
8.0.300.0070.00019.95
8.0.290.0060.00317.05
8.0.280.0000.00718.31
8.0.270.0030.00317.09
8.0.260.0000.00616.68
8.0.250.0040.00416.79
8.0.240.0040.00416.80
8.0.230.0030.00316.90
8.0.220.0040.00416.75
8.0.210.0030.00316.72
8.0.200.0090.00016.79
8.0.190.0030.00616.87
8.0.180.0040.00416.77
8.0.170.0090.00016.71
8.0.160.0030.00316.71
8.0.150.0000.00716.72
8.0.140.0000.00716.79
8.0.130.0050.00013.26
8.0.120.0000.00716.77
8.0.110.0050.00216.77
8.0.100.0000.00716.86
8.0.90.0000.00816.64
8.0.80.0090.00916.87
8.0.70.0000.00716.70
8.0.60.0050.00216.87
8.0.50.0040.00416.79
8.0.30.0150.00617.10
8.0.20.0090.00917.40
8.0.10.0030.00516.79
8.0.00.0070.01116.64
7.4.330.0020.00216.66
7.4.320.0000.00716.45
7.4.300.0060.00016.53
7.4.290.0030.00316.53
7.4.280.0090.00016.53
7.4.270.0030.00316.52
7.4.260.0030.00313.18
7.4.250.0030.00516.55
7.4.240.0000.00716.52
7.4.230.0040.00416.52
7.4.220.0000.00716.19
7.4.210.0030.01216.48
7.4.200.0000.00716.61
7.4.190.0030.00316.40
7.4.160.0100.00716.38
7.4.150.0030.01417.40
7.4.140.0100.00817.86
7.4.130.0130.00916.41
7.4.120.0120.00516.46
7.4.110.0060.01516.43
7.4.100.0100.00716.50
7.4.90.0170.00616.29
7.4.80.0140.00719.39
7.4.70.0140.00716.48
7.4.60.0000.01616.54
7.4.50.0000.00816.40
7.4.40.0090.00622.77
7.4.30.0070.01016.52
7.4.10.0040.01814.98
7.4.00.0080.01014.95
7.3.330.0030.00313.11
7.3.320.0050.00013.16
7.3.310.0000.00716.24
7.3.300.0070.00016.23
7.3.290.0070.00716.22
7.3.280.0110.00816.27
7.3.270.0140.00717.40
7.3.260.0120.00918.24
7.3.250.0170.00616.15
7.3.240.0070.01616.29
7.3.230.0110.01216.58
7.3.210.0090.01216.48
7.3.200.0140.00316.50
7.3.190.0070.01116.54
7.3.180.0100.00616.33
7.3.170.0090.00616.46
7.3.160.0060.00916.42
7.3.130.0110.00714.84
7.3.120.0080.00914.99
7.3.110.0070.01314.59
7.3.100.0040.00814.81
7.3.90.0030.01214.45
7.3.80.0000.01114.68
7.3.70.0140.00014.82
7.3.60.0070.00714.97
7.3.50.0080.00414.65
7.3.40.0030.00614.76
7.3.30.0100.00314.59
7.3.20.0040.01116.54
7.3.10.0110.00016.59
7.3.00.0030.00916.61
7.2.330.0100.01016.59
7.2.320.0030.01316.31
7.2.310.0090.00916.73
7.2.300.0120.00616.74
7.2.290.0090.01216.82
7.2.260.0110.00815.00
7.2.250.0160.00314.64
7.2.240.0100.00314.82
7.2.230.0030.01415.25
7.2.220.0000.01815.00
7.2.210.0080.00814.93
7.2.200.0100.00314.97
7.2.190.0000.01015.12
7.2.180.0140.00315.08
7.2.170.0060.00614.99
7.2.160.0070.00714.98
7.2.150.0070.01016.86
7.2.140.0030.01016.89
7.2.130.0060.00316.73
7.2.120.0070.01016.75
7.2.110.0050.00516.86
7.2.100.0120.00016.96
7.2.90.0130.00316.99
7.2.80.0100.00616.80
7.2.70.0000.01416.72
7.2.60.0030.00816.88
7.2.50.0060.00917.13
7.2.40.0000.01616.86
7.2.30.0030.01017.01
7.2.20.0000.01616.73
7.2.10.0060.00616.88
7.2.00.0030.01218.01
7.1.330.0140.00315.71
7.1.320.0070.00715.61
7.1.310.0060.01015.66
7.1.300.0090.00015.52
7.1.290.0000.01015.54
7.1.280.0030.00915.73
7.1.270.0030.01115.34
7.1.260.0040.00715.74
7.1.250.0040.01115.82
7.1.240.0030.01315.77
7.1.230.0060.00315.68
7.1.220.0070.00715.57
7.1.210.0060.00615.45
7.1.200.0110.00715.67
7.1.190.0060.00315.68
7.1.180.0070.00715.79
7.1.170.0060.00615.86
7.1.160.0120.00315.82
7.1.150.0000.00815.48
7.1.140.0000.01715.33
7.1.130.0000.01315.75
7.1.120.0070.01015.72
7.1.110.0030.00615.67
7.1.100.0100.00316.77
7.1.90.0060.00615.77
7.1.80.0000.01015.70
7.1.70.0060.00516.26
7.1.60.0090.00216.46
7.1.50.0070.00716.22
7.1.40.0060.00915.70
7.1.30.0060.00815.42
7.1.20.0090.00615.43
7.1.10.0030.00615.69
7.1.00.0020.02019.07
7.0.330.0060.00615.32
7.0.320.0130.00015.25
7.0.310.0060.00915.17
7.0.300.0000.01415.37
7.0.290.0100.00615.51
7.0.280.0050.00315.47
7.0.270.0040.01115.21
7.0.260.0030.00615.11
7.0.250.0030.00515.49
7.0.240.0030.00915.47
7.0.230.0030.01015.27
7.0.220.0060.01015.55
7.0.210.0070.00415.46
7.0.200.0050.01015.66
7.0.190.0080.00615.33
7.0.180.0000.01115.34
7.0.170.0060.00315.49
7.0.160.0100.00015.38
7.0.150.0060.00615.50
7.0.140.0100.03618.68
7.0.130.0070.00415.14
7.0.120.0050.00515.46
7.0.110.0030.00615.12
7.0.100.0000.01115.54
7.0.90.0030.00715.34
7.0.80.0110.00415.41
7.0.70.0050.04218.54
7.0.60.0050.04618.54
7.0.50.0060.03518.60
7.0.40.0100.04116.61
7.0.30.0030.02716.84
7.0.20.0100.03716.75
7.0.10.0050.04716.66
7.0.00.0050.04516.71
5.6.400.0080.00414.61
5.6.390.0060.01214.30
5.6.380.0070.00414.07
5.6.370.0030.01014.16
5.6.360.0030.01014.30
5.6.350.0110.00314.52
5.6.340.0040.00814.36
5.6.330.0000.01214.61
5.6.320.0060.00714.49
5.6.310.0040.00814.16
5.6.300.0090.00014.42
5.6.290.0070.00714.16
5.6.280.0050.04217.58
5.6.270.0040.00414.40
5.6.260.0000.01014.20
5.6.250.0030.01014.29
5.6.240.0000.01414.05
5.6.230.0030.00914.57
5.6.220.0070.03217.63
5.6.210.0030.05017.40
5.6.200.0070.02417.71
5.6.190.0050.03217.70
5.6.180.0100.04017.51
5.6.170.0080.02817.61
5.6.160.0070.02717.64
5.6.150.0100.04517.71
5.6.140.0050.04817.78
5.6.130.0030.04817.57
5.6.120.0100.04017.59
5.6.110.0020.03517.62
5.6.100.0100.02017.58
5.6.90.0050.04817.67
5.6.80.0100.02917.09
5.6.70.0020.04417.32
5.6.60.0090.04017.39
5.6.50.0050.02717.32
5.6.40.0080.02917.31
5.6.30.0080.04317.39
5.6.20.0050.03117.20
5.6.10.0070.03817.29
5.6.00.0070.03417.29
5.5.380.0050.00514.18
5.5.370.0060.00614.11
5.5.360.0150.03517.39
5.5.350.0040.04417.33
5.5.340.0030.02817.28
5.5.330.0040.03117.34
5.5.320.0080.04317.41
5.5.310.0020.05117.51
5.5.300.0030.03417.43
5.5.290.0000.04817.34
5.5.280.0070.04517.49
5.5.270.0060.03317.42
5.5.260.0050.04717.56
5.5.250.0030.04717.26
5.5.240.0050.03317.08
5.5.230.0020.03316.94
5.5.220.0080.03917.17
5.5.210.0020.03017.12
5.5.200.0080.03817.01
5.5.190.0040.04117.10
5.5.180.0060.03617.11
5.5.170.0040.01114.02
5.5.160.0020.05316.94
5.5.150.0050.04316.99
5.5.140.0050.04317.02
5.5.130.0110.04017.09
5.5.120.0070.02217.18
5.5.110.0090.03517.15
5.5.100.0070.03117.06
5.5.90.0090.03917.00
5.5.80.0030.04416.97
5.5.70.0070.02916.96
5.5.60.0080.01817.03
5.5.50.0030.02316.97
5.5.40.0050.02816.93
5.5.30.0070.04217.22
5.5.20.0030.03616.95
5.5.10.0040.03016.77
5.5.00.0020.03717.02
5.4.450.0070.04215.58
5.4.440.0060.04015.45
5.4.430.0050.02315.47
5.4.420.0090.03615.56
5.4.410.0020.04015.36
5.4.400.0040.04215.31
5.4.390.0050.02215.35
5.4.380.0070.03715.43
5.4.370.0120.01315.37
5.4.360.0070.02915.44
5.4.350.0070.04015.46
5.4.340.0040.02615.28
5.4.330.0000.00611.68
5.4.320.0060.04615.29
5.4.310.0050.04015.42
5.4.300.0060.03815.31
5.4.290.0070.03215.35
5.4.280.0100.03715.38
5.4.270.0050.04015.40
5.4.260.0020.04115.35
5.4.250.0000.03315.26
5.4.240.0030.04115.40
5.4.230.0030.04215.42
5.4.220.0030.02515.44
5.4.210.0030.05015.36
5.4.200.0070.02715.35
5.4.190.0040.03315.35
5.4.180.0020.04515.35
5.4.170.0040.04215.35
5.4.160.0130.03515.27
5.4.150.0050.04315.35
5.4.140.0030.04213.99
5.4.130.0050.04014.09
5.4.120.0070.04214.08
5.4.110.0010.04114.03
5.4.100.0030.03014.05
5.4.90.0120.03014.12
5.4.80.0030.03714.04
5.4.70.0050.03814.09
5.4.60.0070.03314.07
5.4.50.0060.04114.08
5.4.40.0050.04214.05
5.4.30.0020.04314.06
5.4.20.0050.04214.08
5.4.10.0050.04014.07
5.4.00.0030.03613.82
5.3.290.0020.04513.20
5.3.280.0070.03913.20
5.3.270.0080.03713.14
5.3.260.0060.04113.13
5.3.250.0080.03713.21
5.3.240.0050.03913.13
5.3.230.0020.03213.15
5.3.220.0030.03513.10
5.3.210.0000.02913.17
5.3.200.0070.03813.19
5.3.190.0050.04313.12
5.3.180.0030.03813.08
5.3.170.0050.03813.14
5.3.160.0030.03613.18
5.3.150.0030.03913.13
5.3.140.0070.02813.09
5.3.130.0050.04013.07
5.3.120.0020.03813.15
5.3.110.0000.04213.07
5.3.100.0030.03912.91
5.3.90.0030.04212.81
5.3.80.0000.04512.86
5.3.70.0070.03912.84
5.3.60.0020.03112.87
5.3.50.0070.03212.82
5.3.40.0080.03512.78
5.3.30.0000.03912.74
5.3.20.0050.03312.71
5.3.10.0100.02212.70
5.3.00.0080.03312.68
5.2.170.0000.07012.25
5.2.160.0000.05012.25
5.2.150.0070.05712.25
5.2.140.0070.06012.25
5.2.130.0030.06012.25
5.2.120.0030.06312.25
5.2.110.0100.05312.25
5.2.100.0070.06012.25
5.2.90.0000.07012.25
5.2.80.0170.05312.25
5.2.70.0000.06012.25
5.2.60.0000.06712.25
5.2.50.0000.06312.25
5.2.40.0070.03712.25
5.2.30.0100.06012.25
5.2.20.0030.03712.25
5.2.10.0030.06012.25
5.2.00.0100.05712.25
5.1.60.0070.05012.25
5.1.50.0030.05312.25
5.1.40.0000.05012.25
5.1.30.0070.05712.25
5.1.20.0000.06012.25
5.1.10.0030.05312.25
5.1.00.0070.03312.25
5.0.50.0070.02712.25
5.0.40.0030.03012.25
5.0.30.0030.06712.25
5.0.20.0030.04312.25
5.0.10.0030.04712.25
5.0.00.0000.06712.25
4.4.90.0000.03712.25
4.4.80.0000.03712.25
4.4.70.0030.03312.25
4.4.60.0030.03012.25
4.4.50.0070.02312.25
4.4.40.0030.04012.25
4.4.30.0000.03312.25
4.4.20.0000.03712.25
4.4.10.0030.02312.25
4.4.00.0030.02712.25
4.3.110.0000.04012.25
4.3.100.0000.02712.25
4.3.90.0000.03312.25
4.3.80.0000.05712.25
4.3.70.0000.03712.25
4.3.60.0000.03712.25
4.3.50.0000.03012.25
4.3.40.0000.05312.25
4.3.30.0030.03312.25
4.3.20.0030.03312.25
4.3.10.0000.03712.25
4.3.00.0000.03712.25

preferences:
15.94 ms | 403 KiB | 5 Q