3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Symfony\Component\HttpKernel\Exception\HttpException; class OrderNotFound extends HttpException { public static function create(string $id): self { return new self( statusCode: Response::HTTP_NOT_FOUND, message: sprintf('The order "%s" could not be found.', $id), headers: ['x-header' => '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.4.20.0070.01318.03
8.4.10.0190.00023.60
8.3.140.0030.00618.57
8.3.130.0070.00318.61
8.3.120.0040.00420.90
8.3.110.0040.00416.55
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0030.00618.42
8.3.70.0210.00016.50
8.3.60.0120.00618.57
8.3.50.0120.00318.48
8.3.40.0060.00919.82
8.3.30.0120.00318.84
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0060.00326.16
8.2.260.0050.00316.77
8.2.250.0040.00416.84
8.2.240.0060.00917.16
8.2.230.0090.00020.94
8.2.220.0060.00337.54
8.2.210.0000.00726.77
8.2.200.0090.00018.16
8.2.190.0040.01116.75
8.2.180.0100.00716.63
8.2.170.0120.00318.96
8.2.160.0030.01022.96
8.2.150.0060.00325.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00321.10
8.2.110.0100.00022.06
8.2.100.0080.00418.03
8.2.90.0060.00318.03
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0000.00817.50
8.2.50.0090.00919.49
8.2.40.0120.00419.49
8.2.30.0150.00319.49
8.2.20.0120.00519.49
8.2.10.0170.00019.49
8.2.00.0050.01119.49
8.1.310.0040.00417.93
8.1.300.0070.00317.75
8.1.290.0100.00030.84
8.1.280.0070.01125.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.48
8.1.230.0060.00620.85
8.1.220.0040.00417.74
8.1.210.0040.00418.94
8.1.200.0040.00417.22
8.1.190.0000.00817.23
8.1.180.0160.00019.49
8.1.170.0080.00819.49
8.1.160.0120.00419.49
8.1.150.0090.00919.49
8.1.140.0100.01019.49
8.1.130.0150.00319.49
8.1.120.0090.00919.49
8.1.110.0150.00019.49
8.1.100.0130.00319.49
8.1.90.0140.00219.49
8.1.80.0120.00619.49
8.1.70.0060.01119.49
8.1.60.0090.00919.49
8.1.50.0110.00719.49
8.1.40.0230.00319.49
8.1.30.0090.00919.49
8.1.20.0100.00719.49
8.1.10.0130.00419.49
8.1.00.0120.00619.49
8.0.300.0040.00419.77
8.0.290.0030.00616.63
8.0.280.0110.00319.49
8.0.270.0080.00819.49
8.0.260.0140.00319.49
8.0.250.0160.00019.49
8.0.240.0110.00519.49
8.0.230.0160.00019.49
8.0.220.0110.00519.49
8.0.210.0050.01119.49
8.0.200.0080.00819.49
8.0.190.0120.00419.49
8.0.180.0110.00619.49
8.0.170.0130.00319.49
8.0.160.0080.00819.49
8.0.150.0080.00819.49
8.0.140.0110.00419.49
8.0.130.0130.00319.49
8.0.120.0090.00619.49
8.0.110.0080.00819.49
8.0.100.0080.00819.49
8.0.90.0100.00519.49
8.0.80.0080.00819.49
8.0.70.0150.00019.49
8.0.60.0090.00619.49
8.0.50.0140.00219.49
8.0.30.0060.00919.49
8.0.20.0050.01019.49
8.0.10.0150.00319.49

preferences:
33.58 ms | 403 KiB | 5 Q