3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Lol { const TEST = 'Lol'; } class Foo { const TEST = 'Foo'; } class Bar {} $foo = new Foo(); var_dump($foo::TEST); $bar = new Bar(); var_dump(get_class($bar)::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.0110.00718.30
8.3.50.0090.00916.26
8.3.40.0150.00318.97
8.3.30.0110.00418.84
8.3.20.0050.00320.18
8.3.10.0040.00421.65
8.3.00.0080.00020.64
8.2.180.0120.00618.64
8.2.170.0100.00322.96
8.2.160.0080.00622.05
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00722.30
8.2.120.0070.00026.35
8.2.110.0030.00720.47
8.2.100.0030.00917.84
8.2.90.0050.00318.99
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0040.00417.92
8.2.50.0090.00018.10
8.2.40.0080.00022.32
8.2.30.0040.00419.13
8.2.20.0030.00617.96
8.2.10.0040.00418.07
8.2.00.0040.00418.15
8.1.280.0140.00325.92
8.1.270.0000.00722.18
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00320.75
8.1.230.0000.01119.07
8.1.220.0080.00017.75
8.1.210.0040.00418.77
8.1.200.0090.00017.38
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0000.00818.63
8.1.160.0000.00718.89
8.1.150.0030.00520.68
8.1.140.0040.00419.48
8.1.130.0030.00318.81
8.1.120.0050.00317.50
8.1.110.0000.00717.49
8.1.100.0050.00217.48
8.1.90.0040.00417.44
8.1.80.0000.00717.45
8.1.70.0000.00717.47
8.1.60.0000.00817.61
8.1.50.0000.00817.46
8.1.40.0040.00417.56
8.1.30.0040.00417.61
8.1.20.0080.00017.55
8.1.10.0040.00417.66
8.1.00.0000.00817.47
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0000.00717.14
8.0.260.0040.00416.84
8.0.250.0030.00317.02
8.0.240.0030.00416.86
8.0.230.0030.00616.89
8.0.220.0040.00416.83
8.0.210.0030.00316.92
8.0.200.0060.00017.02
8.0.190.0050.00316.98
8.0.180.0030.00516.96
8.0.170.0030.00417.02
8.0.160.0080.00316.85
8.0.150.0040.00416.86
8.0.140.0000.00716.86
8.0.130.0000.00713.28
8.0.120.0040.00416.81
8.0.110.0000.00716.94
8.0.100.0040.00416.90
8.0.90.0000.00716.95
8.0.80.0030.01316.96
8.0.70.0000.00717.00
8.0.60.0020.00516.84
8.0.50.0000.00716.80
8.0.30.0110.00716.96
8.0.20.0110.00817.40
8.0.10.0000.00717.02
8.0.00.0080.00816.50
7.4.330.0000.00515.55
7.4.320.0060.00016.41
7.4.300.0030.00316.55
7.4.290.0040.00716.52
7.4.280.0040.00416.40
7.4.270.0000.00816.43
7.4.260.0040.00716.61
7.4.250.0000.00716.36
7.4.240.0000.00716.53
7.4.230.0030.00316.25
7.4.220.0130.00616.63
7.4.210.0120.00916.56
7.4.200.0030.00516.43
7.4.160.0130.00316.43
7.4.150.0090.01017.40
7.4.140.0090.00717.86
7.4.130.0100.00716.52
7.4.120.0100.00916.64
7.4.110.0150.00916.55
7.4.100.0060.01216.49
7.4.90.0110.00716.63
7.4.80.0130.01019.39
7.4.70.0140.00316.61
7.4.60.0030.01316.48
7.4.50.0090.00616.59
7.4.40.0120.00616.46
7.4.30.0060.01016.40
7.4.00.0120.00515.03
7.3.330.0000.00513.32
7.3.320.0030.00313.34
7.3.310.0030.00316.23
7.3.300.0060.00016.22
7.3.290.0070.00916.36
7.3.280.0060.01216.34
7.3.270.0130.00317.40
7.3.260.0120.00516.42
7.3.250.0130.00816.59
7.3.240.0070.01416.51
7.3.230.0060.01016.55
7.3.210.0100.01016.44
7.3.200.0130.00316.30
7.3.190.0130.00316.29
7.3.180.0060.01316.55
7.3.170.0060.00916.66
7.3.160.0070.00716.50
7.3.120.0070.01014.75
7.3.110.0030.01314.66
7.3.100.0070.01014.64
7.3.90.0140.00314.52
7.3.80.0070.00714.51
7.3.70.0070.01114.76
7.3.60.0080.00414.99
7.3.50.0080.00414.93
7.3.40.0030.01014.78
7.3.30.0030.00714.71
7.3.20.0060.00616.71
7.3.10.0030.01216.73
7.3.00.0080.00416.48
7.2.330.0100.00716.60
7.2.320.0060.01216.43
7.2.310.0060.01216.66
7.2.300.0100.00916.38
7.2.290.0030.01316.41
7.2.250.0000.01515.18
7.2.240.0130.00715.08
7.2.230.0060.00915.16
7.2.220.0030.01315.08
7.2.210.0030.01415.03
7.2.200.0130.00015.15
7.2.190.0030.01015.15
7.2.180.0090.00614.80
7.2.170.0060.00915.20
7.2.80.0030.01116.39
7.2.60.0100.00017.03
7.1.330.0040.00815.87
7.1.320.0000.00915.61
7.1.310.0090.00315.91
7.1.300.0070.00715.59
7.1.290.0030.00915.56
7.1.280.0070.00415.78
7.1.270.0050.00515.82
7.1.260.0060.00615.60
7.1.200.0030.01215.93
7.1.100.0040.00717.80
7.1.70.0040.00417.33
7.1.60.0430.00733.15
7.1.50.0430.00733.07
7.1.40.0270.02032.60
7.1.30.0330.01332.82
7.1.20.0470.00732.80
7.1.10.0230.00715.00
7.1.00.0200.01314.89
7.0.200.0170.01314.91
7.0.190.0270.00714.77
7.0.180.0270.00714.32
7.0.170.0170.01314.38
7.0.160.0230.01014.52
7.0.150.0300.01014.56
7.0.140.0230.01314.52
7.0.130.0300.00314.70
7.0.120.0230.01014.68
7.0.110.0200.01014.44
7.0.100.0230.00714.54
7.0.90.0300.01014.36
7.0.80.0200.01714.50
7.0.70.0200.01314.54
7.0.60.0270.00714.46
7.0.50.0230.00714.56
7.0.40.0300.00714.81
7.0.30.0370.01014.60
7.0.20.0900.00014.57
7.0.10.0230.00714.62
7.0.00.0230.01014.57

preferences:
57.75 ms | 400 KiB | 5 Q