3v4l.org

run code in 300+ PHP versions simultaneously
<?php class requestObject{} class TopconAPIException extends Exception {} class CreatePortalController extends Controller { 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.70.0140.00718.29
8.3.60.0070.01418.37
8.3.50.0070.01021.90
8.3.40.0120.00318.96
8.3.30.0110.00419.01
8.3.20.0000.00820.16
8.3.10.0040.00423.52
8.3.00.0080.00022.32
8.2.180.0070.01416.38
8.2.170.0110.00422.96
8.2.160.0080.00822.27
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0030.00622.20
8.2.100.0040.01217.91
8.2.90.0030.00619.27
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0040.00418.04
8.2.50.0030.00518.07
8.2.40.0050.00318.22
8.2.30.0040.00418.14
8.2.20.0000.00817.59
8.2.10.0000.00717.79
8.2.00.0070.00017.74
8.1.280.0070.01425.92
8.1.270.0080.00022.13
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0030.00623.91
8.1.230.0070.00319.04
8.1.220.0070.00017.74
8.1.210.0030.00518.77
8.1.200.0040.00417.22
8.1.190.0040.00417.54
8.1.180.0090.00018.10
8.1.170.0000.00918.37
8.1.160.0040.00422.08
8.1.150.0000.00718.46
8.1.140.0000.00717.31
8.1.130.0030.00517.71
8.1.120.0030.00317.46
8.1.110.0040.00417.34
8.1.100.0000.00717.38
8.1.90.0070.00017.41
8.1.80.0000.00817.40
8.1.70.0030.00317.35
8.1.60.0000.00817.54
8.1.50.0030.00617.45
8.1.40.0030.00617.46
8.1.30.0030.00517.50
8.1.20.0050.00317.59
8.1.10.0050.00217.41
8.1.00.0050.00317.50
8.0.300.0000.00818.77
8.0.290.0080.00017.17
8.0.280.0070.00018.39
8.0.270.0000.00717.28
8.0.260.0060.00316.91
8.0.250.0000.00717.03
8.0.240.0040.00416.97
8.0.230.0030.00316.93
8.0.220.0070.00016.86
8.0.210.0040.00416.96
8.0.200.0070.00017.04
8.0.190.0000.00916.96
8.0.180.0000.01116.95
8.0.170.0030.00617.05
8.0.160.0040.00416.91
8.0.150.0070.00016.82
8.0.140.0070.00016.88
8.0.130.0000.00613.39
8.0.120.0040.00416.95
8.0.110.0040.00416.97
8.0.100.0040.00416.83
8.0.90.0020.00516.86
8.0.80.0120.00316.91
8.0.70.0040.00416.90
8.0.60.0000.00716.88
8.0.50.0030.00516.97
8.0.30.0100.00717.00
8.0.20.0100.00917.40
8.0.10.0080.00016.90
8.0.00.0100.00916.77
7.4.330.0000.00515.00
7.4.320.0030.00316.55
7.4.300.0030.00316.45
7.4.290.0000.00716.45
7.4.280.0000.00616.34
7.4.270.0030.00316.64
7.4.260.0030.00316.45
7.4.250.0040.00416.41
7.4.240.0020.00516.47
7.4.230.0030.00316.62
7.4.220.0130.01316.59
7.4.210.0050.00916.47
7.4.200.0070.00016.64
7.4.190.0040.00416.69
7.4.160.0100.00616.41
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0100.01016.48
7.4.120.0060.01116.60
7.4.110.0040.01316.55
7.4.100.0140.00316.49
7.4.90.0110.00616.74
7.4.80.0030.01619.39
7.4.70.0110.01216.51
7.4.60.0070.01116.45
7.4.50.0000.00816.49
7.4.40.0040.00722.77
7.4.30.0060.01616.58
7.4.00.0060.00914.87
7.3.330.0000.00513.19
7.3.320.0000.00513.19
7.3.310.0030.00316.35
7.3.300.0000.00716.34
7.3.290.0120.00316.33
7.3.280.0080.00816.28
7.3.270.0030.01417.40
7.3.260.0180.00316.34
7.3.250.0120.00616.37
7.3.240.0120.00616.53
7.3.230.0090.01216.43
7.3.210.0070.01016.38
7.3.200.0090.00616.43
7.3.190.0160.00716.41
7.3.180.0080.00816.39
7.3.170.0070.01016.54
7.3.160.0060.01216.54
7.3.120.0060.00614.73
7.3.10.0130.01016.42
7.3.00.0170.00416.24
7.2.330.0110.00616.27
7.2.320.0100.00716.52
7.2.310.0100.00716.59
7.2.300.0120.00616.43
7.2.290.0060.00916.42
7.2.130.0130.00916.60
7.2.120.0130.00416.68
7.2.110.0160.00716.43
7.2.100.0090.00716.38
7.2.90.0200.00716.49
7.2.80.0150.00916.36
7.2.70.0280.00816.63
7.2.60.0100.00716.49
7.2.50.0150.01016.57
7.2.40.0210.00516.57
7.2.30.0110.00916.57
7.2.20.0110.00616.60
7.2.10.0110.01016.52
7.2.00.0260.00916.71
7.1.250.0110.00915.66
7.1.200.0060.00615.54
7.1.100.0050.00517.89
7.1.70.0050.00517.04
7.1.60.0110.01419.24
7.1.50.0230.00934.49
7.1.00.0070.07322.51
7.0.200.0000.00816.50
7.0.140.0030.07322.07
7.0.60.0070.06319.87
7.0.50.0100.04017.86
7.0.40.0100.08720.14
7.0.30.0470.04720.16
7.0.20.0230.08020.14
7.0.10.0070.06320.06
7.0.00.0230.07320.19
5.6.280.0130.06320.84
5.6.210.0070.08020.58
5.6.200.0070.08318.19
5.6.190.0070.05320.67
5.6.180.3800.04320.49
5.6.170.0230.03720.47
5.6.160.0130.06320.57
5.6.150.0000.04318.14
5.6.140.0000.04718.16
5.6.130.0030.06018.28
5.6.120.0030.08721.07
5.6.110.0030.09020.99
5.6.100.0200.08021.09
5.6.90.0070.06721.11
5.6.80.0030.05020.38
5.6.70.3600.04020.39
5.5.350.0330.06320.40
5.5.340.0100.04717.96
5.5.330.0100.07720.21
5.5.320.0230.07720.36
5.5.310.0270.07020.24
5.5.300.0070.08017.94
5.5.290.0070.08017.98
5.5.280.0000.04720.79
5.5.270.0030.05020.66
5.5.260.0100.07320.88
5.5.250.0030.07720.52
5.5.240.0270.03020.20
5.4.450.0330.06019.18
5.4.440.0200.04319.31
5.4.430.0100.04719.52
5.4.420.0170.04019.17
5.4.410.0270.06319.29
5.4.400.0200.03719.32
5.4.390.0200.03718.98
5.4.380.0130.04719.08
5.4.370.0300.03719.22
5.4.360.0230.03719.23
5.4.350.0130.04019.24
5.4.340.0230.05718.87
5.4.320.0130.04719.25
5.4.310.0200.08019.09
5.4.300.0270.06019.08
5.4.290.0200.03719.21
5.4.280.0230.03319.22
5.4.270.0200.06019.07
5.4.260.0230.06718.98
5.4.250.0200.06319.24
5.4.240.0300.05019.21
5.4.230.0270.06718.86
5.4.220.0230.05018.98
5.4.210.0270.04719.05
5.4.200.0330.04319.05
5.4.190.0200.05319.14
5.4.180.0300.06718.98
5.4.170.0230.07319.14
5.4.160.0330.04318.97
5.4.150.0200.07019.04
5.4.140.0230.05316.51
5.4.130.0270.06316.56
5.4.120.0200.07316.39
5.4.110.0130.05716.61
5.4.100.0230.07316.47
5.4.90.0170.07716.50
5.4.80.0300.06016.22
5.4.70.0200.06716.58
5.4.60.0300.04016.49
5.4.50.0300.03316.51
5.4.40.0270.04016.54
5.4.30.0130.04016.52
5.4.20.0200.07316.52
5.4.10.0230.03016.37
5.4.00.0170.06715.95
5.3.290.0200.05014.73
5.3.280.0130.04714.63
5.3.270.0200.07014.78
5.3.260.0270.06714.56
5.3.250.0230.04314.61
5.3.240.0200.04714.59
5.3.230.0230.04714.63
5.3.220.0230.07314.66
5.3.210.0330.07014.73
5.3.200.0170.05314.66
5.3.190.0230.05314.55
5.3.180.0230.07314.55
5.3.170.0200.06714.50
5.3.160.0230.04014.82
5.3.150.0200.07014.70
5.3.140.0370.04014.62
5.3.130.0230.04314.68
5.3.120.0200.04314.67
5.3.110.0170.04314.79
5.3.100.0270.05314.21
5.3.90.0270.04314.12
5.3.80.0230.04014.26
5.3.70.0170.05313.94
5.3.60.0230.04013.94
5.3.50.0300.07013.87
5.3.40.0270.06714.04
5.3.30.0230.06713.93
5.3.20.0270.03013.76
5.3.10.0330.06013.58
5.3.00.0330.05713.73
5.2.170.0130.06712.73
5.2.160.0200.04712.73
5.2.150.0130.06312.73
5.2.140.0200.04012.73
5.2.130.0130.06312.73
5.2.120.0270.04712.73
5.2.110.0200.06012.73
5.2.100.0170.05712.73
5.2.90.0130.05312.73
5.2.80.0200.05712.73
5.2.70.0300.04312.73
5.2.60.0300.03712.73
5.2.50.0200.03712.73
5.2.40.0100.03012.73
5.2.30.0230.03312.73
5.2.20.0200.03012.73
5.2.10.0170.05712.73
5.2.00.0230.05012.73
5.1.60.0130.05012.73
5.1.50.0200.04712.73
5.1.40.0100.03712.73
5.1.30.0130.04012.73
5.1.20.0170.04312.73
5.1.10.0130.03012.73
5.1.00.0130.02312.73
5.0.50.0070.02312.73
5.0.40.0130.04012.73
5.0.30.0100.04312.73
5.0.20.0070.02312.73
5.0.10.0070.02712.73
5.0.00.0100.04712.73
4.4.90.0070.02012.73
4.4.80.0070.02012.73
4.4.70.0100.03312.73
4.4.60.0100.02012.73
4.4.50.0100.03712.73
4.4.40.0070.06012.73
4.4.30.0070.02312.73
4.4.20.0100.02312.73
4.4.10.0070.01312.73
4.4.00.0030.03012.73
4.3.110.0070.03712.73
4.3.100.0100.03012.73
4.3.90.0070.01712.73
4.3.80.0070.02712.73
4.3.70.0030.02312.73
4.3.60.0070.01712.73
4.3.50.0030.04012.73
4.3.40.0070.04312.73
4.3.30.0070.03312.73
4.3.20.0030.02012.73
4.3.10.0070.02012.73
4.3.00.0070.03312.73

preferences:
62.33 ms | 401 KiB | 5 Q