3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class TT { abstract public static function xd(); } class Test { protected const ASD = 23; private static int $field = 5; public string $foo = 'default value' { get { var_dump(debug_backtrace()); return $this->foo; } set(string $value) { var_dump(debug_backtrace()); } } public static function &getSomeProperty() { return self::$field; } } $a =& Test::getSomeProperty(); if ($a === 5) { $a = 2; } var_dump(Test::getSomeProperty()); // 2 $test = new Test(); $test->foo;

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.0120.00716.79
8.5.50.0100.00618.45
8.5.30.0120.00816.90
8.5.20.0120.00916.90
8.5.10.0150.00516.90
8.5.00.0110.00716.90
8.4.210.0130.00919.84
8.4.180.0190.00819.74
8.4.170.0170.00819.82
8.4.160.0190.00819.64
8.4.150.0160.01019.83
8.4.140.0140.01317.77
8.4.130.0150.00917.71
8.4.120.0120.01117.73
8.4.110.0170.00717.84
8.4.100.0180.00517.85
8.4.90.0170.00717.89
8.4.80.0190.00517.93
8.4.70.0180.00817.70
8.4.60.0200.00717.68
8.4.50.0150.00917.83
8.4.40.0180.00617.83
8.4.30.0180.00717.71
8.4.20.0170.00817.82
8.4.10.0150.00917.77
8.3.300.0190.00718.31
8.3.290.0170.00918.12
8.3.280.0170.00718.46
8.3.270.0140.00916.90
8.3.260.0140.01016.90
8.3.250.0180.00816.90
8.3.240.0160.00816.90
8.3.230.0200.00616.90
8.3.220.0170.00816.90
8.3.210.0180.00816.90
8.3.200.0210.00616.90
8.3.190.0140.00916.90
8.3.180.0150.01116.90
8.3.170.0160.01016.90
8.3.160.0140.00916.90
8.3.150.0120.00816.90
8.3.140.0120.00616.90
8.3.130.0130.00416.90
8.3.120.0180.00616.90
8.3.110.0150.00916.90
8.3.100.0170.00816.90
8.3.90.0180.00616.90
8.3.80.0190.00616.90
8.3.70.0150.00916.90
8.3.60.0180.00516.90
8.3.50.0150.01016.90
8.3.40.0220.00917.93
8.3.30.0130.01117.81
8.3.20.0150.00817.84
8.3.10.0170.00818.02
8.3.00.0200.00517.87

preferences:
34.66 ms | 723 KiB | 5 Q