3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IbmApiExceptionDB extends Exception { private $messages = array(); public function setMessage($messageLabel, $msgArgs = null, $moduleName = null) { if (is_array($messageLabel)) { $this->messages = $messageLabel; $messageLabel = ''; } //parent::setMessage($messageLabel, $msgArgs, $moduleName); } public function getMessages() { return $this->messages; } } $exception = new IbmApiExceptionDB(); $exception->setMessage(array(1,2,3)); throw $exception;

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.3.60.0140.00718.32
8.3.50.0180.00421.16
8.3.40.0140.00718.75
8.3.30.0100.00319.04
8.3.20.0070.00020.34
8.3.10.0080.00021.71
8.3.00.0040.00419.48
8.2.180.0150.00318.54
8.2.170.0070.01022.96
8.2.160.0120.00620.39
8.2.150.0050.00224.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0040.00421.98
8.2.110.0000.00922.20
8.2.100.0040.00817.50
8.2.90.0040.00419.04
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0040.00717.91
8.2.50.0060.00318.07
8.2.40.0050.00319.95
8.2.30.0070.00018.02
8.2.20.0040.00417.68
8.2.10.0040.00418.18
8.2.00.0050.00317.87
8.1.280.0070.00725.92
8.1.270.0030.01321.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00923.92
8.1.230.0110.00017.42
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0080.00022.02
8.1.150.0000.00718.89
8.1.140.0000.00717.37
8.1.130.0000.00817.83
8.1.120.0000.00717.36
8.1.110.0000.00817.38
8.1.100.0000.00717.48
8.1.90.0000.00717.49
8.1.80.0000.00717.53
8.1.70.0070.00017.47
8.1.60.0030.00617.55
8.1.50.0030.00617.45
8.1.40.0000.00817.40
8.1.30.0080.00017.50
8.1.20.0000.00717.71
8.1.10.0040.00417.60
8.1.00.0040.00417.56
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0000.00717.12
8.0.260.0030.00317.16
8.0.250.0030.00316.95
8.0.240.0030.00316.95
8.0.230.0000.00716.91
8.0.220.0030.00316.89
8.0.210.0060.00016.91
8.0.200.0000.00816.94
8.0.190.0040.00416.85
8.0.180.0070.00016.95
8.0.170.0060.00316.95
8.0.160.0000.00816.90
8.0.150.0070.00016.91
8.0.140.0050.00316.97
8.0.130.0030.00513.36
8.0.120.0000.00816.98
8.0.110.0040.00416.99
8.0.100.0000.00816.82
8.0.90.0050.00216.89
8.0.80.0120.00916.95
8.0.70.0000.00716.90
8.0.60.0000.00816.83
8.0.50.0070.00016.86
8.0.30.0110.01117.12
8.0.20.0130.00817.40
8.0.10.0000.00716.97
8.0.00.0060.01316.92
7.4.330.0000.00615.02
7.4.320.0090.00016.58
7.4.300.0040.00416.47
7.4.290.0030.00316.36
7.4.280.0030.00316.42
7.4.270.0020.00516.50
7.4.260.0080.00016.43
7.4.250.0090.00016.57
7.4.240.0030.00416.56
7.4.230.0000.00716.70
7.4.220.0030.01416.63
7.4.210.0120.00916.66
7.4.200.0000.00716.68
7.4.160.0070.01016.48
7.4.150.0070.01717.40
7.4.140.0170.00517.86
7.4.130.0110.00716.51
7.4.120.0110.00716.58
7.4.110.0090.01316.51
7.4.100.0120.00616.41
7.4.90.0100.01016.51
7.4.80.0240.00019.39
7.4.70.0060.01216.43
7.4.60.0060.00916.45
7.4.50.0050.00016.63
7.4.40.0120.00416.42
7.4.30.0120.00416.53
7.4.00.0070.01015.03
7.3.330.0030.00313.24
7.3.320.0000.00613.38
7.3.310.0030.00316.27
7.3.300.0000.00716.24
7.3.290.0090.00916.42
7.3.280.0040.01416.34
7.3.270.0060.01517.40
7.3.260.0030.01316.50
7.3.250.0140.00816.34
7.3.240.0120.00416.36
7.3.230.0240.00016.42
7.3.210.0120.00616.37
7.3.200.0100.00719.39
7.3.190.0110.00716.54
7.3.180.0120.00316.48
7.3.170.0120.00616.30
7.3.160.0080.00816.46
7.2.330.0030.01316.64
7.2.320.0070.01016.79
7.2.310.0100.01316.46
7.2.300.0120.00316.68
7.2.290.0110.00816.50
7.2.60.0120.00016.49
7.2.00.0030.00719.18
7.1.200.0000.01315.75
7.1.100.0000.01117.80
7.1.70.0110.00417.07
7.1.60.0170.00719.11
7.1.50.0040.01916.82
7.1.00.0000.07722.40
7.0.200.0030.01216.91
7.0.140.0130.06021.99
7.0.60.0170.07719.92
7.0.50.0130.07317.98
7.0.40.0070.05320.26
7.0.30.0630.05720.13
7.0.20.0200.05020.16
7.0.10.0100.06320.19
7.0.00.0030.08320.14
5.6.280.0100.06721.11
5.6.210.0200.07020.60
5.6.200.0000.04718.14
5.6.190.0030.05720.69
5.6.180.0400.06720.50
5.6.170.0400.07720.57
5.6.160.0200.07020.44
5.6.150.0000.06718.29
5.6.140.0170.06018.27
5.6.130.0070.03718.16
5.6.120.0070.04320.91
5.6.110.0130.07721.12
5.6.100.0130.08021.04
5.6.90.0070.07721.14
5.6.80.0200.06720.41
5.6.70.4500.04320.39
5.5.350.0100.08320.39
5.5.340.0070.05017.99
5.5.330.0070.07320.57
5.5.320.0200.07320.51
5.5.310.0200.05020.23
5.5.300.0130.07317.94
5.5.290.0100.03317.95
5.5.280.0100.08320.95
5.5.270.0070.08720.85
5.5.260.0030.04020.88
5.5.250.0170.07020.71
5.5.240.0230.04320.27
5.4.450.0700.07319.61
5.4.440.0770.05719.67
5.4.430.0800.05719.30
5.4.420.0670.00019.47
5.4.410.0670.00019.26
5.4.400.0600.00019.38
5.4.390.0630.00019.04
5.4.380.0630.00019.20
5.4.370.0670.00019.11
5.4.360.0600.00019.21
5.4.350.0630.00019.02
5.4.340.0100.03912.02
5.4.320.0040.04012.50
5.4.310.0090.04012.50
5.4.300.0060.04212.51
5.4.290.0030.04112.50
5.4.280.0080.03912.40
5.4.270.0110.03212.40
5.4.260.0080.03712.40
5.4.250.0030.04212.40
5.4.240.0090.04012.40
5.4.230.0050.04312.39
5.4.220.0080.03612.39
5.4.210.0100.03412.39
5.4.200.0050.03812.39
5.4.190.0040.04012.38
5.4.180.0060.04112.39
5.4.170.0050.04112.39
5.4.160.0060.03612.39
5.4.150.0040.04012.39
5.4.140.0030.05012.07
5.4.130.0120.04112.06
5.4.120.0080.03412.02
5.4.110.0070.03712.02
5.4.100.0060.03612.02
5.4.90.0040.04612.02
5.4.80.0090.03512.02
5.4.70.0070.03512.01
5.4.60.0050.04212.01
5.4.50.0080.04412.01
5.4.40.0060.03512.00
5.4.30.0050.03812.00
5.4.20.0060.04612.00
5.4.10.0060.03512.00
5.4.00.0030.04111.49
5.3.290.0120.03612.80
5.3.280.0090.04412.71
5.3.270.0080.04712.73
5.3.260.0110.04412.72
5.3.250.0090.04112.71
5.3.240.0120.03912.72
5.3.230.0100.04112.71
5.3.220.0040.04312.68
5.3.210.0070.04512.68
5.3.200.0100.03312.68
5.3.190.0080.03612.68
5.3.180.0080.03612.67
5.3.170.0050.03812.67
5.3.160.0040.03712.68
5.3.150.0070.04012.67
5.3.140.0080.03412.66
5.3.130.0060.04212.66
5.3.120.0110.03612.66
5.3.110.0090.04112.66
5.3.100.0060.03812.12
5.3.90.0120.03312.11
5.3.80.0030.03912.10
5.3.70.0070.03512.10
5.3.60.0050.03712.09
5.3.50.0040.03912.03
5.3.40.0080.03912.04
5.3.30.0080.03512.00
5.3.20.0120.02911.77
5.3.10.0070.03411.74
5.3.00.0040.04011.73
5.2.170.0060.0339.23
5.2.160.0030.0349.23
5.2.150.0090.0279.23
5.2.140.0080.0279.22
5.2.130.0020.0329.19
5.2.120.0050.0289.19
5.2.110.0040.0309.19
5.2.100.0040.0309.19
5.2.90.0040.0309.19
5.2.80.0030.0329.18
5.2.70.0040.0319.18
5.2.60.0040.0309.13
5.2.50.0080.0289.10
5.2.40.0080.0259.08
5.2.30.0090.0259.06
5.2.20.0060.0299.05
5.2.10.0030.0308.95
5.2.00.0040.0298.83
5.1.60.0010.0278.11
5.1.50.0030.0268.10
5.1.40.0030.0288.09
5.1.30.0050.0258.44
5.1.20.0080.0308.46
5.1.10.0060.0248.18
5.1.00.0010.0298.18
5.0.50.0030.0216.66
5.0.40.0040.0196.52
5.0.30.0040.0306.33
5.0.20.0030.0206.30
5.0.10.0030.0206.27
5.0.00.0020.0326.27
4.4.90.0050.0134.78
4.4.80.0030.0154.75
4.4.70.0010.0184.76
4.4.60.0020.0174.75
4.4.50.0030.0224.77
4.4.40.0020.0294.71
4.4.30.0020.0164.76
4.4.20.0050.0134.84
4.4.10.0020.0164.85
4.4.00.0040.0234.76
4.3.110.0030.0154.67
4.3.100.0010.0174.66
4.3.90.0040.0154.64
4.3.80.0040.0254.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0030.0144.63
4.3.40.0020.0254.54
4.3.30.0010.0173.30
4.3.20.0030.0153.28
4.3.10.0010.0163.23
4.3.00.0200.01710.05

preferences:
34.59 ms | 401 KiB | 5 Q