3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UberException extends Exception { public function __construct() { $refTrace = new ReflectionProperty('Exception', 'trace'); $refTrace->setAccessible(true); $refTrace->setValue($this, array( array('file' => 'data.php', 'class' => 'Uber', 'line' => 20, 'function' => 'super', 'args' => array()), array('file' => 'data.php', 'class' => 'Uber', 'line' => 20, 'function' => 'super', 'args' => array()) )); $this->file = 'test.php'; $this->line = 5; } } function test() { throw new UberException(); } try { test(); } catch (Exception $e) { var_dump($e->getTrace()); throw $e; }

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.70.0060.00916.63
8.3.60.0180.00317.00
8.3.50.0120.00822.04
8.3.40.0040.01418.82
8.3.30.0040.01119.00
8.3.20.0040.00420.36
8.3.10.0080.00023.66
8.3.00.0040.00418.83
8.2.180.0060.01217.00
8.2.170.0080.00822.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.85
8.2.110.0090.00022.25
8.2.100.0110.00017.72
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0030.00521.14
8.2.30.0060.00318.16
8.2.20.0030.00517.69
8.2.10.0000.00817.94
8.2.00.0030.00517.80
8.1.280.0140.00725.92
8.1.270.0090.00023.97
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0000.00823.79
8.1.230.0040.00719.16
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0000.01017.35
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0030.00518.54
8.1.160.0040.00422.02
8.1.150.0030.00518.64
8.1.140.0060.00317.41
8.1.130.0030.00317.75
8.1.120.0050.00317.37
8.1.110.0000.00717.48
8.1.100.0000.00717.46
8.1.90.0040.00417.50
8.1.80.0040.00417.41
8.1.70.0070.00017.37
8.1.60.0060.00317.48
8.1.50.0040.00417.54
8.1.40.0000.00817.58
8.1.30.0030.00517.68
8.1.20.0020.00517.60
8.1.10.0030.00617.54
8.1.00.0000.00817.38
8.0.300.0070.00018.77
8.0.290.0040.00417.18
8.0.280.0070.00018.39
8.0.270.0030.00617.18
8.0.260.0030.00517.11
8.0.250.0030.00316.98
8.0.240.0040.00416.98
8.0.230.0000.00816.91
8.0.220.0070.00016.78
8.0.210.0030.00316.89
8.0.200.0040.00416.99
8.0.190.0040.00416.96
8.0.180.0040.00416.87
8.0.170.0030.00516.85
8.0.160.0040.00416.91
8.0.150.0070.00017.00
8.0.140.0050.00216.91
8.0.130.0000.00613.43
8.0.120.0060.00316.98
8.0.110.0040.00416.86
8.0.100.0050.00216.96
8.0.90.0030.00516.99
8.0.80.0060.00916.93
8.0.70.0030.00516.96
8.0.60.0000.00716.81
8.0.50.0050.00516.99
8.0.30.0100.01217.11
8.0.20.0130.00717.40
8.0.10.0040.00417.06
8.0.00.0100.01016.72
7.4.330.0050.00015.12
7.4.320.0060.00016.63
7.4.300.0060.00316.49
7.4.290.0000.00716.41
7.4.280.0030.00716.52
7.4.270.0040.00416.62
7.4.260.0030.00616.41
7.4.250.0000.00716.38
7.4.240.0010.00616.48
7.4.230.0000.00716.26
7.4.220.0090.00916.56
7.4.210.0050.00916.54
7.4.200.0000.00716.60
7.4.190.0000.00716.56
7.4.160.0100.00616.50
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0100.00916.57
7.4.120.0120.00816.64
7.4.110.0090.00916.48
7.4.100.0160.00716.59
7.4.90.0150.00316.49
7.4.80.0140.00319.39
7.4.70.0050.01316.73
7.4.60.0080.01216.34
7.4.50.0040.00016.41
7.4.40.0090.00616.51
7.4.30.0040.01116.39
7.4.00.0110.00715.03
7.3.330.0000.00613.35
7.3.320.0040.00413.27
7.3.310.0000.00716.41
7.3.300.0030.00316.38
7.3.290.0120.00916.41
7.3.280.0120.00816.38
7.3.270.0060.01317.40
7.3.260.0090.01216.45
7.3.250.0110.00816.39
7.3.240.0060.01216.51
7.3.230.0110.00716.44
7.3.210.0030.01616.48
7.3.200.0090.00619.39
7.3.190.0130.00716.56
7.3.180.0060.00916.47
7.3.170.0060.01116.45
7.3.160.0090.00616.44
7.3.120.0120.00415.05
7.3.10.0050.00716.30
7.3.00.0100.00416.62
7.2.330.0130.00516.67
7.2.320.0090.00816.37
7.2.310.0160.00616.49
7.2.300.0100.00716.60
7.2.290.0140.00316.65
7.2.130.0080.00616.74
7.2.120.0020.01216.74
7.2.110.0080.01016.75
7.2.100.0080.00516.78
7.2.90.0100.00616.73
7.2.80.0100.00616.92
7.2.70.0050.00916.66
7.2.60.0100.00316.67
7.2.50.0040.00816.71
7.2.40.0020.00916.85
7.2.30.0090.00816.73
7.2.20.0100.00316.82
7.2.10.0040.01116.63
7.2.00.0080.00817.49
7.1.250.0050.00615.59
7.1.200.0070.00415.70
7.1.100.0070.00718.06
7.1.70.0040.00416.86
7.1.60.0030.02119.46
7.1.50.0070.01516.93
7.1.00.0030.07722.44
7.0.200.0040.00716.65
7.0.140.0130.06721.92
7.0.60.0230.07321.88
7.0.50.0070.08017.89
7.0.40.0070.04320.11
7.0.30.0230.04020.12
7.0.20.0300.04320.07
7.0.10.0030.04320.30
7.0.00.0100.06320.20
5.6.280.0070.07021.14
5.6.210.0070.08720.75
5.6.200.0130.08018.15
5.6.190.0000.05020.61
5.6.180.0300.06320.48
5.6.170.0270.08020.47
5.6.160.0000.06020.47
5.6.150.0070.03718.19
5.6.140.0030.04018.17
5.6.130.0070.05018.23
5.6.120.0070.08720.96
5.6.110.0030.08020.91
5.6.100.0200.04020.99
5.6.90.0100.05321.14
5.6.80.0170.06320.40
5.5.350.3070.04320.45
5.5.340.0070.08718.08
5.5.330.0130.04020.45
5.5.320.0270.07720.30
5.5.310.0300.04720.51
5.5.300.0100.07718.02
5.5.290.0100.07317.93
5.5.280.0070.05320.86
5.5.270.0000.04320.85
5.5.260.0170.07020.74
5.5.250.0170.07320.63
5.5.240.0100.08720.13
5.4.450.0330.07719.55
5.4.440.0400.06319.41
5.4.430.0330.07319.47
5.4.420.0270.08319.27
5.4.410.0270.04019.07
5.4.400.0370.06019.00
5.4.390.0300.06718.85
5.4.380.0300.04319.21
5.4.370.0300.03318.89
5.4.360.0270.04719.17
5.4.350.0270.07019.23
5.4.340.0230.05019.22
5.4.320.0330.07319.13
5.4.310.0400.06019.13
5.4.300.0300.05019.15
5.4.290.0230.05319.08
5.4.280.0300.04718.95
5.4.270.0300.03319.06
5.4.260.0370.04718.95
5.4.250.0300.03719.19
5.4.240.0270.04319.23
5.4.230.0300.03718.98
5.4.220.0300.06319.24
5.4.210.0330.05718.86
5.4.200.0430.05719.05
5.4.190.0270.03319.05
5.4.180.0330.05718.98
5.4.170.0270.05019.12
5.4.160.0300.06318.96
5.4.150.0370.06719.14
5.4.140.0300.04716.51
5.4.130.0200.03716.40
5.4.120.0330.03316.37
5.4.110.0370.05016.44
5.4.100.0270.04716.61
5.4.90.0370.06316.61
5.4.80.0270.05016.55
5.4.70.0400.04716.49
5.4.60.0300.06716.48
5.4.50.0300.04016.43
5.4.40.0330.06716.24
5.4.30.0300.06716.32
5.4.20.0370.06716.52
5.4.10.0300.06716.25
5.4.00.0270.04315.73
5.3.290.0330.07314.67
5.3.280.0270.06314.61
5.3.270.0400.06714.52
5.3.260.0270.05714.70
5.3.250.0330.06014.70
5.3.240.0270.04314.73
5.3.230.0130.04714.60
5.3.220.0470.06014.80
5.3.210.0300.07714.57
5.3.200.0300.06714.58
5.3.190.0270.05714.74
5.3.180.0330.06714.80
5.3.170.0370.06314.57
5.3.160.0300.07014.69
5.3.150.0370.04014.70
5.3.140.0270.04014.49
5.3.130.0270.03714.64
5.3.120.0270.07714.48
5.3.110.0330.07014.56
5.3.100.0230.04714.04
5.3.90.0300.07014.11
5.3.80.0330.06714.11
5.3.70.0330.06714.11
5.3.60.0370.03714.13
5.3.50.0270.06714.12
5.3.40.0370.06714.01
5.3.30.0300.06013.87
5.3.20.0230.03713.68
5.3.10.0430.05013.76
5.3.00.0300.06313.73
5.2.170.0300.05712.78
5.2.160.0200.05012.78
5.2.150.0300.04312.78
5.2.140.0270.04312.78
5.2.130.0170.03012.78
5.2.120.0230.02712.78
5.2.110.0200.03712.78
5.2.100.0200.03012.78
5.2.90.0200.04012.78
5.2.80.0330.03312.78
5.2.70.0230.06312.78
5.2.60.0230.04712.78
5.2.50.0230.05712.78
5.2.40.0230.04012.78
5.2.30.0300.04712.78
5.2.20.0300.04712.78
5.2.10.0200.05312.78
5.2.00.0200.06012.78
5.1.60.0200.05312.78
5.1.50.0300.03012.78
5.1.40.0200.02312.78
5.1.30.0130.03312.78
5.1.20.0200.02712.78
5.1.10.0230.05312.78
5.1.00.0170.04712.78
5.0.50.0100.02312.78
5.0.40.0130.03312.78
5.0.30.0170.05712.78
5.0.20.0230.03012.78
5.0.10.0130.03312.78
5.0.00.0130.06312.78
4.4.90.0200.02312.78
4.4.80.0130.03012.78
4.4.70.0130.02312.78
4.4.60.0130.02312.78
4.4.50.0170.03012.78
4.4.40.0130.02712.78
4.4.30.0100.01712.78
4.4.20.0130.01312.78
4.4.10.0100.02012.78
4.4.00.0100.03712.78
4.3.110.0100.03712.78
4.3.100.0130.03312.78
4.3.90.0100.03312.78
4.3.80.0100.03712.78
4.3.70.0100.02012.78
4.3.60.0170.02312.78
4.3.50.0130.02712.78
4.3.40.0030.05312.78
4.3.30.0100.03312.78
4.3.20.0100.03312.78
4.3.10.0100.03012.78
4.3.00.0070.03012.78

preferences:
49.67 ms | 401 KiB | 5 Q