3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ const STATUS_ENABLED = 'Enabled'; const STATUS_DISABLED = 'Disabled'; public function someMethod(){ $refl = new ReflectionClass(__CLASS__); var_dump($refl->getConstants()); } } $x = new Test(); $x->someMethod();

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.0150.00618.72
8.3.30.0090.00618.82
8.3.20.0040.00420.20
8.3.10.0000.00821.90
8.3.00.0000.00819.07
8.2.170.0160.00318.76
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.54
8.2.110.0000.00921.04
8.2.100.0030.00717.78
8.2.90.0080.00017.84
8.2.80.0050.00318.22
8.2.70.0080.00017.50
8.2.60.0030.00517.50
8.2.50.0000.00817.55
8.2.40.0090.00019.23
8.2.30.0030.00519.85
8.2.20.0000.00717.61
8.2.10.0040.00417.91
8.2.00.0000.00717.59
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.52
8.1.230.0070.00420.97
8.1.220.0000.00717.74
8.1.210.0000.00818.85
8.1.200.0100.00017.22
8.1.190.0040.00417.11
8.1.180.0030.00718.10
8.1.170.0080.00017.62
8.1.160.0030.00321.86
8.1.150.0030.00518.86
8.1.140.0000.00717.30
8.1.130.0030.00617.88
8.1.120.0000.00717.38
8.1.110.0000.00717.27
8.1.100.0050.00217.34
8.1.90.0000.00717.40
8.1.80.0000.00717.27
8.1.70.0070.00017.39
8.1.60.0000.00917.60
8.1.50.0000.00817.50
8.1.40.0040.00417.54
8.1.30.0000.00917.55
8.1.20.0000.00717.51
8.1.10.0000.00717.48
8.1.00.0030.00517.38
8.0.300.0040.00419.89
8.0.290.0070.00016.63
8.0.280.0000.00718.27
8.0.270.0070.00017.24
8.0.260.0030.00317.19
8.0.250.0070.00016.89
8.0.240.0050.00316.90
8.0.230.0000.00716.84
8.0.220.0030.00316.83
8.0.210.0070.00016.73
8.0.200.0000.00716.86
8.0.190.0070.00016.90
8.0.180.0080.00016.74
8.0.170.0000.00816.75
8.0.160.0000.00716.91
8.0.150.0030.00316.75
8.0.140.0030.00716.57
8.0.130.0080.00013.29
8.0.120.0030.00516.79
8.0.110.0080.00016.74
8.0.100.0000.00816.88
8.0.90.0000.00716.62
8.0.80.0090.00616.83
8.0.70.0040.00416.67
8.0.60.0040.00416.81
8.0.50.0050.00216.66
8.0.30.0100.01317.17
8.0.20.0110.01217.40
8.0.10.0000.00717.01
8.0.00.0050.01416.76
7.4.330.0000.00515.03
7.4.320.0060.00016.54
7.4.300.0030.00316.48
7.4.290.0040.00416.61
7.4.280.0040.00416.58
7.4.270.0000.00716.52
7.4.260.0000.00716.47
7.4.250.0030.00516.36
7.4.240.0020.00616.55
7.4.230.0070.00016.52
7.4.220.0070.01016.45
7.4.210.0040.01116.60
7.4.200.0050.00316.30
7.4.160.0070.01116.25
7.4.150.0030.01417.40
7.4.140.0110.00817.86
7.4.130.0100.00716.42
7.4.120.0100.00716.51
7.4.110.0120.00616.32
7.4.100.0130.01016.57
7.4.90.0060.01216.40
7.4.80.0090.01219.39
7.4.70.0140.00316.52
7.4.60.0080.00816.30
7.4.50.0000.00816.58
7.4.40.0090.01516.44
7.4.30.0110.00816.53
7.4.00.0090.00614.81
7.3.330.0000.00613.02
7.3.320.0050.00013.30
7.3.310.0040.00416.34
7.3.300.0000.00716.21
7.3.290.0070.00716.22
7.3.280.0110.00816.20
7.3.270.0060.01217.40
7.3.260.0100.00716.43
7.3.250.0100.00716.26
7.3.240.0080.01216.21
7.3.230.0090.00916.39
7.3.210.0230.02616.28
7.3.200.0100.01319.39
7.3.190.0100.01016.16
7.3.180.0000.01416.36
7.3.170.0100.01116.29
7.3.160.0120.00416.23
7.2.330.0120.00616.55
7.2.320.0090.01516.70
7.2.310.0140.00316.59
7.2.300.0090.00916.37
7.2.290.0170.00016.73
7.2.80.0030.01216.54
7.2.60.0130.00316.95
7.2.00.0030.00719.42
7.1.200.0100.00315.76
7.1.100.0040.01517.96
7.1.70.0070.00017.07
7.1.60.0060.00919.46
7.1.50.0070.01716.79
7.1.00.0070.07322.45
7.0.200.0040.01114.56
7.0.140.0000.05722.11
7.0.110.0070.04720.09
7.0.100.0170.07020.07
7.0.90.0130.05019.86
7.0.80.0130.08720.04
7.0.70.0200.07720.04
7.0.60.0070.09019.89
7.0.50.0200.08020.49
7.0.40.0130.05320.25
7.0.30.0000.07720.23
7.0.20.0130.04720.03
7.0.10.0170.07020.02
7.0.00.0070.07720.18
5.6.280.0130.06321.07
5.6.250.0100.06020.67
5.6.240.0100.07720.56
5.6.230.0130.07320.66
5.6.220.0070.07320.84
5.6.210.0070.09320.40
5.6.200.0030.05321.30
5.6.190.0070.07721.15
5.6.180.0130.04321.03
5.6.170.0030.06720.96
5.6.160.0000.09321.14
5.6.150.0100.08021.29
5.6.140.0100.08021.19
5.6.130.0070.08020.99
5.6.120.0100.04721.03
5.6.110.0000.06020.98
5.6.100.0030.09321.11
5.6.90.0230.04021.06
5.6.80.0100.06020.41
5.6.70.0130.07320.52
5.6.60.0130.06320.45
5.6.50.0100.08020.54
5.6.40.0030.04320.29
5.6.30.0030.06020.50
5.6.20.0000.04320.54
5.6.10.0070.03720.38
5.6.00.0070.04020.41
5.5.380.0030.07720.57
5.5.370.0270.06020.33
5.5.360.0170.07320.29
5.5.350.0170.07020.45
5.5.340.0170.04020.74
5.5.330.0200.07320.74
5.5.320.0130.07020.89
5.5.310.0000.09020.90
5.5.300.0000.09020.74
5.5.290.0130.08320.81
5.5.280.0100.05320.74
5.5.270.0130.07720.90
5.5.260.0170.07320.89
5.5.250.0000.09020.63
5.5.240.0030.06720.35
5.5.230.0100.06720.18
5.5.220.0030.05020.35
5.5.210.0100.08320.16
5.5.200.0070.04020.26
5.5.190.0030.04320.10
5.5.180.0000.05720.20
5.5.160.0030.04020.09
5.5.150.0000.04320.16
5.5.140.0030.04020.02
5.5.130.0100.03720.30
5.5.120.0030.04320.23
5.5.110.0000.04320.11
5.5.100.0030.04020.21
5.5.90.0100.04320.27
5.5.80.0030.04019.98
5.5.70.0100.04020.25
5.5.60.0100.06020.27
5.5.50.0070.03720.01
5.5.40.0070.04020.24
5.5.30.0030.04720.24
5.5.20.0070.03720.11
5.5.10.0070.03720.16
5.5.00.0030.05320.11
5.4.450.0100.08019.36
5.4.440.0200.07019.55
5.4.430.0070.07719.48
5.4.420.0100.06019.63
5.4.410.0100.06319.18
5.4.400.0070.04718.99
5.4.390.0200.06318.98
5.4.380.0070.07719.09
5.4.370.0030.05719.23
5.4.360.0100.07019.31
5.4.350.0030.04019.03
5.4.340.0130.03019.31
5.4.320.0070.03719.04
5.4.310.0030.04019.03
5.4.300.0000.04019.26
5.4.290.0070.04019.02
5.4.280.0030.04319.16
5.4.270.0100.03019.16
5.4.260.0030.03719.16
5.4.250.0070.05319.02
5.4.240.0030.03719.02
5.4.230.0000.06718.98
5.4.220.0000.04019.33
5.4.210.0030.03718.98
5.4.200.0030.04318.98
5.4.190.0070.03319.33
5.4.180.0030.04019.17
5.4.170.0070.03319.32
5.4.160.0030.03719.00
5.4.150.0070.03719.30
5.4.140.0070.03316.59
5.4.130.0000.04016.32
5.4.120.0030.03716.59
5.4.110.0100.03016.56
5.4.100.0100.06716.41
5.4.90.0100.05316.36
5.4.80.0030.03716.55
5.4.70.0070.03316.57
5.4.60.0000.03716.63
5.4.50.0000.05016.48
5.4.40.0000.04016.53
5.4.30.0030.03316.52
5.4.20.0100.03316.48
5.4.10.0030.03716.22
5.4.00.0000.04015.98
5.3.290.0030.03714.52
5.3.280.0070.03314.61
5.3.270.0030.03714.62
5.3.260.0000.04014.73
5.3.250.0030.03714.75
5.3.240.0030.03714.62
5.3.230.0000.04014.57
5.3.220.0100.03014.65
5.3.210.0000.04014.70
5.3.200.0000.04014.57
5.3.190.0030.06314.69
5.3.180.0000.04014.69
5.3.170.0000.04014.69
5.3.160.0030.05314.55
5.3.150.0000.04014.79
5.3.140.0100.03014.56
5.3.130.0000.06014.53
5.3.120.0030.04314.62
5.3.110.0070.03314.40
5.3.100.0070.03314.03
5.3.90.0030.03714.01
5.3.80.0030.03313.87
5.3.70.0030.06014.01
5.3.60.0000.04013.86
5.3.50.0100.03013.95
5.3.40.0100.05713.94
5.3.30.0130.06313.91
5.3.20.0070.06713.82
5.3.10.0170.05313.63
5.3.00.0030.06713.63
5.2.170.0070.02311.11
5.2.160.0030.03311.20
5.2.150.0030.06711.12
5.2.140.0000.06311.00
5.2.130.0100.06011.18
5.2.120.0130.05011.11
5.2.110.0000.06711.23
5.2.100.0100.06011.07
5.2.90.0030.06011.07
5.2.80.0130.05311.05
5.2.70.0100.05711.23
5.2.60.0030.05011.04
5.2.50.0030.06310.99
5.2.40.0070.05710.96
5.2.30.0030.06310.97
5.2.20.0100.05010.97
5.2.10.0000.06310.82
5.2.00.0100.06010.57
5.1.60.0000.05010.16
5.1.50.0030.05710.24
5.1.40.0030.0539.96
5.1.30.0030.05310.34
5.1.20.0030.05310.44
5.1.10.0030.05710.14
5.1.00.0200.03710.07
5.0.50.0000.0478.70
5.0.40.0000.0478.49
5.0.30.0030.0508.47
5.0.20.0000.0478.20
5.0.10.0000.0408.42
5.0.00.0070.0638.15
4.4.90.0000.0378.11
4.4.80.0030.0338.11
4.4.70.0070.0278.11
4.4.60.0000.0378.11
4.4.50.0030.0338.11
4.4.40.0000.0308.11
4.4.30.0030.0338.11
4.4.20.0070.0278.11
4.4.10.0070.0278.11
4.4.00.0030.0278.11
4.3.110.0070.0308.11
4.3.100.0070.0308.11
4.3.90.0070.0278.11
4.3.80.0000.0338.11
4.3.70.0030.0308.11
4.3.60.0000.0308.11
4.3.50.0000.0308.11
4.3.40.0030.0378.11
4.3.30.0000.0338.11
4.3.20.0000.0378.11
4.3.10.0000.0378.11
4.3.00.0000.0378.11

preferences:
50.14 ms | 400 KiB | 5 Q