3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dump(...$values): void { foreach ($values as $value) { echo json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES), PHP_EOL; } } class Foo { public readonly Exception $e; public function __construct() { $this->e = new Exception; dump(debug_backtrace()); } } class Bar extends Foo { public function __construct() { parent::__construct(); } } function Bar(): Bar { return new Bar(); } $bar = new Bar(); dump($bar->e->getTrace());

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.130.0060.00417.92
8.4.120.0130.00722.05
8.4.110.0110.00918.88
8.4.100.0090.01122.46
8.4.90.0120.00918.74
8.4.80.0110.00719.52
8.4.70.0080.00117.94
8.4.60.0120.00918.70
8.4.50.0150.00717.70
8.4.40.0100.00723.71
8.4.30.0040.00418.68
8.4.20.0060.00320.74
8.4.10.0130.00723.71
8.3.260.0120.00716.70
8.3.250.0110.00818.88
8.3.240.0100.00716.36
8.3.230.0110.00816.62
8.3.220.0120.00717.10
8.3.210.0130.00916.79
8.3.200.0050.00416.54
8.3.190.0070.00117.12
8.3.180.0060.00316.57
8.3.170.0070.00019.02
8.3.160.0110.00718.57
8.3.150.0140.00417.02
8.3.140.0090.00916.28
8.3.130.0060.00318.36
8.3.120.0030.00619.00
8.3.110.0060.00918.38
8.3.100.0040.01118.42
8.3.50.0030.00618.68
8.2.290.0070.00220.50
8.2.280.0050.00920.44
8.2.270.0110.00716.81
8.2.260.0060.00920.71
8.2.250.0110.00416.77
8.2.240.0070.01117.24
8.2.230.0070.01118.05
8.2.220.0080.00016.39
8.2.30.0090.00518.21
8.2.20.0080.00517.72
8.2.10.0090.00517.63
8.2.00.0060.00717.60
8.1.330.0090.00921.83
8.1.320.0030.00517.91
8.1.310.0080.00016.59
8.1.300.0100.01018.36
8.1.160.0090.00517.40
8.1.150.0090.00617.95
8.1.140.0110.00517.37
8.1.130.0070.00617.44
8.1.120.0100.00417.53
8.1.110.0100.00417.43
8.1.100.0110.00317.50
8.1.90.0110.00517.51
8.1.80.0140.00217.43
8.1.70.0130.00317.42
8.1.60.0140.00317.61
8.1.50.0120.00617.53
8.1.40.0110.00617.58
8.1.30.0140.00317.60
8.1.20.0120.00417.64
8.1.10.0120.00417.49
8.1.00.0110.00517.48
8.0.280.0080.00416.73
8.0.270.0080.00416.75
8.0.260.0060.00516.72
8.0.250.0030.00616.78
8.0.240.0030.00517.43
8.0.230.0070.00217.98
8.0.220.0070.00217.93
8.0.210.0090.00216.71
8.0.200.0090.00416.75
8.0.190.0110.00216.84
8.0.180.0080.00616.81
8.0.170.0090.00516.82
8.0.160.0080.00516.83
8.0.150.0090.00516.70
8.0.140.0150.00116.80
8.0.130.0070.00816.68
8.0.120.0110.00516.77
8.0.110.0050.01016.79
8.0.100.0080.00716.74
8.0.90.0090.00516.75
8.0.80.0080.00616.75
8.0.70.0110.00416.74
8.0.60.0110.00416.72
8.0.50.0130.00216.69
8.0.30.0090.00716.77
8.0.20.0060.00616.86
8.0.10.0060.00616.79

preferences:
29.17 ms | 403 KiB | 5 Q