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); print_r($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.0060.00818.30
8.3.50.0160.01022.05
8.3.40.0070.01118.58
8.3.30.0070.01019.11
8.3.20.0040.00420.30
8.3.10.0050.00323.66
8.3.00.0050.00317.77
8.2.180.0170.00316.38
8.2.170.0070.00722.96
8.2.160.0070.01020.44
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.01
8.2.110.0060.00322.11
8.2.100.0080.00618.09
8.2.90.0000.00919.17
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0080.00018.34
8.2.30.0070.00418.19
8.2.20.0000.00817.70
8.2.10.0040.00418.12
8.2.00.0090.00017.86
8.1.280.0060.01025.92
8.1.270.0060.00322.19
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0030.00622.08
8.1.230.0040.00719.16
8.1.220.0000.00817.89
8.1.210.0030.00518.77
8.1.200.0070.00317.23
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0050.00318.52
8.1.160.0040.00421.93
8.1.150.0000.00818.82
8.1.140.0000.00717.36
8.1.130.0030.00317.88
8.1.120.0030.00317.40
8.1.110.0040.00417.38
8.1.100.0000.00717.37
8.1.90.0000.00717.41
8.1.80.0000.00717.52
8.1.70.0070.00017.41
8.1.60.0040.00417.50
8.1.50.0040.00417.43
8.1.40.0040.00417.50
8.1.30.0000.00817.61
8.1.20.0000.00817.64
8.1.10.0030.00617.50
8.1.00.0000.00917.37
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0030.00318.50
8.0.270.0030.00317.26
8.0.260.0030.00317.26
8.0.250.0000.00716.85
8.0.240.0060.00316.88
8.0.230.0070.00016.92
8.0.220.0030.00316.79
8.0.210.0040.00416.80
8.0.200.0070.00016.96
8.0.190.0030.00316.97
8.0.180.0040.00416.78
8.0.170.0040.00416.87
8.0.160.0000.00716.92
8.0.150.0080.00016.74
8.0.140.0030.00516.85
8.0.130.0050.00013.29
8.0.120.0000.00716.85
8.0.110.0040.00416.86
8.0.100.0070.00016.77
8.0.90.0000.00716.92
8.0.80.0070.01116.96
8.0.70.0040.00416.73
8.0.60.0080.00017.01
8.0.50.0080.00016.73
8.0.30.0120.00617.12
8.0.20.0090.00917.40
8.0.10.0040.00417.01
8.0.00.0090.00816.78
7.4.330.0000.00515.09
7.4.320.0030.00316.59
7.4.300.0040.00416.63
7.4.290.0030.00316.46
7.4.280.0030.00516.50
7.4.270.0040.00416.56
7.4.260.0070.00016.45
7.4.250.0000.00716.57
7.4.240.0020.00616.54
7.4.230.0070.00016.63
7.4.220.0070.00816.62
7.4.210.0000.01416.48
7.4.200.0000.00816.50
7.4.160.0120.00416.46
7.4.150.0150.00317.40
7.4.140.0040.01417.86
7.4.130.0110.00616.51
7.4.120.0060.01016.65
7.4.110.0070.01016.50
7.4.100.0110.00716.50
7.4.90.0080.00916.61
7.4.80.0030.01519.39
7.4.70.0100.00616.46
7.4.60.0040.01516.46
7.4.50.0040.00416.29
7.4.40.0060.00916.53
7.4.30.0120.01216.66
7.4.00.0090.00615.02
7.3.330.0000.00513.31
7.3.320.0020.00213.38
7.3.310.0020.00516.27
7.3.300.0070.00016.17
7.3.290.0100.01016.36
7.3.280.0110.00916.26
7.3.270.0130.00317.40
7.3.260.0090.00916.29
7.3.250.0090.00816.46
7.3.240.0090.00916.48
7.3.230.0140.00416.39
7.3.210.0130.00916.61
7.3.200.0060.01319.39
7.3.190.0110.00616.25
7.3.180.0060.01016.41
7.3.170.0000.01716.30
7.3.160.0090.00816.26
7.3.120.0030.01314.49
7.2.330.0030.01316.56
7.2.320.0050.01216.71
7.2.310.0150.00316.69
7.2.300.0060.00916.74
7.2.290.0120.00316.70
7.2.00.0060.01319.31
7.1.100.0050.00518.06
7.1.70.0030.00717.26
7.1.60.0040.01219.70
7.1.50.0080.01217.04
7.1.00.0000.08022.54
7.0.200.0210.00314.83
7.0.140.0000.07722.12
7.0.110.0630.08719.86
7.0.100.0630.06720.07
7.0.90.0700.07319.85
7.0.80.0470.05019.79
7.0.70.0530.08019.89
7.0.60.0200.08319.98
7.0.50.0570.08320.35
7.0.40.0100.07319.98
7.0.30.0030.08319.99
7.0.20.0030.09020.11
7.0.10.0200.06320.17
7.0.00.0170.06320.20
5.6.280.0100.06721.09
5.6.250.0130.07020.54
5.6.240.0130.07020.67
5.6.230.0130.07020.65
5.6.220.0170.07020.63
5.6.210.0000.08720.57
5.6.200.0030.08721.08
5.6.190.0070.06020.86
5.6.180.0030.08020.89
5.6.170.0070.08020.91
5.6.160.0030.08321.08
5.6.150.0070.08321.14
5.6.140.0130.07021.09
5.6.130.0030.06321.10
5.6.120.0130.05321.01
5.6.110.0100.06721.00
5.6.100.0030.09020.96
5.6.90.0030.05021.07
5.6.80.0130.06720.51
5.6.70.0070.08020.60
5.6.60.0100.08020.27
5.6.50.0100.07320.63
5.6.40.0070.06020.43
5.6.30.0100.07720.61
5.6.20.0070.06020.45
5.6.10.0070.07320.26
5.6.00.0070.07720.59
5.5.380.0200.06320.52
5.5.370.0070.03720.32
5.5.360.0030.08020.27
5.5.350.0100.07720.11
5.5.340.0070.08320.86
5.5.330.0000.05320.91
5.5.320.0170.05720.91
5.5.310.0030.08720.92
5.5.300.0000.05320.97
5.5.290.0070.08020.91
5.5.280.0170.06720.86
5.5.270.0030.04720.73
5.5.260.0030.08720.90
5.5.250.0130.05020.66
5.5.240.0130.06720.36
5.5.230.0130.07720.29
5.5.220.0070.06720.29
5.5.210.0100.07720.14
5.5.200.0000.05720.22
5.5.190.0100.07720.29
5.5.180.0130.07720.05
5.5.160.0030.04720.20
5.5.150.0030.08020.12
5.5.140.0130.07720.30
5.5.130.0070.07720.20
5.5.120.0100.06020.18
5.5.110.0130.06720.32
5.5.100.0130.07720.11
5.5.90.0100.07020.20
5.5.80.0070.07320.16
5.5.70.0170.06720.05
5.5.60.0070.07320.16
5.5.50.0070.08720.22
5.5.40.0130.05020.05
5.5.30.0070.04319.93
5.5.20.0100.07320.12
5.5.10.0130.06019.89
5.5.00.0130.04319.98
5.4.450.0070.07019.42
5.4.440.0100.08019.52
5.4.430.0100.07719.31
5.4.420.0100.07319.35
5.4.410.0100.04719.18
5.4.400.0030.07719.01
5.4.390.0070.07718.98
5.4.380.0100.06719.00
5.4.370.0030.08019.21
5.4.360.0030.07019.14
5.4.350.0030.07319.02
5.4.340.0000.08318.99
5.4.320.0130.06319.09
5.4.310.0030.08719.14
5.4.300.0030.05718.95
5.4.290.0070.07719.16
5.4.280.0000.06019.20
5.4.270.0030.04719.15
5.4.260.0100.07319.00
5.4.250.0070.04318.98
5.4.240.0030.04719.00
5.4.230.0000.08319.23
5.4.220.0070.06718.97
5.4.210.0100.07019.19
5.4.200.0100.07019.23
5.4.190.0170.05318.98
5.4.180.0100.06718.93
5.4.170.0030.07319.29
5.4.160.0100.07018.97
5.4.150.0130.07019.11
5.4.140.0000.07316.29
5.4.130.0000.04316.44
5.4.120.0070.07716.39
5.4.110.0200.04716.33
5.4.100.0100.04716.39
5.4.90.0100.07016.44
5.4.80.0100.06316.29
5.4.70.0200.05716.21
5.4.60.0000.05716.55
5.4.50.0030.07316.63
5.4.40.0000.07716.47
5.4.30.0070.07316.30
5.4.20.0030.07016.47
5.4.10.0030.06316.28
5.4.00.0100.06015.85
5.3.290.0070.07314.68
5.3.280.0030.07714.57
5.3.270.0030.05014.63
5.3.260.0100.07314.74
5.3.250.0100.06714.73
5.3.240.0000.08314.63
5.3.230.0070.07014.83
5.3.220.0030.07714.57
5.3.210.0000.05014.68
5.3.200.0070.07314.70
5.3.190.0100.04314.66
5.3.180.0100.07014.65
5.3.170.0130.06714.59
5.3.160.0030.07714.79
5.3.150.0130.06714.60
5.3.140.0130.07314.42
5.3.130.0030.07714.51
5.3.120.0130.05714.63
5.3.110.0170.07014.77
5.3.100.0030.08013.91
5.3.90.0030.07314.02
5.3.80.0070.07014.09
5.3.70.0000.08013.88
5.3.60.0000.05314.00
5.3.50.0070.08014.04
5.3.40.0070.05014.08
5.3.30.0130.05713.95
5.3.20.0100.03713.80
5.3.10.0000.03313.62
5.3.00.0070.03313.73
5.2.170.0000.06011.12
5.2.160.0070.03711.11
5.2.150.0000.03711.38
5.2.140.0100.02711.16
5.2.130.0000.03011.12
5.2.120.0000.03011.25
5.2.110.0000.03011.11
5.2.100.0000.03011.09
5.2.90.0000.03011.10
5.2.80.0030.02711.11
5.2.70.0000.03011.16
5.2.60.0100.04711.03
5.2.50.0000.03011.10
5.2.40.0000.02711.06
5.2.30.0030.02710.95
5.2.20.0100.02010.94
5.2.10.0000.03011.01
5.2.00.0030.04310.71
5.1.60.0030.05010.07
5.1.50.0000.0539.98
5.1.40.0000.03710.14
5.1.30.0000.05310.35
5.1.20.0030.03710.43
5.1.10.0030.05710.05
5.1.00.0000.05010.07
5.0.50.0070.0408.99
5.0.40.0000.0208.99
5.0.30.0000.0308.99
5.0.20.0000.0338.99
5.0.10.0000.0208.99
5.0.00.0000.0408.99
4.4.90.0000.0178.99
4.4.80.0030.0138.99
4.4.70.0000.0178.99
4.4.60.0000.0178.99
4.4.50.0000.0178.99
4.4.40.0000.0538.99
4.4.30.0100.0278.99
4.4.20.0000.0238.99
4.4.10.0070.0208.99
4.4.00.0000.0338.99
4.3.110.0030.0108.99
4.3.100.0070.0138.99
4.3.90.0000.0238.99
4.3.80.0070.0378.99
4.3.70.0000.0178.99
4.3.60.0000.0178.99
4.3.50.0030.0308.99
4.3.40.0000.0278.99
4.3.30.0000.0208.99
4.3.20.0000.0138.99
4.3.10.0030.0208.99
4.3.00.0000.0138.99

preferences:
38.77 ms | 401 KiB | 5 Q