3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Filesystem { const DISABLED = 0; const DEBUG = 1; const INFO = 2; const WARN = 4; const ERROR = 8; private static $ERROR_LEVELS = array(self::DISABLED, self::DEBUG, self::INFO, self::WARN, self::ERROR); public static $DEFAULT_LEVEL = 6; } echo Filesystem::$DEFAULT_LEVEL | Filesystem::ERROR;

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.0070.00716.38
8.3.50.0120.01022.05
8.3.40.0070.00718.44
8.3.30.0120.00318.77
8.3.20.0040.00420.39
8.3.10.0080.00023.53
8.3.00.0070.00319.20
8.2.180.0090.00618.04
8.2.170.0040.01122.96
8.2.160.0170.00320.57
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0000.00726.16
8.2.120.0000.00922.26
8.2.110.0070.00322.16
8.2.100.0080.00417.78
8.2.90.0040.00419.27
8.2.80.0060.00317.97
8.2.70.0030.00717.63
8.2.60.0000.00818.05
8.2.50.0080.00018.07
8.2.40.0000.00718.09
8.2.30.0040.00417.97
8.2.20.0060.00317.56
8.2.10.0040.00417.50
8.2.00.0050.00317.49
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.82
8.1.230.0110.00018.99
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0050.00317.53
8.1.180.0040.00418.10
8.1.170.0050.00318.39
8.1.160.0030.00621.95
8.1.150.0000.00718.56
8.1.140.0040.00417.27
8.1.130.0000.00717.83
8.1.120.0040.00417.30
8.1.110.0040.00417.38
8.1.100.0000.00717.37
8.1.90.0040.00417.34
8.1.80.0000.00717.28
8.1.70.0040.00417.23
8.1.60.0030.00617.35
8.1.50.0000.00817.37
8.1.40.0040.00417.30
8.1.30.0050.00317.49
8.1.20.0050.00217.38
8.1.10.0040.00417.45
8.1.00.0030.00617.30
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0050.00318.38
8.0.270.0080.00017.20
8.0.260.0000.00616.64
8.0.250.0030.00316.88
8.0.240.0040.00416.87
8.0.230.0000.00716.80
8.0.220.0000.00616.83
8.0.210.0030.00516.68
8.0.200.0000.00616.89
8.0.190.0000.00816.70
8.0.180.0040.00716.81
8.0.170.0030.00516.76
8.0.160.0000.00716.83
8.0.150.0000.00716.74
8.0.140.0000.00816.71
8.0.130.0050.00013.18
8.0.120.0000.00716.62
8.0.110.0040.00416.77
8.0.100.0050.00216.77
8.0.90.0000.00716.74
8.0.80.0070.00716.65
8.0.70.0000.00816.55
8.0.60.0040.00416.64
8.0.50.0000.00716.77
8.0.30.0140.00516.79
8.0.20.0090.01017.40
8.0.10.0050.00316.75
8.0.00.0100.00716.72
7.4.330.0050.00015.00
7.4.320.0030.00316.38
7.4.300.0000.00716.29
7.4.290.0000.00716.30
7.4.280.0030.00516.36
7.4.270.0030.00316.46
7.4.260.0030.00316.25
7.4.250.0040.00416.45
7.4.240.0050.00216.48
7.4.230.0040.00416.42
7.4.220.0030.02016.53
7.4.210.0080.00616.41
7.4.200.0070.00016.48
7.4.190.0000.00716.48
7.4.160.0030.01316.41
7.4.150.0090.01017.40
7.4.140.0080.00917.86
7.4.130.0070.00916.40
7.4.120.0120.00416.41
7.4.110.0130.00316.29
7.4.100.0170.00016.34
7.4.90.0070.01016.41
7.4.80.0030.01519.39
7.4.70.0130.00316.58
7.4.60.0150.00816.57
7.4.50.0000.00416.29
7.4.40.0070.00422.77
7.4.30.0040.01116.55
7.4.00.0100.00315.17
7.3.330.0000.00513.18
7.3.320.0050.00013.09
7.3.310.0030.00316.04
7.3.300.0000.00716.23
7.3.290.0120.00616.22
7.3.280.0100.00816.24
7.3.270.0030.01517.40
7.3.260.0140.00416.19
7.3.250.0080.01216.32
7.3.240.0110.00516.27
7.3.230.0100.00716.41
7.3.210.0040.01416.29
7.3.200.0070.01019.39
7.3.190.0090.01216.21
7.3.180.0070.01016.17
7.3.170.0040.01216.34
7.3.160.0090.00616.43
7.3.120.0040.01114.65
7.2.330.0100.00716.46
7.2.320.0070.01116.63
7.2.310.0100.00616.58
7.2.300.0060.01216.61
7.2.290.0090.00616.43
7.2.80.0340.00316.42
7.2.60.0000.01316.77
7.2.00.0040.00819.35
7.1.200.0030.00715.59
7.1.100.0060.00317.96
7.1.70.0000.00816.85
7.1.60.0130.01019.31
7.1.50.0040.02016.84
7.1.00.0070.07322.33
7.0.200.0040.00416.43
7.0.140.0070.07022.04
7.0.60.0130.06719.98
7.0.50.0030.04017.88
7.0.40.0000.06020.02
7.0.30.0300.07020.08
7.0.20.0270.07320.23
7.0.10.0300.04020.25
7.0.00.0070.07020.09
5.6.280.0030.07021.07
5.6.210.0070.08020.48
5.6.200.0070.08718.25
5.6.190.0070.08320.61
5.6.180.0000.04720.67
5.6.170.0430.04320.62
5.6.160.0270.04020.57
5.6.150.0000.07318.18
5.6.140.0070.04718.18
5.6.130.0070.06018.18
5.6.120.0070.08721.01
5.6.110.0070.05721.04
5.6.100.0000.08320.97
5.6.90.0100.05021.10
5.6.80.0000.04320.54
5.6.70.0370.07020.52
5.5.350.0070.08020.44
5.5.340.0070.05017.98
5.5.330.0070.05020.38
5.5.320.0030.06720.36
5.5.310.0230.07320.26
5.5.300.0000.04718.03
5.5.290.0030.04017.98
5.5.280.0000.06020.89
5.5.270.0100.04320.84
5.5.260.0170.08020.79
5.5.250.0000.06320.57
5.5.240.0100.06720.05
5.4.450.1500.04019.08
5.4.440.1500.04319.32
5.4.430.1500.04019.26
5.4.420.1530.03719.23
5.4.410.1830.03719.10
5.4.400.1770.04318.98
5.4.390.1630.04018.75
5.4.380.1570.03719.02
5.4.370.1500.04318.91
5.4.360.1800.04719.06
5.4.350.1630.03719.00
5.4.340.1630.03718.86
5.4.320.1670.05019.16
5.4.310.0230.03719.21
5.4.300.0100.06719.02
5.4.290.0070.04718.86
5.4.280.0630.05018.85
5.4.270.1530.03718.96
5.4.260.1500.04018.98
5.4.250.1570.03719.20
5.4.240.1730.03319.01
5.4.230.1670.03719.01
5.4.220.1870.04019.11
5.4.210.1670.04718.79
5.4.200.1570.05019.34
5.4.190.1830.03718.96
5.4.180.1730.04018.98
5.4.170.1070.04018.86
5.4.160.0100.07019.14
5.4.150.0030.06319.29
5.4.140.1000.05716.32
5.4.130.1700.03716.51
5.4.120.1730.04316.30
5.4.110.1270.03716.24
5.4.100.1730.04016.25
5.4.90.1700.04716.55
5.4.80.1700.04316.54
5.4.70.1730.04316.23
5.4.60.1770.04016.35
5.4.50.1770.04016.52
5.4.40.1770.04316.53
5.4.30.1600.04016.59
5.4.20.1770.03716.16
5.4.10.1770.03716.37
5.4.00.1700.04015.96
5.3.290.1700.04714.63
5.3.280.1730.04014.56
5.3.270.1770.04714.57
5.3.260.1700.04714.57
5.3.250.1700.04714.61
5.3.240.1670.05014.74
5.3.230.1730.04314.57
5.3.220.1630.05014.63
5.3.210.0430.06014.54
5.3.200.0070.07714.57
5.3.190.0030.05014.64
5.3.180.1070.03714.67
5.3.170.1730.04014.47
5.3.160.1630.05014.48
5.3.150.1500.03714.46
5.3.140.1670.04314.66
5.3.130.1700.05014.51
5.3.120.1700.04314.62
5.3.110.1500.03714.51
5.3.100.1730.04014.06
5.3.90.1730.03714.00
5.3.80.1830.03714.06
5.3.70.1830.03713.98
5.3.60.1600.04313.91
5.3.50.1770.03713.86
5.3.40.1900.04013.99
5.3.30.1570.03714.05
5.3.20.1530.03013.91
5.3.10.1530.03713.56
5.3.00.1600.03013.65
5.2.170.1300.03011.26
5.2.160.1330.02311.07
5.2.150.1300.03011.04
5.2.140.1270.03011.07
5.2.130.1330.02711.24
5.2.120.1230.03011.18
5.2.110.1300.03011.17
5.2.100.1330.02711.19
5.2.90.1330.03711.15
5.2.80.1400.04011.00
5.2.70.1230.03311.01
5.2.60.1300.03011.05
5.2.50.1300.02710.94
5.2.40.1070.02311.21
5.2.30.1130.03310.89
5.2.20.1070.02311.09
5.2.10.1200.03310.92
5.2.00.1170.03310.76
5.1.60.1170.0279.99
5.1.50.1000.0279.89
5.1.40.1070.02010.05
5.1.30.1070.02310.31
5.1.20.1300.02310.46
5.1.10.1270.03010.05
5.1.00.1130.0239.95
5.0.50.0630.0238.43
5.0.40.0500.0208.38
5.0.30.0570.0238.20
5.0.20.0570.0208.38
5.0.10.0500.0278.15
5.0.00.0600.0308.24
4.4.90.0570.0177.62
4.4.80.0670.0277.62
4.4.70.0630.0277.62
4.4.60.0670.0277.62
4.4.50.0670.0177.62
4.4.40.0530.0277.62
4.4.30.0600.0237.62
4.4.20.0600.0177.62
4.4.10.0670.0207.62
4.4.00.0700.0337.62
4.3.110.0700.0137.62
4.3.100.0570.0137.62
4.3.90.0570.0177.62
4.3.80.0630.0407.62
4.3.70.0670.0237.62
4.3.60.0000.0307.62
4.3.50.0030.0177.62
4.3.40.0000.0437.62
4.3.30.0030.0207.62
4.3.20.0000.0407.62
4.3.10.0000.0207.62
4.3.00.0000.0307.62

preferences:
43.35 ms | 401 KiB | 5 Q