3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { const A_1 = 1; const A_2 = 2; public function test() { $refl = new ReflectionClass($this); var_dump($refl->getConstants()); } } class ab extends a { const B_1 = 'b1'; } $a = new a(); $a->test(); $b = new ab(); $b->test();

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.01016.50
8.3.50.0140.01022.05
8.3.40.0130.01018.62
8.3.30.0140.00319.09
8.3.20.0040.00420.16
8.3.10.0040.00423.69
8.3.00.0080.00020.64
8.2.180.0070.01016.50
8.2.170.0110.00422.96
8.2.160.0130.00322.12
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00422.08
8.2.110.0090.00022.26
8.2.100.0060.00617.66
8.2.90.0080.00019.28
8.2.80.0000.00817.97
8.2.70.0070.00317.50
8.2.60.0000.01017.68
8.2.50.0040.00418.07
8.2.40.0000.00719.46
8.2.30.0040.00418.05
8.2.20.0040.00417.51
8.2.10.0000.00817.73
8.2.00.0060.00317.49
8.1.280.0100.01425.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00723.79
8.1.230.0110.00019.12
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0110.00017.25
8.1.190.0040.00417.40
8.1.180.0030.00618.10
8.1.170.0000.00818.49
8.1.160.0080.00021.98
8.1.150.0040.00418.57
8.1.140.0020.00517.39
8.1.130.0000.00717.76
8.1.120.0000.00817.31
8.1.110.0050.00217.38
8.1.100.0000.00817.29
8.1.90.0090.00017.40
8.1.80.0000.00717.22
8.1.70.0000.00717.37
8.1.60.0040.00417.50
8.1.50.0070.00017.59
8.1.40.0000.00717.55
8.1.30.0000.00817.59
8.1.20.0060.00317.55
8.1.10.0040.00417.41
8.1.00.0040.00417.43
8.0.300.0000.00818.77
8.0.290.0070.00017.18
8.0.280.0070.00018.29
8.0.270.0030.00317.13
8.0.260.0070.00016.79
8.0.250.0000.00716.84
8.0.240.0060.00316.76
8.0.230.0030.00316.88
8.0.220.0040.00416.78
8.0.210.0040.00416.73
8.0.200.0000.00816.88
8.0.190.0000.00816.80
8.0.180.0030.00616.85
8.0.170.0060.00316.73
8.0.160.0000.00816.75
8.0.150.0040.00416.77
8.0.140.0040.00416.84
8.0.130.0030.00313.21
8.0.120.0000.00816.79
8.0.110.0040.00416.73
8.0.100.0000.00816.80
8.0.90.0050.00216.71
8.0.80.0040.01216.84
8.0.70.0030.00616.62
8.0.60.0000.00716.88
8.0.50.0040.00416.84
8.0.30.0150.00417.09
8.0.20.0130.00417.40
8.0.10.0000.00816.85
8.0.00.0110.00816.59
7.4.330.0000.00615.09
7.4.320.0000.00716.36
7.4.300.0030.00316.51
7.4.290.0030.00316.39
7.4.280.0030.00316.51
7.4.270.0000.00816.50
7.4.260.0030.00316.41
7.4.250.0030.00516.45
7.4.240.0020.00516.57
7.4.230.0030.00316.60
7.4.220.0130.00716.45
7.4.210.0100.00616.69
7.4.200.0050.00216.60
7.4.190.0030.00316.75
7.4.160.0040.01216.43
7.4.150.0110.00717.40
7.4.140.0110.01317.86
7.4.130.0080.01016.42
7.4.120.0120.00516.59
7.4.110.0170.00016.50
7.4.100.0120.00916.39
7.4.90.0030.01416.42
7.4.80.0070.01016.33
7.4.70.0090.01116.18
7.4.60.0100.00716.38
7.4.50.0040.00416.43
7.4.40.0030.01322.77
7.4.30.0090.00616.48
7.4.00.0060.00914.70
7.3.330.0020.00313.21
7.3.320.0020.00213.16
7.3.310.0030.00616.14
7.3.300.0000.00616.10
7.3.290.0070.01416.25
7.3.280.0070.00816.25
7.3.270.0140.00417.40
7.3.260.0090.01616.18
7.3.250.0140.00716.24
7.3.240.0190.00316.39
7.3.230.0140.00416.39
7.3.210.0180.00716.48
7.3.200.0090.00919.39
7.3.190.0030.01416.39
7.3.180.0060.00916.18
7.3.170.0030.01316.51
7.3.160.0080.00816.27
7.3.120.0060.00914.55
7.2.330.0100.00716.67
7.2.320.0150.00616.64
7.2.310.0130.00516.76
7.2.300.0130.01216.40
7.2.290.0180.00016.32
7.2.00.0110.00818.13
7.1.200.0060.00315.76
7.1.100.0000.01417.66
7.1.70.0040.00817.12
7.1.60.0060.01919.29
7.1.50.0120.01216.89
7.1.00.0100.07022.32
7.0.200.0070.00316.73
7.0.140.0030.07722.21
7.0.60.0100.03719.86
7.0.50.0030.07717.92
7.0.40.0030.04320.02
7.0.30.0300.07320.09
7.0.20.0370.06720.05
7.0.10.0100.08320.24
7.0.00.0070.08320.18
5.6.280.0000.07721.13
5.6.210.0070.07020.50
5.6.200.0000.04718.15
5.6.190.0000.05020.50
5.6.180.0330.05720.52
5.6.170.0200.05020.55
5.6.160.0130.06720.66
5.6.150.0130.08018.18
5.6.140.0070.07018.23
5.6.130.0030.04018.14
5.6.120.0130.08021.02
5.6.110.0070.08320.97
5.6.100.0030.07721.09
5.6.90.0030.06720.93
5.6.80.0100.05020.41
5.6.70.3400.03320.41
5.5.350.0070.06020.35
5.5.340.0000.07318.02
5.5.330.0030.04320.40
5.5.320.0030.08720.31
5.5.310.0330.06020.34
5.5.300.0070.03717.94
5.5.290.0070.08017.98
5.5.280.0070.04320.90
5.5.270.0070.04320.97
5.5.260.0100.08020.96
5.5.250.0100.07020.44
5.5.240.0400.05720.24
5.4.450.0270.04719.38
5.4.440.0130.06319.58
5.4.430.0270.04319.61
5.4.420.0700.00019.68
5.4.410.0130.05719.05
5.4.400.0870.04718.89
5.4.390.0130.05318.79
5.4.380.0230.05018.78
5.4.370.0030.05318.62
5.4.360.0030.05018.76
5.4.350.0060.05012.02
5.4.340.0080.04212.02
5.4.320.0080.03612.50
5.4.310.0080.04312.50
5.4.300.0090.04112.50
5.4.290.0040.04512.50
5.4.280.0290.09712.37
5.4.270.0160.05212.37
5.4.260.0170.08712.37
5.4.250.0170.10912.36
5.4.240.0200.10612.37
5.4.230.0250.14412.36
5.4.220.0330.10012.36
5.4.210.0170.10912.36
5.4.200.0190.10612.36
5.4.190.0100.05012.36
5.4.180.0180.10512.36
5.4.170.0080.05512.36
5.4.160.0040.05012.36
5.4.150.0080.04612.36
5.4.140.0050.05312.05
5.4.130.0080.04512.03
5.4.120.0130.04911.99
5.4.110.0060.05811.99
5.4.100.0040.05211.99
5.4.90.0110.04811.98
5.4.80.0110.07011.98
5.4.70.0100.04711.98
5.4.60.0080.04911.98
5.4.50.0080.05211.98
5.4.40.0070.05111.97
5.4.30.0100.04911.97
5.4.20.0130.05011.97
5.4.10.0090.04511.97
5.4.00.0100.05011.45
5.3.290.0080.04412.80
5.3.280.0170.08112.71
5.3.270.0120.06112.72
5.3.260.0110.05412.72
5.3.250.0120.04812.72
5.3.240.0070.05312.72
5.3.230.0100.05112.71
5.3.220.0090.05512.68
5.3.210.0070.05512.68
5.3.200.0070.05412.68
5.3.190.0070.05212.68
5.3.180.0090.05012.68
5.3.170.0090.05012.67
5.3.160.0050.04612.67
5.3.150.0100.05612.68
5.3.140.0080.07112.66
5.3.130.0100.08412.66
5.3.120.0090.13012.66
5.3.110.0150.07212.66
5.3.100.0230.08512.12
5.3.90.0190.08812.08
5.3.80.0070.04412.08
5.3.70.0160.05712.07
5.3.60.0140.07912.06
5.3.50.0110.05112.00
5.3.40.0090.06412.00
5.3.30.0130.05211.95
5.3.20.0110.05411.74
5.3.10.0070.04211.70
5.3.00.0110.05911.69
5.2.170.0160.0699.19
5.2.160.0140.0779.19
5.2.150.0060.0519.19
5.2.140.0110.0589.19
5.2.130.0040.0449.15
5.2.120.0080.0409.15
5.2.110.0160.0489.15
5.2.100.0050.0349.14
5.2.90.0050.0349.14
5.2.80.0060.0349.14
5.2.70.0120.0509.14
5.2.60.0070.0549.09
5.2.50.0270.1099.07
5.2.40.0050.0719.04
5.2.30.0060.0609.02
5.2.20.0090.0299.00
5.2.10.0090.0338.92
5.2.00.0040.0358.79
5.1.60.0090.0258.07
5.1.50.0140.0598.07
5.1.40.0020.0358.05
5.1.30.0050.0308.39
5.1.20.0050.0328.43
5.1.10.0440.1258.15
5.1.00.0110.0318.14
5.0.50.0050.0266.62
5.0.40.0100.0556.48
5.0.30.0040.0456.29
5.0.20.0150.0396.26
5.0.10.0080.0346.24
5.0.00.0080.0406.23
4.4.90.0030.0224.78
4.4.80.0030.0184.75
4.4.70.0090.0564.76
4.4.60.0030.0194.75
4.4.50.0040.0234.77
4.4.40.0050.0274.71
4.4.30.0030.0194.76
4.4.20.0040.0174.84
4.4.10.0020.0194.85
4.4.00.0030.0294.76
4.3.110.0030.0184.67
4.3.100.0050.0164.67
4.3.90.0050.0154.63
4.3.80.0030.0274.58
4.3.70.0080.0224.63
4.3.60.0050.0204.63
4.3.50.0060.0214.63
4.3.40.0070.0384.54
4.3.30.0090.0443.28
4.3.20.0020.0213.26
4.3.10.0040.0223.23
4.3.00.0000.0236.82

preferences:
51.73 ms | 401 KiB | 5 Q