3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class TT { abstract public static function xd(); } class Test { public const OK = 0; public const IS_PUBLIC = 1 << 0; public const IS_ABSTRACT = 1 << 1; protected const ASD = 23; private static int $field = 5; public static function &getSomeProperty() { return self::$field; } } $a =& Test::getSomeProperty(); if ($a === 5) { $a = 2; } var_dump(Test::getSomeProperty()); // 2 $test = new Test(); var_dump(Test::OK); var_dump(Test::IS_PUBLIC);

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.60.0100.00916.76
8.5.50.0130.00416.58
8.5.30.0090.01016.90
8.5.20.0100.00716.90
8.5.10.0100.00716.90
8.5.00.0100.00916.90
8.4.180.0100.01119.70
8.4.170.0160.00619.79
8.4.160.0120.00919.74
8.4.150.0120.01019.79
8.4.140.0120.00617.76
8.4.130.0100.01017.71
8.4.120.0100.00917.85
8.4.110.0080.01217.63
8.4.100.0120.00917.89
8.4.90.0110.01117.85
8.4.80.0130.00617.88
8.4.70.0070.00817.93
8.4.60.0130.00917.90
8.4.50.0130.00917.94
8.4.40.0090.00917.83
8.4.30.0140.01317.78
8.4.20.0080.00717.84
8.4.10.0140.00717.81
8.3.300.0110.00418.20
8.3.290.0060.00418.24
8.3.280.0060.00318.32
8.3.270.0040.00416.90
8.3.260.0050.00316.90
8.3.250.0030.00516.90
8.3.240.0050.00316.90
8.3.230.0080.00016.90
8.3.220.0090.00516.90
8.3.210.0040.00416.90
8.3.200.0060.00216.90
8.3.190.0050.00316.90
8.3.180.0080.00016.90
8.3.170.0040.00316.90
8.3.160.0060.00216.90
8.3.150.0040.00316.90
8.3.140.0050.00216.90
8.3.130.0070.00116.90
8.3.120.0040.00316.90
8.3.110.0070.00116.90
8.3.100.0050.00316.90
8.3.90.0030.00516.90
8.3.80.0070.00116.90
8.3.70.0050.00416.90
8.3.60.0030.00516.90
8.3.50.0130.00916.90
8.3.40.0110.01217.93
8.3.30.0090.00517.75
8.3.20.0150.01017.90
8.3.10.0080.00818.02
8.3.00.0100.01018.09

preferences:
46.43 ms | 707 KiB | 5 Q