3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FF_SubTypes { const FF = "FlixFling"; const GH = "Grindhouse"; const FR = "FrightFlix"; const KF = "KidsFlix"; const SD = "ScreenDreams"; } class MyClass implements FF_SubTypes { public $subs = array(); function __construct() { $r = new ReflectionObject($this); $this->subs = $r->getConstants(); //foreach($r->getConstants() AS $sub_name) { $subs[] = $sub_name; } } } $myClass = new MyClass(); print_r($myClass->subs); //$reflected = new ReflectionObject($myClass); //print_r($reflected->getConstants());

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.0140.00718.31
8.3.50.0130.00821.97
8.3.40.0070.01118.67
8.3.30.0110.00419.10
8.3.20.0050.00320.39
8.3.10.0000.00721.81
8.3.00.0080.00017.93
8.2.180.0100.01016.50
8.2.170.0110.00322.96
8.2.160.0070.01020.58
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.09
8.2.110.0060.00322.11
8.2.100.0040.00718.09
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0050.00318.16
8.2.30.0060.00318.24
8.2.20.0030.00517.78
8.2.10.0030.00517.96
8.2.00.0000.00817.74
8.1.280.0060.00925.92
8.1.270.0040.00421.89
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.19
8.1.230.0060.00619.00
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0040.00422.00
8.1.150.0030.00518.94
8.1.140.0000.00817.45
8.1.130.0000.00817.89
8.1.120.0000.00717.51
8.1.110.0040.00417.36
8.1.100.0070.00017.35
8.1.90.0030.00317.47
8.1.80.0050.00317.34
8.1.70.0030.00317.46
8.1.60.0000.00917.64
8.1.50.0000.00717.44
8.1.40.0060.00317.50
8.1.30.0000.00717.65
8.1.20.0030.00617.52
8.1.10.0040.00417.52
8.1.00.0040.00417.42
8.0.300.0070.00018.77
8.0.290.0030.00716.63
8.0.280.0000.00718.41
8.0.270.0030.00317.25
8.0.260.0030.00317.17
8.0.250.0070.00016.86
8.0.240.0030.00616.88
8.0.230.0000.00816.91
8.0.220.0080.00016.82
8.0.210.0030.00616.79
8.0.200.0030.00316.84
8.0.190.0000.00716.87
8.0.180.0020.00516.89
8.0.170.0080.00016.96
8.0.160.0000.00716.86
8.0.150.0000.00716.89
8.0.140.0040.00416.69
8.0.130.0050.00013.35
8.0.120.0040.00416.86
8.0.110.0030.00516.87
8.0.100.0070.00016.87
8.0.90.0070.00016.84
8.0.80.0070.01416.80
8.0.70.0000.00716.88
8.0.60.0000.00816.86
8.0.50.0040.00416.75
8.0.30.0090.01217.19
8.0.20.0140.00417.40
8.0.10.0040.00416.89
8.0.00.0040.01316.64
7.4.330.0000.00515.00
7.4.320.0000.00616.52
7.4.300.0000.00616.61
7.4.290.0030.00316.57
7.4.280.0030.00516.50
7.4.270.0070.00016.57
7.4.260.0000.00716.50
7.4.250.0040.00416.55
7.4.240.0030.00416.54
7.4.230.0030.00316.50
7.4.220.0120.00416.62
7.4.210.0070.00716.42
7.4.200.0060.00316.47
7.4.160.0070.01016.29
7.4.150.0070.01017.40
7.4.140.0100.01117.86
7.4.130.0130.00316.40
7.4.120.0100.00716.47
7.4.110.0140.00616.46
7.4.100.0070.01016.57
7.4.90.0100.00716.36
7.4.80.0060.01019.39
7.4.70.0140.00416.53
7.4.60.0150.00716.55
7.4.50.0000.00816.50
7.4.40.0120.00616.39
7.4.30.0200.00316.46
7.4.00.0090.00614.88
7.3.330.0060.00013.32
7.3.320.0000.00713.30
7.3.310.0070.00016.20
7.3.300.0040.00416.30
7.3.290.0090.00916.24
7.3.280.0080.00916.33
7.3.270.0090.00917.40
7.3.260.0150.00416.54
7.3.250.0140.00316.55
7.3.240.0200.00016.55
7.3.230.0170.00316.55
7.3.210.0180.00016.38
7.3.200.0040.01219.39
7.3.190.0160.00616.49
7.3.180.0060.00916.50
7.3.170.0120.00316.27
7.3.160.0100.00716.36
7.3.120.0030.01014.71
7.3.10.0030.01016.34
7.3.00.0000.01816.66
7.2.330.0070.01016.74
7.2.320.0030.01616.82
7.2.310.0100.00616.73
7.2.300.0100.00716.41
7.2.290.0140.00316.51
7.2.130.0040.01116.93
7.2.120.0110.00316.73
7.2.110.0090.00616.84
7.2.100.0040.01416.88
7.2.90.0030.01016.93
7.2.80.0030.00716.68
7.2.70.0040.01517.09
7.2.60.0000.01617.07
7.2.50.0070.00716.75
7.2.40.0030.01017.03
7.2.30.0040.01116.95
7.2.20.0070.00316.65
7.2.10.0000.01116.78
7.2.00.0050.00918.34
7.1.250.0060.00615.70
7.1.100.0000.01118.23
7.1.70.0000.00717.26
7.1.60.0060.01219.70
7.1.50.0120.01217.03
7.1.00.0070.06722.51
7.0.200.0260.01014.61
7.0.140.0100.07021.99
7.0.60.0070.08019.91
7.0.50.0070.06717.96
7.0.40.0070.04020.02
7.0.30.0230.08020.26
7.0.20.0300.07320.08
7.0.10.0130.08020.07
7.0.00.0030.04720.29
5.6.280.0030.07321.13
5.6.210.0130.07320.57
5.6.200.0100.07718.24
5.6.190.0130.05020.77
5.6.180.0230.03720.46
5.6.170.0300.08320.59
5.6.160.0100.07320.62
5.6.150.0070.08318.15
5.6.140.0030.08018.19
5.6.130.0130.07318.18
5.6.120.0070.05020.99
5.6.110.0070.08021.11
5.6.100.0070.08321.08
5.6.90.0100.08021.02
5.6.80.0030.06020.38
5.5.350.0230.07320.41
5.5.340.0130.07017.97
5.5.330.0230.06720.28
5.5.320.0270.06720.27
5.5.310.0100.05320.31
5.5.300.0070.07017.99
5.5.290.0130.04018.00
5.5.280.0030.07720.91
5.5.270.0270.04020.66
5.5.260.0070.07720.77
5.5.250.0130.07020.70
5.5.240.0000.08320.27
5.4.450.0770.04319.63
5.4.440.0930.06019.47
5.4.430.0800.05319.48
5.4.420.1070.04719.33
5.4.410.0100.05319.05
5.4.400.0330.05718.79
5.4.390.0270.05318.73
5.4.380.0200.04718.80
5.4.370.0070.05318.58
5.4.360.0000.04318.42
5.4.350.0060.03412.03
5.4.340.0100.04412.02
5.4.320.0080.03612.50
5.4.310.0080.03712.50
5.4.300.0090.03412.50
5.4.290.0040.04012.50
5.4.280.0060.03512.40
5.4.270.0060.03612.40
5.4.260.0060.03712.40
5.4.250.0030.04212.40
5.4.240.0040.03812.39
5.4.230.0020.04212.39
5.4.220.0060.03612.39
5.4.210.0080.03412.39
5.4.200.0070.03712.39
5.4.190.0060.03612.39
5.4.180.0070.03512.39
5.4.170.0070.03612.40
5.4.160.0040.03912.39
5.4.150.0070.03512.39
5.4.140.0060.03912.07
5.4.130.0100.03812.07
5.4.120.0090.04012.02
5.4.110.0100.05112.02
5.4.100.0060.04712.01
5.4.90.0070.03612.02
5.4.80.0080.03512.02
5.4.70.0040.03912.02
5.4.60.0060.03512.01
5.4.50.0020.03912.01
5.4.40.0070.03812.00
5.4.30.0090.03312.00
5.4.20.0070.03512.00
5.4.10.0090.03212.00
5.4.00.0040.03811.49
5.3.290.0090.03812.80
5.3.280.0120.03512.71
5.3.270.0070.03912.73
5.3.260.0070.03712.72
5.3.250.0040.03812.72
5.3.240.0020.04012.72
5.3.230.0060.03812.71
5.3.220.0090.03412.68
5.3.210.0050.04012.68
5.3.200.0080.03512.68
5.3.190.0060.03712.68
5.3.180.0080.03412.67
5.3.170.0030.03812.67
5.3.160.0050.03712.67
5.3.150.0070.03612.67
5.3.140.0060.03712.66
5.3.130.0090.03612.66
5.3.120.0090.03612.66
5.3.110.0050.04412.66
5.3.100.0090.03312.12
5.3.90.0090.03312.10
5.3.80.0070.03812.10
5.3.70.0060.03712.09
5.3.60.0040.03812.08
5.3.50.0060.03612.03
5.3.40.0050.04412.03
5.3.30.0050.04011.98
5.3.20.0060.03611.76
5.3.10.0060.03611.73
5.3.00.0100.03311.72
5.2.170.0090.0389.22
5.2.160.0040.0319.21
5.2.150.0060.0319.22
5.2.140.0100.0279.22
5.2.130.0060.0319.18
5.2.120.0070.0279.18
5.2.110.0070.0289.19
5.2.100.0080.0329.18
5.2.90.0090.0269.18
5.2.80.0060.0299.18
5.2.70.0030.0349.18
5.2.60.0030.0349.13
5.2.50.0030.0329.10
5.2.40.0040.0309.07
5.2.30.0020.0329.05
5.2.20.0050.0369.04
5.2.10.0050.0288.95
5.2.00.0030.0308.80
5.1.60.0070.0218.09
5.1.50.0040.0268.09
5.1.40.0080.0228.06
5.1.30.0050.0268.41
5.1.20.0050.0278.44
5.1.10.0030.0278.16
5.1.00.0040.0268.17
5.0.50.0030.0216.64
5.0.40.0030.0206.50
5.0.30.0040.0316.32
5.0.20.0090.0146.28
5.0.10.0000.0236.27
5.0.00.0040.0306.25
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0030.0154.76
4.4.60.0030.0164.75
4.4.50.0030.0154.77
4.4.40.0040.0234.71
4.4.30.0000.0184.76
4.4.20.0020.0164.84
4.4.10.0050.0134.85
4.4.00.0030.0254.76
4.3.110.0050.0134.67
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0010.0264.58
4.3.70.0050.0124.63
4.3.60.0040.0134.63
4.3.50.0040.0164.63
4.3.40.0050.0214.54
4.3.30.0030.0153.29
4.3.20.0020.0153.26
4.3.10.0000.0183.22
4.3.00.0170.0177.18

preferences:
45.52 ms | 400 KiB | 5 Q