3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { protected const TEST = 'test'; public static function echoConst(): void { echo static::TEST; } } class Bar extends Foo { protected const TEST = 'shuyalinet'; } Bar::echoConst();

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.90.0090.01016.74
8.5.80.0070.00016.54
8.5.70.0090.00816.83
8.5.60.0110.00716.84
8.5.50.0100.00818.45
8.5.30.0110.00619.38
8.5.20.0130.00517.73
8.5.10.0090.00716.33
8.5.00.0100.01119.93
8.4.240.0130.00819.57
8.4.230.0060.00319.55
8.4.220.0130.00819.42
8.4.210.0140.00719.60
8.4.180.0110.01125.59
8.4.170.0120.01020.54
8.4.160.0120.01023.06
8.4.150.0090.00416.90
8.4.140.0150.00617.69
8.4.130.0120.00820.19
8.4.120.0060.01520.59
8.4.110.0120.00822.26
8.4.100.0130.00718.88
8.4.90.0110.00918.68
8.4.80.0070.00118.94
8.4.70.0060.01417.88
8.4.60.0130.00818.61
8.4.50.0100.00920.60
8.4.40.0100.01017.77
8.4.30.0150.00418.84
8.4.20.0130.00317.77
8.4.10.0080.00019.29
8.3.330.0070.00418.28
8.3.320.0110.01118.12
8.3.310.0080.00818.30
8.3.300.0100.01220.72
8.3.290.0100.00920.81
8.3.280.0120.01020.02
8.3.270.0080.01116.62
8.3.260.0120.00716.51
8.3.250.0110.00918.91
8.3.240.0090.00917.01
8.3.230.0130.00616.48
8.3.220.0100.00818.79
8.3.210.0060.00216.52
8.3.200.0030.00616.48
8.3.190.0120.00617.18
8.3.180.0090.00916.27
8.3.170.0030.01420.69
8.3.160.0090.00917.00
8.3.150.0040.01517.00
8.3.140.0040.00416.79
8.3.130.0040.00718.40
8.3.120.0000.00820.50
8.3.110.0100.00720.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0060.00317.97
8.3.70.0080.00818.31
8.3.60.0150.00418.30
8.3.50.0110.01116.38
8.3.40.0060.01220.09
8.3.30.0100.00321.70
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0100.01028.09
8.2.320.0120.00718.07
8.2.310.0100.00918.14
8.2.300.0110.01218.04
8.2.290.0130.00720.38
8.2.280.0100.00818.14
8.2.270.0130.00619.02
8.2.260.0140.00316.36
8.2.250.0040.00418.88
8.2.240.0030.01718.84
8.2.230.0000.00822.58
8.2.220.0000.00837.54
8.2.210.0040.01526.77
8.2.200.0030.00616.25
8.2.190.0090.00916.63
8.2.180.0180.00416.32
8.2.170.0090.00618.87
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0070.01328.09
8.2.120.0000.01828.09
8.2.110.0110.00728.09
8.2.100.0120.00628.09
8.2.90.0070.01128.09
8.2.80.0160.00328.09
8.2.70.0150.00028.09
8.2.60.0070.00728.09
8.2.50.0070.01328.09
8.2.40.0180.00328.09
8.2.30.0090.00328.09
8.2.20.0040.00428.09
8.2.10.0110.00428.09
8.2.00.0060.00328.09
8.1.340.0100.01017.63
8.1.330.0100.00922.10
8.1.320.0130.00716.06
8.1.310.0060.00316.53
8.1.300.0030.00617.97
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0090.00023.76
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0100.00628.09
8.1.230.0060.00328.09
8.1.220.0120.00628.09
8.1.210.0100.00028.09
8.1.200.0090.00628.09
8.1.190.0060.00928.09
8.1.180.0060.00328.09
8.1.170.0050.00328.09
8.1.160.0030.00628.09
8.1.150.0000.01028.09
8.1.140.0080.00028.09
8.1.130.0040.00428.09
8.1.120.0080.00028.09
8.1.110.0060.00328.09
8.1.100.0040.00428.09
8.1.90.0080.00028.09
8.1.80.0040.00428.09
8.1.70.0040.00428.09
8.1.60.0040.00428.09
8.1.50.0040.00428.09
8.1.40.0040.00428.09
8.1.30.0080.00028.09
8.1.20.0030.00528.09
8.1.10.0090.00028.09
8.1.00.0000.00928.09

preferences:
73.51 ms | 1038 KiB | 5 Q