3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassB { private const THE_PRIVATE_CONSTANT = 9; public const THE_PUBLIC_CONSTANTS = 9; } var_dump( (new ReflectionClass(ClassB::class))->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.0130.00316.38
8.3.50.0140.00317.93
8.3.40.0040.01618.62
8.3.30.0110.00418.46
8.3.20.0050.00221.77
8.3.10.0080.00023.52
8.3.00.0060.00319.44
8.2.180.0070.00718.29
8.2.170.0030.01222.96
8.2.160.0070.00719.29
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00420.35
8.2.120.0050.00326.35
8.2.110.0090.00022.09
8.2.100.0090.00317.66
8.2.90.0000.00817.72
8.2.80.0070.00317.97
8.2.70.0000.00817.13
8.2.60.0040.00417.90
8.2.50.0030.00518.07
8.2.40.0070.00018.10
8.2.30.0000.00817.85
8.2.20.0070.00017.92
8.2.10.0040.00417.92
8.2.00.0040.00417.92
8.1.280.0070.01625.92
8.1.270.0050.00223.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00023.83
8.1.230.0030.00922.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.00
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0080.00018.90
8.1.160.0000.00818.69
8.1.150.0040.00418.74
8.1.140.0040.00419.45
8.1.130.0000.00718.74
8.1.120.0030.00517.38
8.1.110.0040.00417.37
8.1.100.0000.00817.23
8.1.90.0060.00317.38
8.1.80.0050.00317.23
8.1.70.0040.00417.38
8.1.60.0030.00617.47
8.1.50.0000.00817.29
8.1.40.0030.00617.29
8.1.30.0000.00817.35
8.1.20.0040.00417.51
8.1.10.0070.00017.34
8.1.00.0060.00317.27
8.0.300.0040.00419.90
8.0.290.0040.00416.63
8.0.280.0070.00018.37
8.0.270.0000.00717.24
8.0.260.0050.00317.10
8.0.250.0000.00816.79
8.0.240.0050.00516.74
8.0.230.0030.00316.77
8.0.220.0030.00316.66
8.0.210.0030.00316.75
8.0.200.0000.00716.83
8.0.190.0030.00716.84
8.0.180.0040.00416.78
8.0.170.0050.00316.68
8.0.160.0030.00316.79
8.0.150.0030.00316.67
8.0.140.0000.00716.59
8.0.130.0000.00713.12
8.0.120.0030.00316.74
8.0.110.0040.00416.71
8.0.100.0040.00416.82
8.0.90.0030.00516.66
8.0.80.0090.00616.72
8.0.70.0040.00416.55
8.0.60.0040.00416.67
8.0.50.0070.00016.64
8.0.30.0130.00417.01
8.0.20.0100.01117.40
8.0.10.0000.00816.95
8.0.00.0100.00716.48
7.4.330.0000.00515.55
7.4.320.0030.00316.23
7.4.300.0030.00316.39
7.4.290.0000.00616.45
7.4.280.0030.00616.40
7.4.270.0030.00316.42
7.4.260.0000.00716.34
7.4.250.0040.00416.22
7.4.240.0000.00716.43
7.4.230.0030.00316.26
7.4.220.0070.01016.41
7.4.210.0040.01116.47
7.4.200.0070.00016.29
7.4.160.0100.00616.39
7.4.150.0090.00917.40
7.4.140.0160.00517.86
7.4.130.0090.00916.29
7.4.120.0100.00916.38
7.4.110.0070.01116.45
7.4.100.0120.01216.38
7.4.90.0170.00816.29
7.4.80.0100.00719.39
7.4.70.0070.01316.37
7.4.60.0070.01016.35
7.4.50.0040.00816.36
7.4.40.0060.01216.29
7.4.30.0110.01316.40
7.4.00.0100.00714.88
7.3.330.0000.00513.03
7.3.320.0000.00513.17
7.3.310.0040.00416.20
7.3.300.0040.00416.20
7.3.290.0050.01016.18
7.3.280.0070.00816.12
7.3.270.0130.00617.40
7.3.260.0120.00516.28
7.3.250.0060.01516.32
7.3.240.0080.00816.35
7.3.230.0070.01116.11
7.3.210.0030.01316.39
7.3.200.0100.00616.23
7.3.190.0120.00816.21
7.3.180.0060.00916.19
7.3.170.0100.00716.30
7.3.160.0100.01016.16
7.3.120.0070.01214.70
7.3.110.0100.00614.52
7.3.100.0060.01014.88
7.3.90.0030.00714.63
7.3.80.0020.01214.77
7.3.70.0060.01014.47
7.3.60.0060.00814.60
7.3.50.0070.00814.64
7.3.40.0020.01214.62
7.3.30.0040.00914.58
7.3.20.0040.00616.50
7.3.10.0070.00916.47
7.3.00.0040.00916.33
7.2.330.0120.00616.28
7.2.320.0030.01816.59
7.2.310.0100.01016.38
7.2.300.0130.00316.37
7.2.290.0110.00816.64
7.2.250.0070.01114.94
7.2.240.0100.00914.79
7.2.230.0090.00714.82
7.2.220.0050.00614.63
7.2.210.0040.00614.85
7.2.200.0040.00814.97
7.2.190.0050.00914.89
7.2.180.0030.01014.67
7.2.170.0050.00814.71
7.2.80.0000.00916.47
7.2.60.0090.00616.72
7.2.00.0000.01119.03
7.1.330.0070.00715.41
7.1.320.0050.00415.58
7.1.310.0050.01015.64
7.1.300.0080.00615.46
7.1.290.0030.00715.45
7.1.280.0100.00215.53
7.1.270.0070.00815.67
7.1.260.0040.00415.53
7.1.200.0060.00615.52
7.1.70.0000.00717.10
7.1.60.0340.00714.98
7.1.50.0200.00734.45
7.1.40.0170.01034.11
7.1.30.0170.01034.00
7.1.20.0130.01334.39
7.1.10.0030.01016.39
7.1.00.0070.00716.61
7.0.200.0120.00916.61
7.0.190.0030.01016.35
7.0.180.0000.01015.90
7.0.170.0000.01015.90
7.0.160.0000.01016.13
7.0.150.0070.00715.97
7.0.140.0100.00316.19
7.0.130.0000.01316.20
7.0.120.0030.01016.22
7.0.110.0030.01016.01
7.0.100.0030.01015.95
7.0.90.0070.00316.17
7.0.80.0070.00715.99
7.0.70.0070.00716.04
7.0.60.0000.01715.91
7.0.50.0000.01016.11
7.0.40.0000.01316.24
7.0.30.0030.01016.20
7.0.20.0070.00716.16
7.0.10.0030.01016.17
7.0.00.0000.01316.18

preferences:
54.7 ms | 404 KiB | 6 Q