3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function() { echo "first shutdown\n"; }); final class Another { public function __destruct() { //exit(); //throw new \RuntimeException('test'); } } final class Logger { public function __construct() { register_shutdown_function(function () { echo "shutdown\n"; }); } public function __destruct() { echo "destruct\n"; } } new Another(); new Logger(); register_shutdown_function(function() { echo "second shutdown\n"; }); 42/0;

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.20.0090.00917.20
8.5.10.0340.00616.54
8.5.00.0220.00816.41
8.4.170.0330.00720.28
8.4.160.0290.01320.34
8.4.150.0320.01119.79
8.4.140.0360.00817.72
8.4.130.0320.01217.94
8.4.120.0400.01117.82
8.4.110.0410.00917.73
8.4.100.0390.01017.89
8.4.90.0300.01617.86
8.4.80.0350.01118.02
8.4.70.0440.00617.90
8.4.60.0410.00818.02
8.4.50.0360.01017.96
8.4.40.0380.01117.74
8.4.30.0370.01117.71
8.4.20.0400.00817.80
8.4.10.0440.00617.78
8.3.300.0290.01218.46
8.3.290.0330.00818.46
8.3.280.0310.00918.40
8.3.270.0360.01016.68
8.3.260.0390.00716.58
8.3.250.0350.01116.63
8.3.240.0340.01016.80
8.3.230.0380.00616.76
8.3.220.0360.00816.74
8.3.210.0390.00916.72
8.3.200.0340.01016.73
8.3.190.0390.00916.78
8.3.180.0400.00616.77
8.3.170.0380.01016.50
8.3.160.0400.01016.69
8.3.150.0360.01116.53
8.3.140.0380.00916.77
8.3.130.0330.00916.56
8.3.120.0340.00916.60
8.3.110.0340.00716.66
8.3.100.0390.00916.73
8.3.90.0410.00816.48
8.3.80.0400.00816.66
8.3.70.0440.00516.58
8.3.60.0410.00616.72
8.3.50.0380.01016.63
8.3.40.0350.01017.78
8.3.30.0280.00817.82
8.3.20.0290.00717.89
8.3.10.0300.01017.88
8.3.00.0400.00417.85

preferences:
29.91 ms | 403 KiB | 5 Q