3v4l.org

run code in 300+ PHP versions simultaneously
<?php throw new MyException('This is a really bad error', 123); /* final public ExceptionException::getPrevious ( void ) error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline, new Exception('jjj')); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { var_dump($e->getPrevious()); }*/

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.0110.00318.43
8.3.50.0050.01121.15
8.3.40.0110.00318.84
8.3.30.0120.00320.03
8.3.20.0040.00420.34
8.3.10.0080.00022.04
8.3.00.0100.00722.45
8.2.180.0140.00416.38
8.2.170.0110.00322.96
8.2.160.0070.00722.26
8.2.150.0040.01524.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00520.88
8.2.110.0000.00922.07
8.2.100.0070.00417.72
8.2.90.0040.00419.14
8.2.80.0000.00719.32
8.2.70.0040.00417.25
8.2.60.0000.00717.93
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0050.00219.35
8.2.20.0040.00417.63
8.2.10.0080.00017.56
8.2.00.0040.00717.68
8.1.280.0000.01425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.01028.09
8.1.240.0030.00620.92
8.1.230.0040.00718.88
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00717.23
8.1.190.0040.00417.41
8.1.180.0050.00318.89
8.1.170.0090.00518.29
8.1.160.0100.00018.68
8.1.150.0000.00718.42
8.1.140.0070.00017.32
8.1.130.0000.00717.66
8.1.120.0030.00417.40
8.1.110.0040.00417.29
8.1.100.0070.00017.33
8.1.90.0070.00017.36
8.1.80.0040.00417.15
8.1.70.0000.00717.19
8.1.60.0060.00317.35
8.1.50.0070.00017.45
8.1.40.0040.00417.33
8.1.30.0000.00817.38
8.1.20.0080.00017.41
8.1.10.0000.00717.53
8.1.00.0000.00817.29
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0000.00718.31
8.0.270.0000.00717.23
8.0.260.0040.00416.80
8.0.250.0060.00016.94
8.0.240.0050.00316.91
8.0.230.0040.00416.98
8.0.220.0070.00016.89
8.0.210.0000.00716.74
8.0.200.0040.00416.87
8.0.190.0000.00816.84
8.0.180.0030.00516.89
8.0.170.0040.00416.83
8.0.160.0030.00316.76
8.0.150.0030.00716.78
8.0.140.0050.00216.69
8.0.130.0050.00013.27
8.0.120.0020.00516.86
8.0.110.0040.00416.86
8.0.100.0040.00416.92
8.0.90.0000.00716.95
8.0.80.0060.00916.88
8.0.70.0000.00716.91
8.0.60.0000.00916.75
8.0.50.0070.00016.78
8.0.30.0060.01317.08
8.0.20.0110.01017.40
8.0.10.0080.00016.98
8.0.00.0130.00816.62
7.4.330.0050.00015.00
7.4.320.0000.00716.50
7.4.300.0000.00616.58
7.4.290.0000.00716.42
7.4.280.0030.00316.43
7.4.270.0030.00316.37
7.4.260.0000.00513.11
7.4.250.0000.00716.40
7.4.240.0020.00516.53
7.4.230.0030.00316.33
7.4.220.0180.00316.53
7.4.210.0040.01216.51
7.4.200.0030.00316.50
7.4.190.0020.00516.61
7.4.160.0060.00916.56
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0090.00916.44
7.4.120.0110.00716.38
7.4.110.0070.01116.58
7.4.100.0040.01216.46
7.4.90.0030.01416.26
7.4.80.0100.00619.39
7.4.70.0060.01616.40
7.4.60.0090.01016.37
7.4.50.0030.00616.53
7.4.40.0120.00422.77
7.4.30.0080.00816.27
7.4.00.0040.00714.92
7.3.330.0000.00513.12
7.3.320.0000.00513.23
7.3.310.0070.00016.19
7.3.300.0030.00316.29
7.3.290.0030.01216.23
7.3.280.0080.00516.26
7.3.270.0050.01117.40
7.3.260.0040.01416.24
7.3.250.0090.01116.51
7.3.240.0130.00316.36
7.3.230.0100.00716.39
7.3.210.0130.00316.17
7.3.200.0090.01219.39
7.3.190.0060.01216.27
7.3.180.0040.01216.34
7.3.170.0070.01016.41
7.3.160.0090.00616.31
7.3.120.0070.00714.99
7.3.00.0040.00716.49
7.2.330.0100.01016.59
7.2.320.0050.01916.38
7.2.310.0060.01216.53
7.2.300.0060.01116.32
7.2.290.0030.01316.16
7.2.130.0030.00916.63
7.2.120.0100.00716.52
7.2.110.0060.00316.81
7.2.100.0030.00916.79
7.2.90.0030.00516.48
7.2.80.0070.00716.75
7.2.70.0040.00716.69
7.2.60.0040.01116.75
7.2.50.0060.00616.86
7.2.40.0110.00316.63
7.2.30.0110.00416.81
7.2.20.0060.00616.23
7.2.10.0030.01316.83
7.2.00.0090.00117.90
7.1.250.0030.00915.58
7.1.240.0060.00315.65
7.1.230.0050.00515.43
7.1.220.0030.00915.73
7.1.210.0000.01515.62
7.1.200.0080.00515.53
7.1.190.0070.00715.46
7.1.180.0000.01415.55
7.1.170.0070.00315.34
7.1.160.0000.01015.54
7.1.150.0060.00615.15
7.1.140.0040.00815.67
7.1.130.0030.01015.63
7.1.120.0060.00915.54
7.1.110.0030.00615.48
7.1.100.0050.00516.80
7.1.90.0070.00715.57
7.1.80.0110.00415.50
7.1.70.0050.00716.33
7.1.60.0030.01117.46
7.1.50.0050.00616.20
7.1.40.0090.00015.71
7.1.30.0030.00715.69
7.1.20.0030.00915.51
7.1.10.0040.01115.26
7.1.00.0030.02319.02
7.0.330.0000.01215.24
7.0.320.0040.00415.07
7.0.310.0040.00414.93
7.0.300.0100.00014.90
7.0.290.0050.00515.16
7.0.280.0040.00414.95
7.0.270.0080.00315.06
7.0.260.0100.00315.20
7.0.250.0100.00315.38
7.0.240.0000.00915.44
7.0.230.0060.00615.30
7.0.220.0000.01015.20
7.0.210.0060.00315.22
7.0.200.0030.00715.83
7.0.190.0040.00815.30
7.0.180.0090.00315.01
7.0.170.0060.00615.25
7.0.160.0000.00915.21
7.0.150.0080.00815.03
7.0.140.0040.03918.53
7.0.130.0060.00915.11
7.0.120.0000.00815.09
7.0.110.0040.00415.26
7.0.100.0180.04117.53
7.0.90.0070.04317.71
7.0.80.0080.04117.53
7.0.70.0030.05017.60
7.0.60.0050.04717.63
7.0.50.0140.04017.71
7.0.40.0120.03816.63
7.0.30.0100.03816.60
7.0.20.0030.05216.54
7.0.10.0080.04116.75
7.0.00.0040.04616.67
5.6.380.0000.01314.38
5.6.370.0050.00513.87
5.6.360.0030.00714.02
5.6.350.0040.00713.82
5.6.340.0060.00613.97
5.6.330.0060.00614.25
5.6.320.0090.00314.25
5.6.310.0030.01014.11
5.6.300.0060.00614.10
5.6.290.0070.00714.20
5.6.280.0050.04017.64
5.6.270.0060.00614.02
5.6.260.0100.00314.24
5.6.250.0100.04717.49
5.6.240.0050.04717.40
5.6.230.0060.04817.15
5.6.220.0050.04617.12
5.6.210.0030.04017.41
5.6.200.0100.04017.54
5.6.190.0070.02617.69
5.6.180.0100.04017.53
5.6.170.0080.02717.45
5.6.160.0070.04417.49
5.6.150.0060.04617.46
5.6.140.0070.04317.56
5.6.130.0060.03117.48
5.6.120.0070.04217.53
5.6.110.0050.04317.63
5.6.100.0030.04717.70
5.6.90.0070.04517.55
5.6.80.0080.03817.23
5.6.70.0050.03617.26
5.6.60.0050.03617.14
5.6.50.0080.04017.28
5.6.40.0080.03917.23
5.6.30.0030.04517.21
5.6.20.0040.04617.06
5.6.10.0030.04517.16
5.6.00.0080.03517.18
5.5.380.0020.04215.54
5.5.370.0070.04415.61
5.5.360.0050.03015.67
5.5.350.0070.04215.62
5.5.340.0100.03915.82
5.5.330.0050.04115.89
5.5.320.0020.04915.82
5.5.310.0070.04215.83
5.5.300.0060.03515.87
5.5.290.0030.04615.87
5.5.280.0030.04515.82
5.5.270.0030.04515.86
5.5.260.0030.04415.61
5.5.250.0080.03615.75
5.5.240.0040.03715.52
5.5.230.0040.04615.40
5.5.220.0110.03615.40
5.5.210.0100.03815.36
5.5.200.0060.03415.34
5.5.190.0030.04315.42
5.5.180.0030.04515.47
5.5.170.0000.00910.59
5.5.160.0090.03815.52
5.5.150.0030.04315.45
5.5.140.0020.04715.44
5.5.130.0070.03215.51
5.5.120.0120.03215.52
5.5.110.0030.03815.57
5.5.100.0100.04015.54
5.5.90.0050.04215.45
5.5.80.0090.03415.44
5.5.70.0060.04315.49
5.5.60.0030.04615.43
5.5.50.0070.04015.43
5.5.40.0020.04315.37
5.5.30.0100.03815.29
5.5.20.0020.03115.36
5.5.10.0030.03615.40
5.5.00.0070.03815.29
5.4.450.0060.03615.02
5.4.440.0120.03415.20
5.4.430.0100.03815.02
5.4.420.0020.04315.05
5.4.410.0020.04514.84
5.4.400.0120.03314.76
5.4.390.0080.04214.88
5.4.380.0020.04214.70
5.4.370.0060.03114.96
5.4.360.0010.04614.85
5.4.350.0070.04214.88
5.4.340.0080.03514.88
5.4.330.0000.00910.49
5.4.320.0090.04014.76
5.4.310.0070.02114.90
5.4.300.0070.03614.67
5.4.290.0080.04114.89
5.4.280.0120.02814.87
5.4.270.0050.02714.80
5.4.260.0040.04314.77
5.4.250.0060.03314.85
5.4.240.0080.03714.81
5.4.230.0070.03914.99
5.4.220.0090.03514.73
5.4.210.0070.04014.90
5.4.200.0070.03814.90
5.4.190.0020.04014.89
5.4.180.0070.04014.75
5.4.170.0120.03315.00
5.4.160.0070.02414.78
5.4.150.0030.03914.65
5.4.140.0050.03813.48
5.4.130.0080.02813.48
5.4.120.0060.03813.48
5.4.110.0050.03313.35
5.4.100.0050.02813.49
5.4.90.0070.03713.43
5.4.80.0080.02113.32
5.4.70.0050.03813.45
5.4.60.0050.03313.47
5.4.50.0050.02213.44
5.4.40.0070.03913.32
5.4.30.0060.01913.63
5.4.20.0110.03613.37
5.4.10.0030.04013.45
5.4.00.0050.02813.24
5.3.290.0050.03712.48
5.3.280.0050.03812.39
5.3.270.0050.02312.34
5.3.260.0070.03712.37
5.3.250.0030.03912.43
5.3.240.0100.01812.31
5.3.230.0030.04212.34
5.3.220.0060.02212.33
5.3.210.0080.03612.28
5.3.200.0030.03112.34
5.3.190.0000.02912.32
5.3.180.0000.04612.32
5.3.170.0040.03712.43
5.3.160.0070.03612.36
5.3.150.0070.02312.35
5.3.140.0120.03712.32
5.3.130.0020.03612.30
5.3.120.0090.03112.27
5.3.110.0080.03912.23
5.3.100.0100.02012.04
5.3.90.0030.03312.14
5.3.80.0030.03311.99
5.3.70.0050.03911.99
5.3.60.0030.04411.98
5.3.50.0050.03512.02
5.3.40.0060.03811.95
5.3.30.0050.03911.95
5.3.20.0070.03911.83
5.3.10.0080.03811.74
5.3.00.0030.04211.80
5.2.170.0050.03311.28
5.2.160.0000.03111.28
5.2.150.0050.02411.28
5.2.140.0030.03611.28
5.2.130.0080.03211.28
5.2.120.0050.03311.28
5.2.110.0060.03311.28
5.2.100.0050.01711.28
5.2.90.0030.02411.28
5.2.80.0070.03011.28
5.2.70.0070.02511.28
5.2.60.0070.03011.28
5.2.50.0050.03311.28
5.2.40.0030.03011.28
5.2.30.0030.02511.28
5.2.20.0020.02311.28
5.2.10.0050.03011.28
5.2.00.0020.03111.28
5.1.60.0050.02611.28
5.1.50.0030.02811.28
5.1.40.0010.02111.28
5.1.30.0050.02911.28
5.1.20.0050.02811.28
5.1.10.0050.02911.28
5.1.00.0020.03311.28
5.0.50.0020.02511.28
5.0.40.0040.02011.28
5.0.30.0030.02711.28
5.0.20.0050.01711.28
5.0.10.0020.02511.28
5.0.00.0050.03211.28
4.4.90.0010.01911.28
4.4.80.0020.02011.28
4.4.70.0030.01811.28
4.4.60.0000.01411.28
4.4.50.0030.01811.28
4.4.40.0030.02811.28
4.4.30.0030.01811.28
4.4.20.0030.02011.28
4.4.10.0020.01211.28
4.4.00.0000.02511.28
4.3.110.0020.01911.28
4.3.100.0070.01511.28
4.3.90.0050.01711.28
4.3.80.0040.02311.28
4.3.70.0000.01711.28
4.3.60.0020.01711.28
4.3.50.0030.01811.28
4.3.40.0020.02611.28
4.3.30.0000.02311.28
4.3.20.0010.01711.28
4.3.10.0020.01511.28
4.3.00.0020.00911.28

preferences:
49.08 ms | 401 KiB | 5 Q