3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait NormalizedExceptionTrait { public function normalizedConstructor( string $normalizedMessage, array $messageContext = [], int $code = 0, ?Throwable $previous = null ) { } } class NormalizedException extends Exception { use NormalizedExceptionTrait { NormalizedExceptionTrait::normalizedConstructor as __construct; } } class FlowException extends NormalizedException { protected $code; public function __construct( $message, $code = 'default', $context = [] ) { parent::__construct( $message, $context ); $this->code = $code; } }

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.00.0100.01119.92
8.4.150.0030.00014.05
8.4.140.0150.01017.59
8.4.130.0070.01317.73
8.4.120.0150.00520.47
8.4.110.0140.00619.16
8.4.100.0100.00417.58
8.4.90.0130.00717.45
8.4.80.0030.00517.62
8.4.70.0100.01117.70
8.4.60.0120.00917.63
8.4.50.0080.00820.26
8.4.40.0080.01217.43
8.4.30.0400.00917.20
8.4.20.0390.00317.42
8.4.10.0240.00617.45
8.3.280.0030.00014.05
8.3.270.0110.00816.75
8.3.260.0110.00716.63
8.3.250.0120.00718.97
8.3.240.0120.00816.50
8.3.230.0100.00816.61
8.3.220.0140.00517.01
8.3.210.0070.00816.56
8.3.200.0090.01116.64
8.3.190.0090.01017.04
8.3.180.0060.00218.96
8.3.170.0000.00816.96
8.3.160.0270.00216.32
8.3.150.0150.00216.39
8.3.140.0190.00016.32
8.3.130.0140.00516.36
8.3.120.0260.00316.14
8.3.110.0220.00616.22
8.3.100.0310.00516.53
8.3.90.0260.00516.41
8.3.80.0170.00416.33
8.3.70.0240.00416.22
8.3.60.0230.00916.35
8.3.50.0310.00016.45
8.3.40.0250.00517.04
8.3.30.0160.00916.77
8.3.20.0200.00516.88
8.3.10.0160.00917.04
8.3.00.0110.00517.29
8.2.290.0040.00420.36
8.2.280.0070.00418.30
8.2.270.0290.00416.28
8.2.260.0120.01416.23
8.2.250.0250.00416.10
8.2.240.0180.00816.22
8.2.230.0160.00915.95
8.2.220.0220.00816.01
8.2.210.0200.00716.11
8.2.200.0210.00616.25
8.2.190.0180.00616.28
8.2.180.0170.00916.10
8.2.170.0240.00517.38
8.2.160.0210.00817.37
8.2.150.0210.00717.32
8.2.140.0190.01117.27
8.2.130.0250.00417.34
8.2.120.0260.01017.21
8.2.110.0260.00617.23
8.2.100.0210.00717.49
8.2.90.0250.00517.46
8.2.80.0240.00317.18
8.2.70.0230.00517.28
8.2.60.0160.01117.31
8.2.50.0220.00517.29
8.2.40.0220.01117.21
8.2.30.0170.00917.21
8.2.20.0150.01117.40
8.2.10.0220.00916.97
8.2.00.0260.00917.05
8.1.330.0160.00316.81
8.1.320.0130.00715.84
8.1.310.0280.00916.07
8.1.300.0340.00615.86
8.1.290.0300.00715.64
8.1.280.0240.01415.94
8.1.270.0330.01317.23
8.1.260.0290.00317.17
8.1.250.0250.01217.27
8.1.240.0340.00017.24
8.1.230.0270.00716.97
8.1.220.0240.01017.26
8.1.210.0270.01017.27
8.1.200.0290.00617.02
8.1.190.0290.01217.14
8.1.180.0230.00816.88
8.1.170.0290.00617.16
8.1.160.0280.00717.04
8.1.150.0250.01417.12
8.1.140.0310.01216.99
8.1.130.0300.00317.35
8.1.120.0260.00917.34
8.1.110.0310.00317.08
8.1.100.0200.01517.18
8.1.90.0310.00317.29
8.1.80.0190.01516.99
8.1.70.0200.01017.24
8.1.60.0180.00417.52
8.1.50.0270.01017.29
8.1.40.0300.00417.35
8.1.30.0190.01517.47
8.1.20.0270.00717.43
8.1.10.0190.01517.04
8.1.00.0290.00717.15
8.0.300.0360.00716.30
8.0.290.0230.01116.53
8.0.280.0160.01216.49
8.0.270.0150.00516.45
8.0.260.0160.00516.56
8.0.250.0290.00416.54
8.0.240.0270.00716.59
8.0.230.0260.00716.66
8.0.220.0220.01116.35
8.0.210.0160.01416.47
8.0.200.0270.00816.68
8.0.190.0220.00816.61
8.0.180.0240.01516.54
8.0.170.0300.00616.47
8.0.160.0290.00316.49
8.0.150.0350.00316.51
8.0.140.0340.00416.16
8.0.130.0190.01616.47
8.0.120.0180.01516.50
8.0.110.0220.01216.52
8.0.100.0260.00716.50
8.0.90.0270.01016.46
8.0.80.0280.00716.28
8.0.70.0260.01016.31
8.0.60.0170.01716.29
8.0.50.0260.01016.51
8.0.30.0200.01316.40
8.0.20.0330.00016.49
8.0.10.0280.00616.71
8.0.00.0260.01316.65
7.4.330.0260.01016.23
7.4.320.0350.00416.15
7.4.300.0240.00716.15
7.4.290.0180.01416.23
7.4.280.0190.01316.11
7.4.270.0270.00316.09
7.4.260.0290.00316.22
7.4.250.0250.00716.37
7.4.240.0280.00416.32
7.4.230.0290.00316.32
7.4.220.0160.00916.25
7.4.210.0260.00616.36
7.4.200.0220.00916.05
7.4.190.0240.00716.18
7.4.180.0240.00816.25
7.4.160.0220.01016.15
7.4.150.0210.01116.04
7.4.140.0450.00316.23
7.4.130.0290.00716.13
7.4.120.0310.00015.87
7.4.110.0320.00016.01
7.4.100.0190.01316.18
7.4.90.0220.00916.24
7.4.80.0240.00716.03
7.4.70.0240.00715.80
7.4.60.0310.00015.83
7.4.50.0240.00715.93
7.4.40.0190.01315.86
7.4.30.0240.00716.13
7.4.20.0200.00816.28
7.4.10.0190.00916.00
7.4.00.0170.00816.04
7.3.330.0260.00416.02
7.3.320.0270.00416.15
7.3.310.0340.00415.89
7.3.300.0280.00415.85
7.3.290.0210.01116.18
7.3.280.0220.00815.96
7.3.270.0280.00316.24
7.3.260.0230.00715.84
7.3.250.0210.01015.89
7.3.240.0370.00016.04
7.3.230.0260.00715.99
7.3.220.0300.00415.78
7.3.210.0210.01115.96
7.3.200.0280.00515.90
7.3.190.0240.00816.24
7.3.180.0260.00316.00
7.3.170.0170.01016.01
7.3.160.0260.00716.04
7.3.150.0240.01015.81
7.3.140.0330.01116.02
7.3.130.0210.01216.14
7.3.120.0190.01216.03
7.3.110.0280.00415.87
7.3.100.0270.00415.93
7.3.90.0260.00516.31
7.3.80.0210.01216.07
7.3.70.0290.00316.26
7.3.60.0320.00015.73
7.3.50.0300.00415.98
7.3.40.0280.00615.73
7.3.30.0300.00316.02
7.3.20.0410.00616.08
7.3.10.0260.00616.05
7.3.00.0270.00616.06
7.2.340.0250.00816.03
7.2.330.0280.00815.90
7.2.320.0320.00315.95
7.2.310.0280.00415.87
7.2.300.0240.00716.10
7.2.290.0230.00916.07
7.2.280.0170.01515.92
7.2.270.0270.00616.17
7.2.260.0330.00315.87
7.2.250.0310.00615.93
7.2.240.0250.00815.64
7.2.230.0220.00616.12
7.2.220.0200.00815.86
7.2.210.0300.00715.68
7.2.200.0180.00415.99
7.2.190.0160.00015.91
7.2.180.0080.00816.04
7.2.170.0130.00315.95
7.2.160.0110.00515.97
7.2.150.0170.00615.75
7.2.140.0140.00415.71
7.2.130.0160.00316.39
7.2.120.0170.00016.20
7.2.110.0130.00616.11
7.2.100.0140.00316.40
7.2.90.0090.00916.26
7.2.80.0180.00016.10
7.2.70.0180.00316.24
7.2.60.0120.00616.23
7.2.50.0160.00016.19
7.2.40.0170.00016.14
7.2.30.0130.00416.36
7.2.20.0160.00016.08
7.2.10.0170.00016.48
7.2.00.0100.00716.39
7.1.330.0130.00315.64
7.1.320.0120.00515.64
7.1.310.0150.00015.64
7.1.300.0120.00415.64
7.1.290.0150.00015.64
7.1.280.0120.00215.64
7.1.270.0150.00215.64
7.1.260.0110.00415.64
7.1.250.0150.00015.64
7.1.240.0170.00015.64
7.1.230.0230.00015.64
7.1.220.0150.00915.64
7.1.210.0110.00515.64
7.1.200.0180.00015.64
7.1.190.0160.00715.64
7.1.180.0090.00615.64
7.1.170.0140.00015.64
7.1.160.0140.00015.64
7.1.150.0240.00615.64
7.1.140.0250.01015.64
7.1.130.0280.01315.64
7.1.120.0160.01615.64
7.1.110.0190.00915.64
7.1.100.0740.00715.64
7.1.90.0210.00015.64
7.1.80.0250.00415.64
7.1.70.0260.00315.64
7.1.60.0170.00315.64
7.1.50.0140.00915.64
7.1.40.0190.00915.64
7.1.30.0220.00815.64
7.1.20.0220.00615.64
7.1.10.0270.00015.64
7.1.00.0290.00915.64
7.0.330.0180.00715.64
7.0.320.0210.00815.64
7.0.310.0230.00715.64
7.0.300.0240.00315.64
7.0.290.0220.00815.64
7.0.280.0280.00315.64
7.0.270.0290.00015.64
7.0.260.0200.00715.64
7.0.250.0200.01015.64
7.0.240.0210.00715.64
7.0.230.0280.00015.64
7.0.220.0590.00915.64
7.0.210.0290.00015.64
7.0.200.0300.00015.64
7.0.190.0380.00915.64
7.0.180.0260.00615.64
7.0.170.0240.00315.64
7.0.160.0200.00715.64
7.0.150.0110.00415.64
7.0.140.0100.00315.64
7.0.130.0250.00615.64
7.0.120.0120.02415.64
7.0.110.0290.00015.64
7.0.100.0210.01015.64
7.0.90.0280.00315.64
7.0.80.0210.00915.64
7.0.70.0300.00015.64
7.0.60.0170.01315.64
7.0.50.0260.00415.64
7.0.40.0190.00815.64
7.0.30.0240.00815.64
7.0.20.0210.00915.64
7.0.10.0190.01215.64
7.0.00.0640.01015.64
5.6.400.0310.00315.64
5.6.390.0100.02015.64
5.6.380.0290.00015.64
5.6.370.0240.00515.64
5.6.360.0210.00015.64
5.6.350.0230.00715.64
5.6.340.0260.00015.64
5.6.330.0240.00615.64
5.6.320.0270.00415.64
5.6.310.0340.00015.64
5.6.300.0170.01215.64
5.6.290.0240.00615.64
5.6.280.0220.00615.64
5.6.270.0230.00615.64
5.6.260.0220.00615.64
5.6.250.0250.00415.64
5.6.240.0250.00415.64
5.6.230.0200.01015.64
5.6.220.0260.00315.64
5.6.210.0290.00015.64
5.6.200.0280.00415.64
5.6.190.0270.00815.64
5.6.180.0250.00815.64
5.6.170.0260.00415.64
5.6.160.0270.00315.64
5.6.150.0120.02015.64
5.6.140.0220.00615.64
5.6.130.0250.00315.64
5.6.120.0260.00315.64
5.6.110.0220.00615.64
5.6.100.0270.00315.64
5.6.90.0100.01415.64
5.6.80.0190.01015.64
5.6.70.0220.00715.64
5.6.60.0210.00715.64
5.6.50.0210.00715.64
5.6.40.0170.01115.64
5.6.30.0170.01115.64
5.6.20.0240.00415.64
5.6.10.0260.00315.64
5.6.00.0220.00615.64
5.5.380.0270.00515.64
5.5.370.0240.00715.64
5.5.360.0220.00615.64
5.5.350.0220.00315.64
5.5.340.0260.00015.64
5.5.330.0190.00815.64
5.5.320.0170.01015.64
5.5.310.0160.01215.64
5.5.300.0250.00315.64
5.5.290.0250.00315.64
5.5.280.0250.00315.64
5.5.270.0190.00515.64
5.5.260.0200.00815.64
5.5.250.0180.01115.64
5.5.240.0210.00415.64
5.5.230.0170.00715.64
5.5.220.0230.00415.64
5.5.210.0270.00015.64
5.5.200.0230.00415.64
5.5.190.0240.00315.64
5.5.180.0200.01015.64
5.5.170.0190.00915.64
5.5.160.0240.00315.64
5.5.150.0240.00415.64
5.5.140.0310.00715.64
5.5.130.0200.00815.64
5.5.120.0210.00615.64
5.5.110.0240.00315.64
5.5.100.0180.00915.64
5.5.90.0260.00015.64
5.5.80.0220.00315.64
5.5.70.0190.00315.64
5.5.60.0060.00615.64
5.5.50.0180.00915.64
5.5.40.0160.00815.64
5.5.30.0170.01115.64
5.5.20.0200.00815.64
5.5.10.0250.00315.64
5.5.00.0120.00815.64
5.4.450.0120.00315.64
5.4.440.0100.00015.64
5.4.430.0140.00715.64
5.4.420.0160.00515.64
5.4.410.0150.00715.64
5.4.400.0190.00315.64
5.4.390.0220.00015.64
5.4.380.0220.00315.64
5.4.370.0170.00715.64
5.4.360.0240.00015.64
5.4.350.0180.00315.64
5.4.340.0150.00615.64
5.4.330.0120.00615.64
5.4.320.0190.00015.64
5.4.310.0180.00315.64
5.4.300.0180.00315.64
5.4.290.0170.00015.64
5.4.280.0170.00015.64
5.4.270.0180.00015.64
5.4.260.0150.00515.64
5.4.250.0130.00315.64
5.4.240.0100.00315.64
5.4.230.0080.01215.64
5.4.220.0150.00615.64
5.4.210.0120.00915.64
5.4.200.0170.00315.64
5.4.190.0210.00015.64
5.4.180.0140.00715.64
5.4.170.0140.00715.64
5.4.160.0210.00015.64
5.4.150.0130.00415.64
5.4.140.0270.00815.64
5.4.130.0160.00815.64
5.4.120.0150.00415.64
5.4.110.0170.00415.64
5.4.100.0140.00715.64
5.4.90.0100.01015.64
5.4.80.0210.00015.64
5.4.70.0190.00315.64
5.4.60.0120.00815.64
5.4.50.0150.00315.64
5.4.40.0150.00315.64
5.4.30.0100.00015.64
5.4.20.0090.00015.64
5.4.10.0100.00215.64
5.4.00.0060.01015.64
5.3.290.0130.00315.64
5.3.280.0190.00515.64
5.3.270.0160.00615.64
5.3.260.0110.01115.64
5.3.250.0180.00415.64
5.3.240.0160.00615.64
5.3.230.0180.00415.64
5.3.220.0190.00315.64
5.3.210.0110.01115.64
5.3.200.0240.00715.64
5.3.190.0190.00415.64
5.3.180.0170.00715.64
5.3.170.0190.00615.64
5.3.160.0180.00015.64
5.3.150.0130.01315.64
5.3.140.0150.00715.64
5.3.130.0110.00315.64
5.3.120.0120.00015.64
5.3.110.0100.00015.64
5.3.100.0080.00315.64
5.3.90.0110.00215.64
5.3.80.0120.00915.64
5.3.70.0120.00315.64
5.3.60.0090.00615.64
5.3.50.0090.00215.64
5.3.40.0110.00315.64
5.3.30.0050.00515.64
5.3.20.0050.00515.64
5.3.10.0050.00515.64
5.3.00.0070.00415.64
5.2.170.0090.00015.64
5.2.160.0100.00015.64
5.2.150.0060.00315.64
5.2.140.0090.00015.64
5.2.130.0080.00015.64
5.2.120.0100.00015.64
5.2.110.0060.00315.64
5.2.100.0120.00015.64
5.2.90.0090.00015.64
5.2.80.0060.00315.64
5.2.70.0100.00015.64
5.2.60.0080.00015.64
5.2.50.0090.00015.64
5.2.40.0090.00015.64
5.2.30.0090.00015.64
5.2.20.0000.00915.64
5.2.10.0000.00815.64
5.2.00.0140.00315.64
5.1.60.0080.00015.64
5.1.50.0150.00015.64
5.1.40.0000.01015.64
5.1.30.0040.00415.64
5.1.20.0000.00815.64
5.1.10.0050.00515.64
5.1.00.0080.00015.64
5.0.50.0060.00015.64
5.0.40.0060.00015.64
5.0.30.0060.00015.64
5.0.20.0050.00215.64
5.0.10.0060.00015.64
5.0.00.0000.00615.64
4.4.90.0020.00215.64
4.4.80.0040.00015.64
4.4.70.0000.00415.64
4.4.60.0000.00415.64
4.4.50.0040.00015.64
4.4.40.0000.00315.64
4.4.30.0000.00415.64
4.4.20.0030.00015.64
4.4.10.0000.00415.64
4.4.00.0040.00015.64
4.3.110.0030.00115.64
4.3.100.0020.00215.64
4.3.90.0040.00015.64
4.3.80.0030.00015.64
4.3.70.0030.00015.64
4.3.60.0000.00415.64
4.3.50.0030.00015.64
4.3.40.0030.00015.64
4.3.30.0030.00015.64
4.3.20.0030.00015.64
4.3.10.0000.00315.64
4.3.00.0000.00215.64

preferences:
32.88 ms | 403 KiB | 5 Q