3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class MyType { const UNKNOWN = 0; const VALUE_ONE = 1; const VALUE_TWO = 2; const VALUE_THREE = 3; const VALUE_FOUR = 4; const VALUE_FIVE = 5; static public $__names = array( 0 => 'UNKNOWN', 1 => 'VALUE_ONE', 2 => 'VALUE_TWO', 3 => 'VALUE_THREE', 4 => 'VALUE_FOUR', 5 => 'VALUE_FIVE', ); } $test = new MyType(); echo MyType::$__names[count(MyType::$__names) - 1]; echo constant('MyType::' . MyType::$__names[count(MyType::$__names) - 1]); ?>

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.40.0120.00618.54
8.3.30.0100.00320.34
8.3.20.0050.00320.35
8.3.10.0000.00720.92
8.3.00.0040.00422.53
8.2.170.0120.00322.96
8.2.160.0030.01022.12
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00420.81
8.2.110.0090.00019.26
8.2.100.0090.00317.91
8.2.90.0040.00419.27
8.2.80.0040.00417.97
8.2.70.0040.00417.60
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0000.00818.28
8.2.30.0040.00419.50
8.2.20.0070.00017.58
8.2.10.0000.00717.75
8.2.00.0050.00217.80
8.1.270.0060.00323.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.64
8.1.230.0070.00420.92
8.1.220.0040.00418.77
8.1.210.0030.00518.92
8.1.200.0100.00017.23
8.1.190.0030.00517.53
8.1.180.0050.00318.10
8.1.170.0000.00818.50
8.1.160.0080.00018.76
8.1.150.0060.00318.55
8.1.140.0040.00417.36
8.1.130.0000.00717.84
8.1.120.0000.00717.36
8.1.110.0000.00817.45
8.1.100.0000.00717.42
8.1.90.0070.00017.52
8.1.80.0030.00317.45
8.1.70.0070.00017.35
8.1.60.0030.00617.67
8.1.50.0000.00817.53
8.1.40.0040.00417.50
8.1.30.0040.00417.64
8.1.20.0050.00317.64
8.1.10.0000.00817.53
8.1.00.0080.00017.39
8.0.300.0040.00420.02
8.0.290.0050.00317.05
8.0.280.0000.00718.38
8.0.270.0030.00317.25
8.0.260.0040.00416.78
8.0.250.0030.00716.84
8.0.240.0040.00416.94
8.0.230.0040.00416.84
8.0.220.0030.00316.80
8.0.210.0000.00716.77
8.0.200.0000.00616.85
8.0.190.0040.00416.88
8.0.180.0040.00416.92
8.0.170.0040.00416.80
8.0.160.0000.00816.84
8.0.150.0030.00516.82
8.0.140.0070.00416.84
8.0.130.0070.00013.32
8.0.120.0020.00516.85
8.0.110.0040.00316.93
8.0.100.0070.00016.95
8.0.90.0000.00816.75
8.0.80.0040.01116.88
8.0.70.0000.00816.88
8.0.60.0000.00716.82
8.0.50.0000.00716.74
8.0.30.0050.01217.23
8.0.20.0090.00917.40
8.0.10.0000.00817.00
8.0.00.0100.00916.72
7.4.330.0050.00016.67
7.4.320.0070.00016.56
7.4.300.0060.00016.53
7.4.290.0070.00016.36
7.4.280.0070.00016.48
7.4.270.0030.00316.59
7.4.260.0000.00613.23
7.4.250.0050.00216.43
7.4.240.0070.00016.58
7.4.230.0040.00416.30
7.4.220.0120.00616.63
7.4.210.0070.00916.51
7.4.200.0070.00016.36
7.4.190.0000.00716.51
7.4.160.0160.00616.69
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0080.00816.46
7.4.120.0100.00716.50
7.4.110.0100.00716.47
7.4.100.0060.01016.57
7.4.90.0030.01616.45
7.4.80.0100.00719.39
7.4.70.0060.01016.51
7.4.60.0080.01416.59
7.4.50.0000.00816.32
7.4.40.0100.00722.77
7.4.30.0120.00616.42
7.4.10.0030.01415.11
7.4.00.0080.00914.97
7.3.330.0000.00513.28
7.3.320.0000.00613.38
7.3.310.0040.00416.34
7.3.300.0070.00016.18
7.3.290.0070.00716.30
7.3.280.0070.01116.29
7.3.270.0090.00817.40
7.3.260.0160.00318.24
7.3.250.0090.00916.26
7.3.240.0100.00716.54
7.3.230.0070.01016.47
7.3.210.0070.01416.28
7.3.200.0120.00619.39
7.3.190.0130.00316.54
7.3.180.0090.00816.52
7.3.170.0150.00616.39
7.3.160.0100.00716.30
7.3.130.0070.01114.70
7.3.120.0050.01214.81
7.3.110.0130.00714.76
7.3.100.0160.00014.71
7.3.90.0040.00814.86
7.3.80.0140.00314.65
7.3.70.0080.00814.81
7.3.60.0040.01214.84
7.3.50.0040.00414.84
7.3.40.0080.00414.81
7.3.30.0030.01214.81
7.3.20.0030.01016.77
7.3.10.0080.00816.69
7.3.00.0070.00716.74
7.2.330.0060.01016.43
7.2.320.0180.00316.56
7.2.310.0060.01816.65
7.2.300.0100.00616.42
7.2.290.0090.01016.77
7.2.260.0120.00815.01
7.2.250.0160.00315.09
7.2.240.0060.00915.23
7.2.230.0130.00614.95
7.2.220.0100.00615.11
7.2.210.0040.01415.14
7.2.200.0030.00914.80
7.2.190.0080.00814.83
7.2.180.0030.01014.96
7.2.170.0110.00014.98
7.2.160.0100.00315.09
7.2.150.0030.01216.82
7.2.140.0070.00317.02
7.2.130.0070.01117.04
7.2.120.0060.00916.78
7.2.110.0030.01016.76
7.2.100.0090.00616.59
7.2.90.0030.01416.64
7.2.80.0060.01216.64
7.2.70.0060.00616.88
7.2.60.0030.00617.09
7.2.50.0080.00316.62
7.2.40.0060.00316.85
7.2.30.0060.00916.82
7.2.20.0150.00016.82
7.2.10.0080.00817.06
7.2.00.0030.01218.10
7.1.330.0070.00715.81
7.1.320.0070.01115.84
7.1.310.0030.01016.07
7.1.300.0040.00815.80
7.1.290.0060.00615.68
7.1.280.0120.00615.61
7.1.270.0040.00815.74
7.1.260.0080.00015.84
7.1.250.0060.00715.65
7.1.240.0000.01115.68
7.1.230.0090.00015.78
7.1.220.0070.00715.73
7.1.210.0120.00015.60
7.1.200.0050.00915.77
7.1.190.0030.00615.83
7.1.180.0070.00315.55
7.1.170.0070.00715.91
7.1.160.0080.00815.63
7.1.150.0000.01215.71
7.1.140.0060.00315.92
7.1.130.0060.00615.66
7.1.120.0030.01415.76
7.1.110.0000.01315.95
7.1.100.0100.00217.09
7.1.90.0070.00715.98
7.1.80.0000.01415.83
7.1.70.0050.00316.40
7.1.60.0050.00916.51
7.1.50.0080.00516.31
7.1.40.0030.01415.88
7.1.30.0090.00915.68
7.1.20.0080.00315.60
7.1.10.0030.01015.80
7.1.00.0020.04219.26
7.0.330.0040.01115.02
7.0.320.0040.01215.25
7.0.310.0030.00615.05
7.0.300.0000.01115.31
7.0.290.0040.00415.32
7.0.280.0030.01315.08
7.0.270.0000.01315.22
7.0.260.0040.00715.51
7.0.250.0000.00915.07
7.0.240.0070.00715.59
7.0.230.0040.01115.43
7.0.220.0090.00015.51
7.0.210.0030.00715.09
7.0.200.0070.01016.06
7.0.190.0110.00615.23
7.0.180.0120.00315.30
7.0.170.0030.01315.37
7.0.160.0000.01115.55
7.0.150.0080.00015.42
7.0.140.0070.03818.66
7.0.130.0040.00715.30
7.0.120.0040.00815.18
7.0.110.0100.00715.55
7.0.100.0070.00715.24
7.0.90.0030.00915.34
7.0.80.0030.00915.33
7.0.70.0040.04118.68
7.0.60.0050.03518.40
7.0.50.0030.03818.84
7.0.40.0080.04116.72
7.0.30.0070.03516.82
7.0.20.0020.04116.71
7.0.10.0050.03716.71
7.0.00.0060.04616.57
5.6.400.0100.00014.23
5.6.390.0030.01014.18
5.6.380.0060.00314.04
5.6.370.0040.01114.09
5.6.360.0060.00614.39
5.6.350.0070.00714.43
5.6.340.0000.00814.63
5.6.330.0030.01214.70
5.6.320.0000.01414.60
5.6.310.0000.01114.34
5.6.300.0000.01114.21
5.6.290.0040.01414.68
5.6.280.0070.03717.68
5.6.270.0070.00714.30
5.6.260.0060.00914.52
5.6.250.0070.00714.54
5.6.240.0060.00314.54
5.6.230.0060.00614.58
5.6.220.0040.04117.57
5.6.210.0080.04217.48
5.6.200.0080.04017.75
5.6.190.0010.03417.59
5.6.180.0090.03117.67
5.6.170.0050.04917.83
5.6.160.0100.03717.79
5.6.150.0030.05017.79
5.6.140.0030.04617.77
5.6.130.0050.03817.73
5.6.120.0020.03317.93
5.6.110.0050.02717.74
5.6.100.0080.04317.67
5.6.90.0080.05117.89
5.6.80.0050.04217.42
5.6.70.0050.03017.35
5.6.60.0080.04017.46
5.6.50.0050.04317.31
5.6.40.0050.04317.42
5.6.30.0090.02517.50
5.6.20.0020.03917.30
5.6.10.0020.04217.31
5.6.00.0070.04217.34
5.5.380.0030.00614.06
5.5.370.0070.00714.05
5.5.360.0050.02817.36
5.5.350.0020.05317.35
5.5.340.0020.04717.50
5.5.330.0070.03717.60
5.5.320.0090.03817.61
5.5.310.0050.03217.61
5.5.300.0100.04317.69
5.5.290.0060.02617.59
5.5.280.0030.04717.48
5.5.270.0160.03317.41
5.5.260.0050.04617.50
5.5.250.0090.04717.50
5.5.240.0060.03217.14
5.5.230.0090.04117.13
5.5.220.0030.03317.14
5.5.210.0120.04217.30
5.5.200.0050.03717.23
5.5.190.0080.04017.36
5.5.180.0100.04417.15
5.5.170.0080.00014.27
5.5.160.0100.03017.09
5.5.150.0030.04517.19
5.5.140.0070.04517.20
5.5.130.0040.02917.23
5.5.120.0090.02817.27
5.5.110.0080.04017.38
5.5.100.0070.03017.33
5.5.90.0050.03417.19
5.5.80.0070.04017.09
5.5.70.0050.04317.17
5.5.60.0090.03516.94
5.5.50.0060.04317.25
5.5.40.0100.03817.19
5.5.30.0040.03517.24
5.5.20.0070.04017.21
5.5.10.0100.02517.12
5.5.00.0040.03417.21
5.4.450.0030.02515.75
5.4.440.0070.04015.78
5.4.430.0050.04215.73
5.4.420.0090.04215.68
5.4.410.0040.03115.69
5.4.400.0030.02715.50
5.4.390.0070.02915.56
5.4.380.0080.03815.57
5.4.370.0030.03715.52
5.4.360.0080.04215.59
5.4.350.0030.04015.52
5.4.340.0030.04015.42
5.4.330.0040.00412.00
5.4.320.0030.03015.47
5.4.310.0050.03315.52
5.4.300.0000.04415.52
5.4.290.0050.02215.60
5.4.280.0060.02615.58
5.4.270.0010.02815.50
5.4.260.0020.04115.45
5.4.250.0070.02815.51
5.4.240.0000.03115.54
5.4.230.0060.03715.47
5.4.220.0050.04315.52
5.4.210.0020.04415.54
5.4.200.0050.03215.54
5.4.190.0050.03315.56
5.4.180.0010.04315.56
5.4.170.0050.04015.54
5.4.160.0070.03715.51
5.4.150.0050.04215.46
5.4.140.0030.04114.21
5.4.130.0010.03314.20
5.4.120.0000.03314.20
5.4.110.0040.02814.17
5.4.100.0050.03714.21
5.4.90.0010.03114.24
5.4.80.0020.02914.22
5.4.70.0050.03214.25
5.4.60.0070.02314.20
5.4.50.0050.03214.20
5.4.40.0050.03514.21
5.4.30.0050.03714.18
5.4.20.0030.03814.18
5.4.10.0020.03314.14
5.4.00.0050.03113.93
5.3.290.0020.03713.32
5.3.280.0030.02913.26
5.3.270.0000.04713.29
5.3.260.0050.04013.29
5.3.250.0000.04513.36
5.3.240.0050.03313.33
5.3.230.0030.04413.30
5.3.220.0030.04013.33
5.3.210.0000.04713.29
5.3.200.0050.04013.34
5.3.190.0040.03813.35
5.3.180.0000.04413.27
5.3.170.0080.03513.31
5.3.160.0090.03813.28
5.3.150.0030.03213.33
5.3.140.0030.04213.33
5.3.130.0020.04413.23
5.3.120.0040.03713.33
5.3.110.0050.03313.30
5.3.100.0000.04513.01
5.3.90.0040.04613.06
5.3.80.0060.04012.97
5.3.70.0020.03012.96
5.3.60.0010.04313.06
5.3.50.0030.03512.93
5.3.40.0030.03912.91
5.3.30.0070.02512.99
5.3.20.0000.04212.89
5.3.10.0030.04012.83
5.3.00.0020.02912.77
5.2.170.0000.07012.31
5.2.160.0070.03712.31
5.2.150.0070.03312.31
5.2.140.0070.06312.31
5.2.130.0000.04012.31
5.2.120.0030.06312.31
5.2.110.0000.06312.31
5.2.100.0030.03312.31
5.2.90.0000.05312.31
5.2.80.0030.06312.31
5.2.70.0100.03312.31
5.2.60.0000.03312.31
5.2.50.0030.04712.31
5.2.40.0070.04712.31
5.2.30.0100.05712.31
5.2.20.0030.06012.31
5.2.10.0030.06012.31
5.2.00.0100.05312.31
5.1.60.0000.03712.31
5.1.50.0030.05012.31
5.1.40.0030.05012.31
5.1.30.0000.06312.31
5.1.20.0000.06012.31
5.1.10.0000.06012.31
5.1.00.0030.05712.31
5.0.50.0000.05012.31
5.0.40.0030.03712.31
5.0.30.0030.06312.31
5.0.20.0030.04312.31
5.0.10.0000.04712.31
5.0.00.0030.05012.31
4.4.90.0000.04012.31
4.4.80.0100.02712.31
4.4.70.0030.02312.31
4.4.60.0030.03312.31
4.4.50.0030.02712.31
4.4.40.0000.04712.31
4.4.30.0000.03712.31
4.4.20.0030.03312.31
4.4.10.0030.03312.31
4.4.00.0030.05312.31
4.3.110.0030.03312.31
4.3.100.0000.03312.31
4.3.90.0000.03012.31
4.3.80.0070.04312.31
4.3.70.0070.03712.31
4.3.60.0070.03012.31
4.3.50.0000.02312.31
4.3.40.0030.05012.31
4.3.30.0070.02312.31
4.3.20.0030.03012.31
4.3.10.0030.03312.31
4.3.00.0070.02712.31

preferences:
46.16 ms | 400 KiB | 5 Q