3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B { const WAT = ['lol' => A::class]; public static function test() { $lol = 'lol'; return new (self::WAT[$lol])(); } } 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.5.20.0060.01216.82
8.5.10.0110.00716.67
8.5.00.0140.00819.71
8.4.170.0130.00920.41
8.4.160.0170.00621.53
8.4.150.0010.00114.05
8.4.140.0150.00617.41
8.4.130.0120.00717.73
8.4.120.0130.00620.71
8.4.110.0070.00422.56
8.4.100.0140.00717.55
8.4.90.0120.00820.41
8.4.80.0090.01119.14
8.4.70.0080.01219.08
8.4.60.0110.01120.41
8.4.50.0130.00618.64
8.4.40.0140.00717.48
8.4.30.0060.01320.39
8.4.20.0080.01218.02
8.4.10.0080.00019.49
8.3.300.0080.01320.89
8.3.290.0100.01020.68
8.3.280.0120.00818.33
8.3.270.0110.00816.46
8.3.260.0090.00316.69
8.3.250.0120.00718.91
8.3.240.0110.00720.70
8.3.230.0150.00616.55
8.3.220.0110.00619.00
8.3.210.0110.00818.28
8.3.200.0060.00216.59
8.3.190.0080.01016.89
8.3.180.0060.00220.90
8.3.170.0120.00617.16
8.3.160.0070.01116.51
8.3.150.0150.00316.50
8.3.140.0070.00016.66
8.3.130.0100.01018.68
8.3.120.0040.00418.85
8.3.110.0120.00620.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00319.36
8.3.70.0110.01116.58
8.3.60.0120.00318.18
8.3.50.0070.01024.55
8.3.40.0120.00318.85
8.3.30.0070.00718.64
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0110.00922.28
8.2.290.0100.00817.36
8.2.280.0080.00718.65
8.2.270.0120.00816.47
8.2.260.0110.00717.17
8.2.250.0030.00616.57
8.2.240.0060.00917.17
8.2.230.0080.00022.58
8.2.220.0050.00337.54
8.2.210.0050.00326.77
8.2.200.0100.00018.88
8.2.190.0070.01117.94
8.2.180.0090.00625.92
8.2.170.0140.00318.92
8.2.160.0110.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00720.74
8.2.110.0090.00020.34
8.2.100.0040.00418.89
8.1.340.0050.00321.88
8.1.330.0130.00521.84
8.1.320.0130.00815.86
8.1.310.0040.00416.65
8.1.300.0090.00617.91
8.1.290.0040.00430.84
8.1.280.0110.01125.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00320.07
8.1.230.0070.00318.45
7.4.70.0140.00816.27
7.4.60.0140.00716.23
7.4.50.0140.00716.33
7.4.40.0110.01016.25
7.4.30.0110.00816.35
7.4.20.0090.01216.23
7.4.10.0120.00716.28
7.4.00.0140.00616.40
7.3.190.0110.01016.14
7.3.180.0100.00816.23
7.3.170.0110.00916.32
7.3.160.0090.01216.24
7.3.150.0120.01116.22
7.3.140.0080.01116.16
7.3.130.0110.00916.23
7.3.120.0140.00616.25
7.3.110.0140.00716.16
7.3.100.0100.01016.15
7.3.90.0170.00816.21
7.3.80.0120.00916.17
7.3.70.0130.00716.22
7.3.60.0100.01016.16
7.3.50.0110.00816.10
7.3.40.0100.00916.13
7.3.30.0120.00916.19
7.3.20.0120.00916.55
7.3.10.0120.00816.43
7.3.00.0140.00916.48
7.2.310.0120.01016.38
7.2.300.0100.01216.30
7.2.290.0090.01216.35
7.2.280.0110.00816.35
7.2.270.0090.01216.38
7.2.260.0110.01016.40
7.2.250.0120.00916.31
7.2.240.0120.00816.32
7.2.230.0110.01016.22
7.2.220.0130.00716.31
7.2.210.0110.01016.36
7.2.200.0120.01216.31
7.2.190.0120.00816.24
7.2.180.0060.01216.20
7.2.170.0080.01316.25
7.2.160.0150.00716.27
7.2.150.0130.01016.73
7.2.140.0180.00716.65
7.2.130.0130.01116.69
7.2.120.0110.00916.64
7.2.110.0110.01016.59
7.2.100.0140.01116.71
7.2.90.0170.00916.65
7.2.80.0130.01116.68
7.2.70.0130.00916.61
7.2.60.0140.01016.70
7.2.50.0190.00916.71
7.2.40.0150.00816.72
7.2.30.0120.00916.66
7.2.20.0140.01016.70
7.2.10.0180.01516.61
7.2.00.0110.00716.62

preferences:
99.37 ms | 403 KiB | 5 Q