3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Ozzie; use Exception; use ReflectionClass; class Language { const DUTCH = 1; private static $languages_values; public static function getConstName($value) { if (!isset(self::$languages_values[$value])) { throw new Exception('de value bestaat niet!'); } return self::$languages_values[$value]; } public static function init() { static $initialized = false; if ( ! $initialized) { $ref_class = new ReflectionClass(self::class); self::$languages_values = array_flip($ref_class->getConstants()); $initialized = true; } } } // ja, dit zet je in het zelfde bestand Language::init();

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.0100.00318.43
8.3.50.0070.00921.27
8.3.40.0070.01418.79
8.3.30.0100.00320.34
8.3.20.0040.00420.34
8.3.10.0040.00422.02
8.3.00.0040.00422.41
8.2.180.0150.00016.38
8.2.170.0110.00322.96
8.2.160.0030.00820.47
8.2.150.0040.00424.18
8.2.140.0110.00724.66
8.2.130.0110.00026.16
8.2.120.0080.00019.66
8.2.110.0090.00022.30
8.2.100.0090.00617.72
8.2.90.0000.00919.28
8.2.80.0030.00519.25
8.2.70.0080.00017.48
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0060.00318.22
8.2.30.0030.00617.98
8.2.20.0000.00917.66
8.2.10.0000.00717.76
8.2.00.0050.00317.62
8.1.280.0030.01725.92
8.1.270.0030.01320.23
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0040.00423.72
8.1.230.0090.00319.10
8.1.220.0070.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.39
8.1.180.0050.00318.89
8.1.170.0100.00018.55
8.1.160.0040.00422.14
8.1.150.0030.00518.68
8.1.140.0050.00217.33
8.1.130.0030.00317.82
8.1.120.0040.00317.50
8.1.110.0050.00317.36
8.1.100.0040.00417.45
8.1.90.0030.00617.37
8.1.80.0040.00317.48
8.1.70.0070.00017.41
8.1.60.0000.00917.58
8.1.50.0030.00517.50
8.1.40.0030.00517.38
8.1.30.0050.00217.62
8.1.20.0040.00417.61
8.1.10.0020.00517.45
8.1.00.0030.00617.41
8.0.300.0000.00718.77
8.0.290.0000.00717.04
8.0.280.0070.00018.45
8.0.270.0030.00317.14
8.0.260.0000.00716.89
8.0.250.0030.00316.91
8.0.240.0030.00716.93
8.0.230.0070.00016.97
8.0.220.0000.00716.88
8.0.210.0040.00416.94
8.0.200.0030.00316.83
8.0.190.0070.00016.83
8.0.180.0020.00516.95
8.0.170.0040.00416.85
8.0.160.0040.00416.93
8.0.150.0000.00716.90
8.0.140.0040.00416.84
8.0.130.0000.00613.28
8.0.120.0000.00816.79
8.0.110.0050.00216.96
8.0.100.0040.00416.88
8.0.90.0020.00516.70
8.0.80.0110.01016.89
8.0.70.0050.00216.94
8.0.60.0000.00716.79
8.0.50.0050.00316.92
8.0.30.0080.01317.04
8.0.20.0150.00517.40
8.0.10.0040.00417.06
8.0.00.0070.01116.82
7.4.330.0000.00615.00
7.4.320.0000.00616.52
7.4.300.0000.00716.61
7.4.290.0000.00816.41
7.4.280.0080.00016.45
7.4.270.0000.00616.50
7.4.260.0030.00716.53
7.4.250.0030.00316.38
7.4.240.0050.00316.57
7.4.230.0030.00316.68
7.4.220.0060.01216.57
7.4.210.0080.00816.47
7.4.200.0040.00316.50
7.4.190.0040.00416.69
7.4.160.0030.01316.63
7.4.150.0150.00717.40
7.4.140.0080.01017.86
7.4.130.0100.01016.42
7.4.120.0100.00716.54
7.4.110.0060.01016.58
7.4.100.0070.01016.66
7.4.90.0120.00616.46
7.4.80.0030.01319.39
7.4.70.0040.01116.64
7.4.60.0160.00616.31
7.4.50.0000.00416.61
7.4.40.0120.00622.77
7.4.30.0090.00816.56
7.4.00.0070.01115.05
7.3.330.0000.00613.35
7.3.320.0000.00513.32
7.3.310.0030.00316.39
7.3.300.0000.00716.23
7.3.290.0060.01216.35
7.3.280.0080.00816.36
7.3.270.0040.01417.40
7.3.260.0120.00616.44
7.3.250.0090.00916.52
7.3.240.0120.00916.60
7.3.230.0150.00616.39
7.3.210.0090.00916.52
7.3.200.0100.00619.39
7.3.190.0120.00916.21
7.3.180.0040.01516.50
7.3.170.0090.00616.28
7.3.160.0090.00616.60
7.3.120.0050.01214.77
7.3.110.0040.01514.78
7.3.100.0030.01014.77
7.3.90.0060.00314.88
7.3.80.0100.00314.52
7.3.70.0080.00815.03
7.3.60.0120.00414.95
7.3.50.0040.00414.49
7.3.40.0060.00914.61
7.3.30.0040.01514.64
7.3.20.0030.00916.64
7.3.10.0080.00616.51
7.3.00.0120.00316.70
7.2.330.0170.00316.54
7.2.320.0160.00816.63
7.2.310.0090.00916.70
7.2.300.0100.00716.30
7.2.290.0200.00316.82
7.2.250.0100.01014.83
7.2.240.0040.01114.70
7.2.230.0070.01014.84
7.2.220.0130.00315.21
7.2.210.0070.00714.96
7.2.200.0030.00614.97
7.2.190.0070.00714.71
7.2.180.0060.00914.98
7.2.170.0060.00614.96
7.2.60.0060.01017.05
7.2.00.0110.00719.12
7.1.330.0060.01015.79
7.1.320.0070.00715.49
7.1.310.0070.00715.55
7.1.300.0040.00415.46
7.1.290.0140.00315.77
7.1.280.0100.00315.71
7.1.270.0110.00715.55
7.1.260.0090.00615.50
7.1.200.0030.00915.73
7.1.100.0080.00817.91
7.1.70.0040.00417.10
7.1.60.0100.01419.40
7.1.50.0000.01216.58
7.1.00.0000.04022.54
7.0.200.0050.00216.80
7.0.140.0070.07021.97
7.0.60.0170.07319.86
7.0.50.0200.07017.86
7.0.40.0000.04720.14
7.0.30.0130.04720.06
7.0.20.0330.07320.09
7.0.10.0400.04320.10
7.0.00.0000.08020.05
5.6.280.0100.06720.93
5.6.210.0030.08720.73
5.6.200.0030.04318.18
5.6.190.0070.08020.63
5.6.180.4170.04320.48
5.6.170.0330.07020.55
5.6.160.0030.07020.57
5.6.150.0030.04018.19
5.6.140.0030.05018.18
5.6.130.0070.06718.27
5.6.120.0100.04021.00
5.6.110.0200.06320.97
5.6.100.0100.08021.00
5.6.90.0130.07720.97
5.6.80.0070.08020.49
5.6.70.0100.03020.43
5.5.350.0170.06320.45
5.5.340.0030.05017.99
5.5.330.0100.05320.28
5.5.320.0230.04020.29
5.5.310.0270.08020.35
5.5.300.0030.04317.95
5.5.290.0170.06718.04
5.5.280.0070.08020.79
5.5.270.0030.08720.88
5.5.260.0070.08720.96
5.5.250.0070.07720.69
5.5.240.0000.04320.38
5.4.450.0200.05319.63
5.4.440.0900.05319.61
5.4.430.0770.06019.16
5.4.420.0700.05019.47
5.4.410.0730.05719.48
5.4.400.1170.06018.82
5.4.390.1370.07018.57
5.4.380.0230.06318.75
5.4.370.0070.05718.59
5.4.360.0130.05318.76
5.4.350.0050.05112.04
5.4.340.0110.04312.04
5.4.320.0070.03612.52
5.4.310.0080.05112.52
5.4.300.0030.03912.52
5.4.290.0060.04112.52
5.4.280.0070.03412.38
5.4.270.0060.03712.39
5.4.260.0060.03712.39
5.4.250.0040.03912.39
5.4.240.0030.03912.38
5.4.230.0040.04212.38
5.4.220.0050.03812.38
5.4.210.0060.03812.38
5.4.200.0070.03812.38
5.4.190.0050.03912.38
5.4.180.0080.04512.38
5.4.170.0080.03612.38
5.4.160.0050.03812.38
5.4.150.0040.03812.38
5.4.140.0040.04012.06
5.4.130.0070.03512.05
5.4.120.0040.03912.01
5.4.110.0080.03412.00
5.4.100.0070.03512.00
5.4.90.0050.04112.00
5.4.80.0080.03512.00
5.4.70.0110.03312.00
5.4.60.0080.03412.00
5.4.50.0050.03712.00
5.4.40.0110.03211.99
5.4.30.0050.03811.99
5.4.20.0040.03911.98
5.4.10.0050.03811.98
5.4.00.0020.04011.48
5.3.290.0080.05312.80
5.3.280.0050.04012.71
5.3.270.0070.04212.72
5.3.260.0080.03912.72
5.3.250.0070.03712.72
5.3.240.0100.03412.72
5.3.230.0060.03812.71
5.3.220.0050.03912.68
5.3.210.0040.04212.68
5.3.200.0050.04112.68
5.3.190.0040.04012.68
5.3.180.0050.03812.67
5.3.170.0050.03712.67
5.3.160.0030.03912.67
5.3.150.0040.03912.67
5.3.140.0070.03412.66
5.3.130.0070.04012.66
5.3.120.0060.04312.66
5.3.110.0100.03712.66
5.3.100.0090.03412.12
5.3.90.0090.03812.08
5.3.80.0080.04912.08
5.3.70.0040.04112.07
5.3.60.0060.03712.06
5.3.50.0100.03412.00
5.3.40.0070.03812.00
5.3.30.0120.03211.96
5.3.20.0090.03611.74
5.3.10.0040.03811.71
5.3.00.0130.03411.69
5.2.170.0090.0289.15
5.2.160.0060.0379.15
5.2.150.0070.0329.15
5.2.140.0050.0319.14
5.2.130.0080.0279.11
5.2.120.0070.0299.11
5.2.110.0100.0289.11
5.2.100.0060.0309.11
5.2.90.0050.0329.11
5.2.80.0060.0329.11
5.2.70.0070.0319.10
5.2.60.0060.0309.06
5.2.50.0060.0309.04
5.2.40.0050.0299.00
5.2.30.0020.0358.98
5.2.20.0040.0308.97
5.2.10.0040.0308.90
5.2.00.0060.0288.76
5.1.60.0060.0238.04
5.1.50.0050.0248.04
5.1.40.0030.0268.03
5.1.30.0050.0258.37
5.1.20.0030.0298.40
5.1.10.0030.0278.12
5.1.00.0070.0238.13
5.0.50.0060.0186.60
5.0.40.0030.0216.46
5.0.30.0040.0316.27
5.0.20.0070.0176.25
5.0.10.0030.0206.22
5.0.00.0020.0326.21
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0040.0184.76
4.4.60.0030.0224.76
4.4.50.0010.0174.77
4.4.40.0010.0274.71
4.4.30.0020.0164.76
4.4.20.0020.0164.84
4.4.10.0050.0134.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0010.0164.67
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0020.0154.62
4.3.50.0040.0144.63
4.3.40.0020.0264.54
4.3.30.0030.0173.27
4.3.20.0030.0153.25
4.3.10.0020.0163.22
4.3.00.0300.0306.81

preferences:
46.36 ms | 401 KiB | 5 Q