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.0090.00618.30
8.3.50.0070.01116.40
8.3.40.0040.01118.84
8.3.30.0070.00718.77
8.3.20.0050.00318.68
8.3.10.0080.00018.79
8.3.00.0030.00619.38
8.2.180.0110.01116.50
8.2.170.0170.00322.96
8.2.160.0100.00618.65
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00021.18
8.2.110.0140.00720.75
8.2.100.0040.00817.91
8.2.90.0050.00318.15
8.2.80.0040.00418.04
8.2.70.0000.00818.04
8.2.60.0030.00618.03
8.2.50.0030.00518.10
8.2.40.0050.00219.29
8.2.30.0070.00019.23
8.2.20.0060.00317.59
8.2.10.0050.00317.70
8.2.00.0040.00417.79
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00617.51
8.1.230.0040.00820.96
8.1.220.0030.00517.79
8.1.210.0080.00318.97
8.1.200.0030.00617.23
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0000.00818.94
8.1.150.0050.00318.51
8.1.140.0000.00717.40
8.1.130.0040.00419.17
8.1.120.0000.00717.46
8.1.110.0020.00517.38
8.1.100.0000.00717.39
8.1.90.0000.00717.38
8.1.80.0000.00817.39
8.1.70.0050.00217.31
8.1.60.0000.00717.41
8.1.50.0070.00017.32
8.1.40.0030.00517.38
8.1.30.0000.00817.59
8.1.20.0040.00417.55
8.1.10.0000.00717.50
8.1.00.0000.00717.28
8.0.300.0060.00319.63
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0000.00717.27
8.0.260.0000.00816.76
8.0.250.0040.00416.79
8.0.240.0000.00716.90
8.0.230.0060.00316.95
8.0.220.0060.00016.84
8.0.210.0070.00016.84
8.0.200.0000.00616.89
8.0.190.0030.00616.76
8.0.180.0000.00816.91
8.0.170.0080.00016.92
8.0.160.0000.00716.84
8.0.150.0000.00816.80
8.0.140.0070.00416.80
8.0.130.0030.00313.21
8.0.120.0060.00316.75
8.0.110.0040.00416.86
8.0.100.0040.00416.71
8.0.90.0040.00416.72
8.0.80.0090.00616.86
8.0.70.0040.00416.86
8.0.60.0030.00616.81
8.0.50.0060.00316.86
8.0.30.0140.00717.02
8.0.20.0070.01117.07
8.0.10.0070.00016.86
8.0.00.0140.00916.61
7.4.330.0050.00012.98
7.4.320.0000.00816.43
7.4.300.0000.00716.43
7.4.290.0030.00616.52
7.4.280.0070.00016.49
7.4.270.0000.00716.44
7.4.260.0000.00513.22
7.4.250.0030.00516.51
7.4.240.0000.00716.45
7.4.230.0040.00416.56
7.4.220.0070.01416.47
7.4.210.0110.00816.37
7.4.200.0070.00016.18
7.4.190.0060.00316.59
7.4.160.0060.01116.54
7.4.150.0130.00316.48
7.4.140.0200.00617.86
7.4.130.0210.00616.57
7.4.120.0190.00016.47
7.4.110.0120.00616.61
7.4.100.0030.01916.50
7.4.90.0090.01116.60
7.4.80.0170.00716.52
7.4.70.0030.01416.55
7.4.60.0100.00616.25
7.4.50.0000.00416.29
7.4.40.0030.01316.27
7.4.30.0030.01316.51
7.4.00.0050.00215.06
7.3.330.0050.00013.25
7.3.320.0000.00613.15
7.3.310.0040.00416.23
7.3.300.0000.00616.23
7.3.290.0040.01216.20
7.3.280.0000.01816.29
7.3.270.0140.00916.27
7.3.260.0060.01116.20
7.3.240.0120.00916.21
7.3.230.0090.01216.29
7.3.210.0060.00916.27
7.3.200.0090.00919.39
7.3.190.0120.00416.48
7.3.180.0050.01016.30
7.3.170.0130.00616.35
7.3.160.0040.01116.34
7.3.120.0100.00714.90
7.2.330.0090.00916.27
7.2.320.0140.00316.74
7.2.310.0080.01116.65
7.2.300.0060.01516.68
7.2.290.0100.01316.79
7.2.00.0000.01719.49
7.1.100.0230.00817.97
7.1.70.0040.01817.03
7.1.60.0070.01719.25
7.1.50.0070.01016.84
7.1.00.0000.03722.32
7.0.200.0090.00016.41
7.0.140.0030.07322.16
7.0.120.0000.07722.00
7.0.60.0000.09019.92
7.0.50.0030.06317.81
7.0.40.0170.07720.23
7.0.30.0370.07020.11
7.0.20.0230.04720.06
7.0.10.0270.06320.15
7.0.00.0000.05020.23
5.6.280.0000.07721.03
5.6.210.0100.07720.76
5.6.200.0070.05718.13
5.6.190.0030.05020.55
5.6.180.0270.07320.63
5.6.170.0300.08020.58
5.6.160.0070.05320.50
5.6.150.0130.07318.29
5.6.140.0000.05018.23
5.6.130.0100.07718.23
5.6.120.0100.08020.99
5.6.110.0070.07321.01
5.6.100.0100.08021.11
5.6.90.0030.09021.10
5.6.80.0130.07020.36
5.6.70.0970.05020.27
5.5.350.0230.03720.38
5.5.340.0030.04018.03
5.5.330.0070.05720.23
5.5.320.0370.06720.31
5.5.310.0370.08020.34
5.5.300.0100.07718.09
5.5.290.0070.03718.08
5.5.280.0000.04720.73
5.5.270.0070.08720.97
5.5.260.0070.04020.64
5.5.250.0070.07320.45
5.5.240.0230.05320.19
5.4.450.0330.07019.50
5.4.440.3900.03319.57
5.4.430.0030.06019.43
5.4.420.0030.07719.21
5.4.410.0100.05319.42
5.4.400.0030.05719.07
5.4.390.0130.05019.21
5.4.380.0230.05718.72
5.4.370.0270.04018.57
5.4.360.0100.04318.69
5.4.350.0050.03812.02
5.4.340.0050.03512.01
5.4.320.0050.03612.50
5.4.310.0060.04412.49
5.4.300.0050.03912.50
5.4.290.0060.04412.49
5.4.280.0060.04012.39
5.4.270.0080.04412.39
5.4.260.0070.04612.39
5.4.250.0080.04312.39
5.4.240.0090.04112.39
5.4.230.0070.04312.38
5.4.220.0090.04012.38
5.4.210.0090.04012.38
5.4.200.0070.04512.38
5.4.190.0070.04612.38
5.4.180.0080.04512.38
5.4.170.0060.04712.39
5.4.160.0080.04312.39
5.4.150.0100.04112.38
5.4.140.0070.04712.07
5.4.130.0070.04412.05
5.4.120.0090.04312.01
5.4.110.0100.04412.00
5.4.100.0050.04612.01
5.4.90.0060.04612.01
5.4.80.0090.04512.01
5.4.70.0060.04612.01
5.4.60.0120.03812.00
5.4.50.0050.04912.00
5.4.40.0080.04311.99
5.4.30.0100.04311.99
5.4.20.0080.04911.99
5.4.10.0090.05011.99
5.4.00.0070.04811.48
5.3.290.0100.04312.80
5.3.280.0070.04712.71
5.3.270.0090.04812.72
5.3.260.0110.04712.72
5.3.250.0090.05112.72
5.3.240.0100.04512.72
5.3.230.0080.04812.71
5.3.220.0090.04712.68
5.3.210.0100.05012.68
5.3.200.0070.04812.68
5.3.190.0090.04412.68
5.3.180.0080.05012.67
5.3.170.0090.05312.67
5.3.160.0080.05212.68
5.3.150.0070.04912.67
5.3.140.0090.04812.66
5.3.130.0090.05412.66
5.3.120.0080.05412.66
5.3.110.0100.05012.66
5.3.100.0110.04812.12
5.3.90.0090.05112.10
5.3.80.0100.04512.08
5.3.70.0080.04312.08
5.3.60.0070.04212.07
5.3.50.0080.05012.01
5.3.40.0080.05112.01
5.3.30.0100.05111.98
5.3.20.0090.04811.75

preferences:
39.51 ms | 401 KiB | 5 Q