3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ParentClass { public static function demo() { echo 'static::TABLE is ', static::TABLE, "\n"; echo 'static::$table is ', static::$table, "\n"; } } class ChildClass extends ParentClass { public const TABLE = 'child_const'; public static string $table = 'child_var'; } ChildClass::demo();

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.4.120.0130.00720.84
8.4.110.0080.01222.46
8.4.100.0150.00718.91
8.4.90.0040.00518.71
8.4.80.0090.00818.70
8.4.70.0090.00618.23
8.4.60.0100.01218.70
8.4.50.0110.00820.53
8.4.40.0200.00017.57
8.4.30.0120.00618.79
8.4.20.0060.01619.73
8.4.10.0060.00319.61
8.3.250.0110.01119.05
8.3.240.0130.00716.36
8.3.230.0070.00516.27
8.3.220.0060.00218.87
8.3.210.0110.01118.53
8.3.200.0040.00516.35
8.3.190.0110.00717.05
8.3.180.0080.00916.53
8.3.170.0070.01020.49
8.3.160.0150.00316.95
8.3.150.0080.00019.00
8.3.140.0000.00916.57
8.3.130.0100.00018.39
8.3.120.0040.00420.68
8.3.110.0050.00520.94
8.3.100.0060.00924.06
8.3.90.0160.00326.77
8.3.80.0040.00818.15
8.3.70.0070.01016.50
8.3.60.0110.00318.14
8.3.50.0120.00318.41
8.3.40.0160.00321.86
8.3.30.0130.00321.98
8.3.20.0110.00823.68
8.3.10.0130.00623.53
8.3.00.0130.00720.75
8.2.290.0090.01020.57
8.2.280.0140.00518.60
8.2.270.0090.00918.66
8.2.260.0030.00516.56
8.2.250.0060.00916.54
8.2.240.0090.00618.97
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0140.00326.77
8.2.200.0030.00618.11
8.2.190.0120.00318.22
8.2.180.0100.00716.32
8.2.170.0120.00618.86
8.2.160.0090.00622.96
8.2.150.0130.00620.88
8.2.140.0150.00422.08
8.2.130.0090.00922.11
8.2.120.0110.00720.81
8.2.110.0140.00321.16
8.2.100.0100.01020.65
8.2.90.0060.00920.56
8.2.80.0120.00420.91
8.2.70.0120.00320.55
8.2.60.0150.00720.47
8.2.50.0090.00620.90
8.2.40.0110.00320.55
8.2.30.0110.00420.43
8.2.20.0070.00720.57
8.2.10.0170.00320.41
8.2.00.0150.00620.42
8.1.330.0120.00722.00
8.1.320.0070.00816.19
8.1.310.0030.00520.37
8.1.300.0030.00515.73
8.1.290.0070.00430.84
8.1.280.0150.00625.92
8.1.270.0070.01124.01
8.1.260.0110.00423.82
8.1.250.0150.00623.91
8.1.240.0090.00920.38
8.1.230.0130.00620.46
8.1.220.0140.00720.70
8.1.210.0120.01220.34
8.1.200.0070.01320.54
8.1.190.0120.00620.51
8.1.180.0150.00420.16
8.1.170.0090.00920.43
8.1.160.0090.00920.13
8.1.150.0100.00720.39
8.1.140.0120.00420.27
8.1.130.0110.00320.35
8.1.120.0110.00420.21
8.1.110.0140.00020.39
8.1.100.0110.00320.35
8.1.90.0140.00020.33
8.1.80.0040.01121.56
8.1.70.0070.00720.34
8.1.60.0000.01520.46
8.1.50.0070.00720.21
8.1.40.0040.01120.46
8.1.30.0090.00620.50
8.1.20.0090.00621.75
8.1.10.0180.00320.47
8.1.00.0070.01020.27

preferences:
25.19 ms | 403 KiB | 5 Q