3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* final public ExceptionException::getPrevious ( void ) final public stringException::getFile ( void ) final public arrayException::getTrace ( void ) final public stringException::getTraceAsString ( void ) public string Exception::__toString ( void ) final private voidException::__clone ( void ) */ error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { print_r($e->getTrace()); }

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.30
8.3.50.0130.00521.09
8.3.40.0150.00418.57
8.3.30.0030.01020.26
8.3.20.0070.00020.04
8.3.10.0040.00421.92
8.3.00.0090.00022.50
8.2.180.0060.00916.63
8.2.170.0100.01022.96
8.2.160.0030.01022.08
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00021.18
8.2.110.0090.00022.25
8.2.100.0070.00417.72
8.2.90.0000.00919.22
8.2.80.0030.00519.28
8.2.70.0000.00917.63
8.2.60.0070.00017.93
8.2.50.0030.00518.07
8.2.40.0050.00318.34
8.2.30.0050.00519.55
8.2.20.0040.00417.60
8.2.10.0040.00417.86
8.2.00.0030.00717.73
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0020.00526.35
8.1.250.0000.00728.09
8.1.240.0080.00022.05
8.1.230.0070.00422.74
8.1.220.0040.00417.76
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0030.00517.52
8.1.180.0050.00319.13
8.1.170.0040.00418.57
8.1.160.0040.00418.81
8.1.150.0040.00418.50
8.1.140.0040.00417.36
8.1.130.0070.00017.84
8.1.120.0000.00717.39
8.1.110.0040.00417.45
8.1.100.0040.00517.48
8.1.90.0000.00717.49
8.1.80.0040.00417.37
8.1.70.0000.00817.46
8.1.60.0000.00817.54
8.1.50.0000.00717.45
8.1.40.0000.00817.47
8.1.30.0030.00617.52
8.1.20.0060.00317.72
8.1.10.0000.00817.64
8.1.00.0070.00017.48
8.0.300.0040.00418.77
8.0.290.0000.00817.16
8.0.280.0000.00818.45
8.0.270.0070.00017.30
8.0.260.0000.00616.88
8.0.250.0000.00616.92
8.0.240.0040.00416.92
8.0.230.0000.00716.97
8.0.220.0040.00416.87
8.0.210.0000.00616.92
8.0.200.0040.00416.86
8.0.190.0040.00416.96
8.0.180.0080.00016.90
8.0.170.0040.00416.85
8.0.160.0000.00816.85
8.0.150.0040.00416.84
8.0.140.0040.00416.95
8.0.130.0030.00313.42
8.0.120.0040.00416.82
8.0.110.0040.00417.02
8.0.100.0000.00816.89
8.0.90.0020.00517.06
8.0.80.0160.00716.93
8.0.70.0040.00416.99
8.0.60.0040.00416.95
8.0.50.0070.00016.98
8.0.30.0080.01417.15
8.0.20.0120.00817.41
8.0.10.0000.00716.90
8.0.00.0140.00616.76
7.4.330.0000.00515.00
7.4.320.0030.00316.63
7.4.300.0000.00616.59
7.4.290.0000.00716.66
7.4.280.0030.00316.51
7.4.270.0030.00316.50
7.4.260.0000.00513.32
7.4.250.0050.00316.56
7.4.240.0040.00416.62
7.4.230.0060.00316.71
7.4.220.0030.01616.57
7.4.210.0080.00816.57
7.4.200.0000.00716.41
7.4.190.0020.00516.77
7.4.160.0100.01316.46
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0140.00616.57
7.4.120.0080.00916.53
7.4.110.0100.00616.50
7.4.100.0100.01316.70
7.4.90.0130.00316.31
7.4.80.0110.01119.39
7.4.70.0080.00816.57
7.4.60.0110.00716.43
7.4.50.0050.00716.22
7.4.40.0110.00419.49
7.4.30.0120.00616.00
7.4.20.0030.01416.27
7.4.10.0110.00516.28
7.4.00.0030.01415.67
7.3.330.0020.00213.30
7.3.320.0000.00513.14
7.3.310.0040.00416.43
7.3.300.0030.00316.19
7.3.290.0070.00716.42
7.3.280.0060.01016.38
7.3.270.0090.00917.40
7.3.260.0130.01316.44
7.3.250.0110.00916.54
7.3.240.0110.00616.43
7.3.230.0080.00916.39
7.3.210.0070.01116.49
7.3.200.0090.01519.39
7.3.190.0030.01316.41
7.3.180.0090.00816.51
7.3.170.0090.00616.39
7.3.160.0080.00716.32
7.3.150.0080.01116.46
7.3.140.0140.00916.29
7.3.130.0040.01216.46
7.3.120.0080.00515.66
7.3.110.0150.00316.42
7.3.100.0120.00616.34
7.3.90.0070.01116.38
7.3.80.0130.00316.21
7.3.70.0060.01316.23
7.3.60.0100.00616.36
7.3.50.0080.00816.33
7.3.40.0030.01416.32
7.3.30.0070.01016.32
7.3.20.0120.00616.46
7.3.10.0090.00916.33
7.3.00.0070.01016.45
7.2.330.0030.01716.73
7.2.320.0160.00716.68
7.2.310.0130.00316.59
7.2.300.0100.00716.30
7.2.290.0060.01116.39
7.2.280.0100.00616.39
7.2.270.0130.00316.33
7.2.260.0080.00816.38
7.2.250.0150.00316.56
7.2.240.0060.01416.53
7.2.230.0080.00916.33
7.2.220.0140.00716.46
7.2.210.0110.01116.42
7.2.200.0170.00316.37
7.2.190.0130.00616.45
7.2.180.0110.00716.41
7.2.170.0030.01316.36
7.2.160.0080.00816.50
7.2.150.0110.00616.46
7.2.140.0060.00916.51
7.2.130.0090.01216.57
7.2.120.0030.01916.61
7.2.110.0100.00716.41
7.2.100.0120.00616.44
7.2.90.0110.00616.53
7.2.80.0220.00916.61
7.2.70.0090.00916.59
7.2.60.0060.01016.78
7.2.50.0090.01316.80
7.2.40.0140.00316.57
7.2.30.0070.01516.56
7.2.20.0100.01016.39
7.2.10.0120.01116.42
7.2.00.0100.00318.00
7.1.330.0290.00915.50
7.1.320.0130.00615.40
7.1.310.0170.00015.31
7.1.300.0160.00415.32
7.1.290.0120.00715.44
7.1.280.0120.01215.62
7.1.270.0220.01315.16
7.1.260.0060.01315.23
7.1.250.0080.01215.55
7.1.240.0160.00315.22
7.1.230.0060.01215.42
7.1.220.0130.00715.34
7.1.210.0100.00715.41
7.1.200.0100.00315.63
7.1.190.0140.00315.32
7.1.180.0150.00415.39
7.1.170.0160.00315.40
7.1.160.0120.00815.21
7.1.150.0080.01115.39
7.1.140.0110.01115.24
7.1.130.0060.01615.23
7.1.120.0230.00015.24
7.1.110.0070.01115.58
7.1.100.0060.01116.89
7.1.90.0100.01015.57
7.1.80.0130.00715.39
7.1.70.0050.00816.22
7.1.60.0130.00617.42
7.1.50.0150.00616.17
7.1.40.0150.00315.28
7.1.30.0150.00315.62
7.1.20.0120.00615.52
7.1.10.0440.00715.34
7.1.00.0100.03718.92
7.0.330.0120.00915.03
7.0.320.0130.01015.05
7.0.310.0200.00514.95
7.0.300.0130.01315.12
7.0.290.0150.01215.04
7.0.280.0260.00615.00
7.0.270.0140.01115.11
7.0.260.0200.00615.18
7.0.250.0120.01214.98
7.0.240.0160.00515.15
7.0.230.0150.00815.16
7.0.220.0190.00715.18
7.0.210.0110.01115.02
7.0.200.0040.01116.05
7.0.190.0100.01015.16
7.0.180.0140.01015.14
7.0.170.0130.01315.05
7.0.160.0230.00015.02
7.0.150.0210.00414.91
7.0.140.0090.04218.54
7.0.130.0040.01815.19
7.0.120.0120.03718.64
7.0.110.0070.04518.57
7.0.100.0080.04218.62
7.0.90.0040.04718.53
7.0.80.0080.04818.68
7.0.70.0070.04418.57
7.0.60.0110.03718.62
7.0.50.0050.04418.57
7.0.40.0060.03818.61
7.0.30.0080.04018.66
7.0.20.0110.04018.57
7.0.10.0080.04118.65
7.0.00.0090.04118.68
5.6.400.0150.01215.57
5.6.390.0220.01015.64
5.6.380.0110.01515.65
5.6.370.0170.00815.53
5.6.360.0080.01715.80
5.6.350.0150.01215.58
5.6.340.0120.01715.60
5.6.330.0130.01315.49
5.6.320.0170.01315.62
5.6.310.0170.00715.56
5.6.300.0200.00615.61
5.6.290.0090.01615.64
5.6.280.0100.04318.52
5.6.270.0140.01215.67
5.6.260.0030.04418.28
5.6.250.0120.04018.26
5.6.240.0150.03318.40
5.6.230.0070.04918.27
5.6.220.0060.04518.09
5.6.210.0160.03818.19
5.6.200.0180.03618.19
5.6.190.0150.04018.27
5.6.180.0140.03918.30
5.6.170.0130.04318.15
5.6.160.0110.04418.28
5.6.150.0140.04218.25
5.6.140.0130.04318.27
5.6.130.0150.03918.31
5.6.120.0110.04418.38
5.6.110.0100.04618.28
5.6.100.0090.04718.22
5.6.90.0130.04018.21
5.6.80.0080.03518.00
5.6.70.0130.03717.86
5.6.60.0160.03617.97
5.6.50.0100.03617.93
5.6.40.0130.03818.06
5.6.30.0110.04217.85
5.6.20.0120.03817.85
5.6.10.0120.03318.07
5.6.00.0050.03817.89
5.5.380.0080.04416.44
5.5.370.0110.04116.66
5.5.360.0080.04216.63
5.5.350.0100.04516.57
5.5.340.0140.04116.78
5.5.330.0120.04016.82
5.5.320.0160.03516.73
5.5.310.0110.04116.98
5.5.300.0110.04116.81
5.5.290.0120.04416.79
5.5.280.0050.04616.77
5.5.270.0070.04516.89
5.5.260.0080.03616.98
5.5.250.0110.03916.80
5.5.240.0070.03716.57
5.5.230.0080.03816.44
5.5.220.0050.04316.50
5.5.210.0090.04116.52
5.5.200.0080.04216.54
5.5.190.0090.04516.60
5.5.180.0100.04116.43
5.5.170.0120.01215.61
5.5.160.0140.03016.62
5.5.150.0100.04216.31
5.5.140.0100.04316.39
5.5.130.0100.03216.55
5.5.120.0030.04416.46
5.5.110.0120.03816.38
5.5.100.0130.03616.44
5.5.90.0110.03116.25
5.5.80.0100.03916.51
5.5.70.0080.04316.57
5.5.60.0140.02816.58
5.5.50.0080.03316.49
5.5.40.0160.03016.40
5.5.30.0060.04316.33
5.5.20.0070.04416.30
5.5.10.0080.04216.36
5.5.00.0130.03716.49
5.4.450.0080.04315.97
5.4.440.0050.04615.95
5.4.430.0110.04015.89
5.4.420.0100.03316.00
5.4.410.0050.04315.93
5.4.400.0090.03815.72
5.4.390.0100.03815.83
5.4.380.0090.03915.63
5.4.370.0110.03915.73
5.4.360.0070.04015.87
5.4.350.0090.03915.82
5.4.340.0090.03915.70
5.4.330.0120.00812.40
5.4.320.0100.03815.76
5.4.310.0120.03515.66
5.4.300.0090.03815.73
5.4.290.0040.04215.81
5.4.280.0080.04215.70
5.4.270.0120.03515.88
5.4.260.0050.03215.79
5.4.250.0130.03415.61
5.4.240.0140.03515.91
5.4.230.0070.03715.73
5.4.220.0080.03715.76
5.4.210.0080.03915.83
5.4.200.0070.03815.80
5.4.190.0050.03315.70
5.4.180.0060.04215.87
5.4.170.0150.03015.79
5.4.160.0100.03815.87
5.4.150.0150.03515.84
5.4.140.0090.03814.63
5.4.130.0110.03314.54
5.4.120.0070.03914.30
5.4.110.0070.03814.63
5.4.100.0070.03914.52
5.4.90.0140.03414.36
5.4.80.0090.03514.40
5.4.70.0060.03414.51
5.4.60.0100.03514.49
5.4.50.0030.04114.52
5.4.40.0050.04014.59
5.4.30.0130.03514.50
5.4.20.0120.03314.59
5.4.10.0100.03814.58
5.4.00.0050.03814.19
5.3.290.0110.03913.81
5.3.280.0140.03713.76
5.3.270.0140.03713.93
5.3.260.0080.04313.84
5.3.250.0090.03913.78
5.3.240.0040.03713.74
5.3.230.0090.03813.75
5.3.220.0130.03813.70
5.3.210.0110.04113.75
5.3.200.0090.04413.76
5.3.190.0120.03813.80
5.3.180.0070.04513.86
5.3.170.0110.04113.77
5.3.160.0130.03513.88
5.3.150.0110.03613.86
5.3.140.0160.03313.82
5.3.130.0170.03913.80
5.3.120.0160.03513.94
5.3.110.0090.04213.89
5.3.100.0140.03513.53
5.3.90.0170.03013.50
5.3.80.0130.03513.54
5.3.70.0130.03513.39
5.3.60.0080.03913.51
5.3.50.0090.03413.41
5.3.40.0090.03913.60
5.3.30.0070.03913.53
5.3.20.0140.03513.43
5.3.10.0150.02913.32
5.3.00.0110.03813.23

preferences:
37.66 ms | 401 KiB | 5 Q