3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyException extends Exception { public function __construct($message, $code=0, Exception $previous = null) { parent::__construct($message,$code,$previous); } public function __toString() { return __CLASS__. ":[{$this->code}]:{$this->message}\n"; } } throw new MyException("Foo", "123");

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.0120.00316.63
8.3.50.0130.00821.14
8.3.40.0070.00718.63
8.3.30.0070.01018.85
8.3.20.0070.00020.18
8.3.10.0090.00021.54
8.3.00.0080.00023.64
8.2.180.0040.01118.29
8.2.170.0070.00722.96
8.2.160.0100.00320.28
8.2.150.0120.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00019.89
8.2.120.0000.00826.35
8.2.110.0030.00622.43
8.2.100.0060.00618.04
8.2.90.0030.00518.92
8.2.80.0040.00417.97
8.2.70.0090.00017.75
8.2.60.0060.00318.00
8.2.50.0000.00818.07
8.2.40.0000.00822.10
8.2.30.0000.00719.51
8.2.20.0040.00417.82
8.2.10.0030.00517.94
8.2.00.0000.00717.93
8.1.280.0090.00625.92
8.1.270.0110.00723.97
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0070.00422.20
8.1.230.0070.00319.01
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0060.00318.42
8.1.160.0000.00720.71
8.1.150.0000.00718.88
8.1.140.0040.00419.47
8.1.130.0000.00717.71
8.1.120.0050.00317.33
8.1.110.0000.00817.25
8.1.100.0000.00717.41
8.1.90.0000.00817.25
8.1.80.0000.00717.41
8.1.70.0000.00717.46
8.1.60.0000.00817.49
8.1.50.0030.00517.46
8.1.40.0040.00417.49
8.1.30.0040.00417.51
8.1.20.0000.00717.57
8.1.10.0000.00717.52
8.1.00.0000.00817.34
8.0.300.0000.00718.77
8.0.290.0050.00216.88
8.0.280.0000.00718.45
8.0.270.0000.00717.26
8.0.260.0030.00317.26
8.0.250.0030.00316.92
8.0.240.0030.00317.05
8.0.230.0000.00716.99
8.0.220.0030.00316.85
8.0.210.0070.00016.92
8.0.200.0060.00017.05
8.0.190.0000.01217.02
8.0.180.0040.00417.01
8.0.170.0000.00916.90
8.0.160.0040.00416.94
8.0.150.0000.00716.89
8.0.140.0040.00316.89
8.0.130.0000.00513.35
8.0.120.0040.00416.82
8.0.110.0040.00416.87
8.0.100.0070.00016.93
8.0.90.0070.00016.91
8.0.80.0100.00616.98
8.0.70.0080.00016.92
8.0.60.0000.00716.84
8.0.50.0040.00416.81
8.0.30.0070.01117.19
8.0.20.0090.01017.40
8.0.10.0080.00017.07
8.0.00.0110.00916.88
7.4.330.0030.00316.80
7.4.320.0030.00316.55
7.4.300.0030.00316.53
7.4.290.0050.00316.30
7.4.280.0080.00016.46
7.4.270.0030.00316.57
7.4.260.0060.00316.53
7.4.250.0040.00416.56
7.4.240.0020.00516.43
7.4.230.0000.00716.56
7.4.220.0030.01616.63
7.4.210.0090.01016.54
7.4.200.0050.00216.54
7.4.160.0090.01316.59
7.4.150.0070.01617.40
7.4.140.0070.01417.86
7.4.130.0130.01016.51
7.4.120.0130.00516.35
7.4.110.0180.01016.54
7.4.100.0140.00316.28
7.4.90.0100.00716.45
7.4.80.0080.01219.39
7.4.70.0090.00916.46
7.4.60.0100.00716.56
7.4.50.0060.00616.06
7.4.40.0080.00816.52
7.4.30.0060.01016.63
7.4.00.0060.01014.71
7.3.330.0060.00013.31
7.3.320.0060.00013.17
7.3.310.0000.00716.38
7.3.300.0050.00216.37
7.3.290.0040.00416.33
7.3.280.0070.01116.39
7.3.270.0090.00917.40
7.3.260.0050.01716.39
7.3.250.0050.01316.52
7.3.240.0130.00716.53
7.3.230.0000.01616.58
7.3.210.0060.01216.43
7.3.200.0120.00619.39
7.3.190.0070.01116.33
7.3.180.0070.01416.34
7.3.170.0120.00916.36
7.3.160.0060.00916.46
7.3.10.0070.00716.43
7.3.00.0060.00616.20
7.2.330.0060.01216.84
7.2.320.0130.01016.75
7.2.310.0100.00716.71
7.2.300.0040.01616.67
7.2.290.0090.01216.63
7.2.130.0080.00616.70
7.2.120.0080.00516.54
7.2.110.0070.00916.57
7.2.100.0120.00616.82
7.2.90.0050.01017.02
7.2.80.0100.01116.83
7.2.70.0080.00516.88
7.2.60.0100.00516.76
7.2.50.0100.00816.55
7.2.40.0110.00416.90
7.2.30.0080.00616.95
7.2.20.0130.01116.56
7.2.10.0120.00416.74
7.2.00.0060.00917.74
7.1.250.0070.00515.66
7.1.240.0090.00315.62
7.1.230.0090.00615.80
7.1.220.0060.00315.78
7.1.210.0040.00415.77
7.1.200.0100.00315.72
7.1.190.0110.00415.86
7.1.180.0040.00715.83
7.1.170.0000.01015.43
7.1.160.0090.00315.63
7.1.150.0030.01015.45
7.1.140.0060.01015.81
7.1.130.0070.00715.58
7.1.120.0040.01115.51
7.1.110.0140.00315.77
7.1.100.0080.00616.79
7.1.90.0080.00415.51
7.1.80.0030.00915.79
7.1.70.0050.00616.42
7.1.60.0040.00717.43
7.1.50.0030.01716.11
7.1.40.0040.01115.80
7.1.30.0120.00615.63
7.1.20.0070.00715.70
7.1.10.0110.00415.77
7.1.00.0050.04018.99
7.0.330.0030.00815.32
7.0.320.0000.01015.14
7.0.310.0030.01315.33
7.0.300.0040.00815.21
7.0.290.0120.00315.41
7.0.280.0060.00615.20
7.0.270.0090.00315.18
7.0.260.0070.00715.47
7.0.250.0040.00815.54
7.0.240.0000.00815.39
7.0.230.0040.00415.38
7.0.220.0030.01015.64
7.0.210.0140.00015.17
7.0.200.0070.00416.00
7.0.190.0070.00715.43
7.0.180.0040.00715.49
7.0.170.0030.01015.16
7.0.160.0030.00715.32
7.0.150.0060.00615.27
7.0.140.0070.00715.32
7.0.130.0060.00615.29
7.0.120.0060.00615.35
7.0.110.0060.00615.46
7.0.100.0040.00415.06
7.0.90.0070.00715.25
7.0.80.0030.01015.34
7.0.70.0070.01115.30
7.0.60.0130.04018.57
7.0.50.0090.04216.61
7.0.40.0100.03716.81
7.0.30.0200.04316.91
7.0.20.0120.02516.73
7.0.10.0060.03916.81
7.0.00.0080.04316.69
5.6.380.0060.00314.22
5.6.370.0030.01014.27
5.6.360.0120.00014.18
5.6.350.0000.01114.21
5.6.340.0080.00814.19
5.6.330.0040.01114.43
5.6.320.0100.00013.83
5.6.310.0040.01214.32
5.6.300.0090.00614.11
5.6.290.0030.00614.45
5.6.280.0040.02017.49
5.6.270.0110.00414.32
5.6.260.0090.00014.28
5.6.250.0060.01213.78
5.6.240.0040.00814.07
5.6.230.0080.00314.18
5.6.220.0030.00913.94
5.6.210.0050.04617.33
5.6.200.0110.02716.17
5.6.190.0050.02317.44
5.6.180.0170.02317.34
5.6.170.0210.03217.16
5.6.160.0030.05017.35
5.6.150.0070.03816.28
5.6.140.0050.02316.16
5.6.130.0090.04016.16
5.6.120.0040.04417.58
5.6.110.0050.04817.74
5.6.100.0050.04917.54
5.6.90.0050.02817.50
5.6.80.0100.03517.27
5.6.70.0080.00314.06
5.6.60.0090.00314.00
5.6.50.0040.00814.17
5.6.40.0090.00614.43
5.6.30.0060.00614.21
5.6.20.0060.00914.25
5.6.10.0030.00714.19
5.6.00.0000.01514.20
5.5.380.0070.00310.82
5.5.370.0120.00010.57
5.5.360.0000.01010.70
5.5.350.0030.02515.61
5.5.340.0030.02414.37
5.5.330.0090.04415.60
5.5.320.0280.02815.71
5.5.310.0150.03315.69
5.5.300.0090.02614.39
5.5.290.0090.03314.58
5.5.280.0110.02516.13
5.5.270.0070.03615.80
5.5.260.0130.03715.89
5.5.250.0110.03715.77
5.5.240.0020.04715.59
5.5.230.0030.00611.05
5.5.220.0060.00610.74
5.5.210.0090.00310.51
5.5.200.0030.00310.78
5.5.190.0030.00511.06
5.5.180.0030.00910.81
5.5.170.0000.00710.49
5.5.160.0040.00810.84
5.5.150.0030.00310.72
5.5.140.0000.01011.17
5.5.130.0040.00810.87
5.5.120.0040.00410.87
5.5.110.0060.00310.85
5.5.100.0060.00611.16
5.5.90.0030.00610.80
5.5.80.0080.00311.27
5.5.70.0030.00611.10
5.5.60.0050.00311.19
5.5.50.0030.00911.17
5.5.40.0060.00611.05
5.5.30.0050.00510.97
5.5.20.0000.01110.87
5.5.10.0030.00810.95
5.5.00.0030.00910.80

preferences:
65.51 ms | 401 KiB | 5 Q