3v4l.org

run code in 300+ PHP versions simultaneously
<?php class requestObject{} class TopconAPIException extends Exception {} class CreatePortalController { private function handleError($id,$error) { $this->error->add("$id"."$error"); } private function handleException($exception) { print_R(get_class_methods($exception)); $this->error->add("0".$exception); } public function view() { set_error_handler(array($this,'handleError')); set_exception_handler(array($this,'handleException')); throw new TopconAPIException('Some 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.0060.00916.63
8.3.50.0100.00516.33
8.3.40.0130.00318.71
8.3.30.0070.00718.43
8.3.20.0040.00418.65
8.3.10.0060.00318.69
8.3.00.0070.00417.59
8.2.180.0070.00716.38
8.2.170.0140.00022.96
8.2.160.0100.00718.66
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.13
8.2.110.0060.00320.60
8.2.100.0090.00317.47
8.2.90.0040.00417.63
8.2.80.0030.00518.61
8.2.70.0040.00417.50
8.2.60.0050.00317.80
8.2.50.0040.00417.80
8.2.40.0030.00619.10
8.2.30.0060.00317.62
8.2.20.0090.00017.43
8.2.10.0080.00017.57
8.2.00.0030.00517.64
8.1.280.0070.01325.92
8.1.270.0070.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00821.96
8.1.230.0060.00622.66
8.1.220.0060.00317.74
8.1.210.0070.00418.77
8.1.200.0080.00017.11
8.1.190.0000.00917.10
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0050.00318.88
8.1.150.0000.00818.52
8.1.140.0000.00717.22
8.1.130.0030.00317.21
8.1.120.0060.00317.38
8.1.110.0070.00017.32
8.1.100.0000.00817.33
8.1.90.0040.00417.38
8.1.80.0000.00717.38
8.1.70.0000.00717.30
8.1.60.0040.00417.36
8.1.50.0000.00717.24
8.1.40.0060.00317.43
8.1.30.0040.00417.47
8.1.20.0040.00417.57
8.1.10.0040.00417.31
8.1.00.0040.00417.35
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0030.00318.58
8.0.270.0040.00417.05
8.0.260.0030.00316.61
8.0.250.0070.00016.89
8.0.240.0000.00716.85
8.0.230.0040.00416.90
8.0.220.0030.00316.82
8.0.210.0000.00716.83
8.0.200.0000.00716.88
8.0.190.0000.00816.90
8.0.180.0000.00716.68
8.0.170.0050.00316.77
8.0.160.0070.00016.80
8.0.150.0080.00016.70
8.0.140.0080.00316.62
8.0.130.0000.00613.25
8.0.120.0030.00616.82
8.0.110.0000.00716.82
8.0.100.0040.00416.74
8.0.90.0000.00816.82
8.0.80.0070.01416.73
8.0.70.0040.00416.75
8.0.60.0030.00516.71
8.0.50.0000.00916.72
8.0.30.0000.01816.91
8.0.20.0100.01317.01
8.0.10.0050.00316.96
8.0.00.0070.01016.71
7.4.330.0000.00612.89
7.4.320.0000.00616.51
7.4.300.0000.00616.48
7.4.290.0070.00016.32
7.4.280.0040.00416.49
7.4.270.0030.00316.48
7.4.260.0000.00513.16
7.4.250.0030.00616.41
7.4.240.0030.00316.48
7.4.230.0000.00716.55
7.4.220.0160.00616.24
7.4.210.0060.01216.34
7.4.200.0000.00716.37
7.4.190.0060.00316.25
7.4.160.0120.00316.38
7.4.150.0080.00916.29
7.4.140.0140.01117.86
7.4.130.0170.00316.27
7.4.120.0100.00716.37
7.4.110.0120.00916.23
7.4.100.0100.00716.40
7.4.90.0120.00616.46
7.4.80.0110.00719.39
7.4.70.0110.01116.41
7.4.60.0060.01016.26
7.4.50.0040.00016.58
7.4.40.0030.01416.11
7.4.30.0040.01616.54
7.4.00.0090.00614.66
7.3.330.0060.00012.99
7.3.320.0060.00013.20
7.3.310.0000.00716.22
7.3.300.0000.00716.16
7.3.290.0080.00616.20
7.3.280.0070.01016.15
7.3.270.0060.01216.52
7.3.260.0150.00916.27
7.3.240.0100.00716.37
7.3.230.0160.00316.19
7.3.210.0050.01816.40
7.3.200.0060.01116.31
7.3.190.0160.00016.12
7.3.180.0090.00616.28
7.3.170.0140.00416.21
7.3.160.0090.00616.41
7.3.120.0100.00714.64
7.3.110.0100.00314.56
7.3.100.0060.00914.88
7.3.90.0000.00914.65
7.3.80.0060.01014.57
7.3.70.0070.00714.79
7.3.60.0040.01114.77
7.3.50.0070.00314.70
7.3.40.0040.01114.51
7.3.30.0030.00914.68
7.3.20.0040.00416.66
7.3.10.0110.00416.45
7.3.00.0000.01516.22
7.2.330.0000.01716.28
7.2.320.0070.01016.45
7.2.310.0130.00316.37
7.2.300.0100.00916.50
7.2.290.0080.00916.29
7.2.240.0070.00714.80
7.2.230.0030.01015.02
7.2.220.0060.01014.67
7.2.210.0040.00814.99
7.2.200.0070.01014.78
7.2.190.0000.01214.74
7.2.180.0100.00714.64
7.2.170.0040.00714.93
7.2.160.0060.00914.71
7.2.150.0110.00716.74
7.2.140.0120.00016.82
7.2.130.0030.01016.87
7.2.120.0130.00316.88
7.2.110.0040.00816.52
7.2.100.0030.01316.59
7.2.90.0090.00616.83
7.2.80.0060.00616.62
7.2.70.0060.00916.85
7.2.60.0060.00616.81
7.2.50.0060.00316.67
7.2.40.0110.00416.54
7.2.30.0080.00816.58
7.2.20.0090.00016.70
7.2.10.0030.00616.90
7.2.00.0030.01016.71
7.1.330.0070.00715.70
7.1.320.0130.00015.73
7.1.310.0030.00615.59
7.1.300.0040.01215.55
7.1.290.0030.01015.64
7.1.280.0060.00615.48
7.1.270.0100.00615.73
7.1.260.0040.00715.49
7.1.250.0050.00815.77
7.1.70.0000.00816.60
7.1.60.0060.01919.25
7.1.50.0000.02216.98
7.1.00.0070.07022.34
7.0.200.0060.00316.66
7.0.140.0170.06021.97
7.0.120.0030.07322.05
7.0.60.0000.08019.97
7.0.50.0100.07017.85
7.0.40.0130.07720.05
7.0.30.0300.06720.29
7.0.20.0200.04020.23
7.0.10.0030.05720.25
7.0.00.0130.07020.23
5.6.280.0100.07020.83
5.6.210.0130.07320.58
5.6.200.0030.04718.27
5.6.190.0070.04320.48
5.6.180.0430.03720.63
5.6.170.0470.06720.50
5.6.160.0100.08320.52
5.6.150.0030.04318.15
5.6.140.0030.05018.24
5.6.130.0030.05718.17
5.6.120.0100.07021.04
5.6.110.0030.04020.91
5.6.100.0100.03721.00
5.6.90.0030.09020.98
5.6.80.0100.08020.55
5.5.350.0000.03320.40
5.5.340.0030.07317.98
5.5.330.0030.04320.25
5.5.320.2000.04020.25
5.5.310.0300.07720.28
5.5.300.0070.07318.08
5.5.290.0100.07717.97
5.5.280.0030.06320.79
5.5.270.0130.06020.65
5.5.260.0100.07320.76
5.5.250.0130.06720.63
5.5.240.0000.06720.17
5.4.450.0630.04319.41
5.4.440.0930.03319.63
5.4.430.0870.04319.34
5.4.420.0170.05319.18
5.4.410.0830.04019.06
5.4.400.1100.02719.22
5.4.390.0630.04719.00
5.4.380.0530.03719.22
5.4.370.0430.04019.26
5.4.360.0300.04319.22
5.4.350.0070.02719.13
5.4.340.0570.03719.01
5.4.320.0700.04318.86
5.4.310.0630.04019.22
5.4.300.0870.03719.04
5.4.290.0630.04018.83
5.4.280.0670.04318.99
5.4.270.0300.04318.99
5.4.260.0700.06019.13
5.4.250.0600.04018.85
5.4.240.0700.04318.95
5.4.230.0600.03019.19
5.4.220.0570.04719.21
5.4.210.0500.05319.21
5.4.200.0470.03719.21
5.4.190.0330.03719.18
5.4.180.0770.03319.03
5.4.170.0270.05319.23
5.4.160.0530.04318.81
5.4.150.0530.03319.11
5.4.140.0470.03316.43
5.4.130.0730.03016.56
5.4.120.0630.04316.45
5.4.110.0230.04316.43
5.4.100.0800.04316.56
5.4.90.0870.03316.53
5.4.80.0730.03016.59
5.4.70.0500.04016.47
5.4.60.0400.03716.41
5.4.50.0870.02716.53
5.4.40.0470.04016.54
5.4.30.0770.03716.21
5.4.20.0600.03316.32
5.4.10.0870.03316.31
5.4.00.0970.02715.93
5.3.290.0900.03715.93
5.3.280.0630.03315.93
5.3.270.0800.04015.93
5.3.260.0700.03715.93
5.3.250.0900.03715.93
5.3.240.0000.03315.93
5.3.230.0770.04015.93
5.3.220.0800.02715.93
5.3.210.0800.04015.93
5.3.200.0470.03315.93
5.3.190.0230.03715.93
5.3.180.0500.04315.93
5.3.170.0370.05315.93
5.3.160.0300.04715.93
5.3.150.0270.04315.93
5.3.140.0530.03715.93
5.3.130.0430.04315.93
5.3.120.0570.04315.93
5.3.110.0900.03015.93
5.3.100.0530.03315.93
5.3.90.0600.03715.93
5.3.80.0270.04315.93
5.3.70.0430.03719.02
5.3.60.0430.03319.02
5.3.50.0300.03019.02
5.3.40.0470.04319.02
5.3.30.0370.04019.02
5.3.20.0830.03319.02
5.3.10.0300.03319.02
5.3.00.0830.03019.02
5.2.170.0400.03019.02
5.2.160.0570.02719.02
5.2.150.0470.03019.02
5.2.140.0500.02319.02
5.2.130.0430.02319.02
5.2.120.0430.03019.02
5.2.110.0170.02719.02
5.2.100.0100.03319.02
5.2.90.0500.03719.02
5.2.80.0270.02719.02
5.2.70.0400.02319.02
5.2.60.0630.02719.02
5.2.50.0330.03719.02
5.2.40.0370.02319.02
5.2.30.0330.03019.02
5.2.20.0430.03319.02
5.2.10.0530.02719.02
5.2.00.0200.02719.02
5.1.60.0430.02319.02
5.1.50.0600.03019.02
5.1.40.0230.02719.02
5.1.30.0470.03319.02
5.1.20.0470.03019.02
5.1.10.0430.02719.02
5.1.00.0130.02019.02
5.0.50.0200.02019.02
5.0.40.0130.02319.02
5.0.30.0130.03019.02
5.0.20.0130.02319.02
5.0.10.0130.02719.02
5.0.00.0330.04319.02
4.4.90.0230.02019.02
4.4.80.0270.01319.02
4.4.70.0330.01019.02
4.4.60.0400.01319.02
4.4.50.0030.02019.02
4.4.40.0370.02319.02
4.4.30.0130.02019.02
4.4.20.0200.02019.02
4.4.10.0200.01319.02
4.4.00.0130.02319.02
4.3.110.0230.01319.02
4.3.100.0130.01319.02
4.3.90.0100.02019.02
4.3.80.0330.02719.02
4.3.70.0100.02019.02
4.3.60.0070.01719.02
4.3.50.0270.01719.02
4.3.40.0300.02319.02
4.3.30.0100.02019.02
4.3.20.0100.01319.02
4.3.10.0030.02019.02
4.3.00.0030.02019.02

preferences:
47.48 ms | 401 KiB | 5 Q