3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NewError implements Throwable { //implemented methods /*** * Gets the message * @link http://php.net/manual/en/throwable.getmessage.php * @return string * @since 7.0 */ public function getMessage() { // TODO: Implement getMessage() method. } /** * Gets the exception code * @link http://php.net/manual/en/throwable.getcode.php * @return int <p> * Returns the exception code as integer in * {@see Exception} but possibly as other type in * {@see Exception} descendants (for example as * string in {@see PDOException}). * </p> * @since 7.0 */ public function getCode() { // TODO: Implement getCode() method. } /** * Gets the file in which the exception occurred * @link http://php.net/manual/en/throwable.getfile.php * @return string Returns the name of the file from which the object was thrown. * @since 7.0 */ public function getFile() { // TODO: Implement getFile() method. } /** * Gets the line on which the object was instantiated * @link http://php.net/manual/en/throwable.getline.php * @return int Returns the line number where the thrown object was instantiated. * @since 7.0 */ public function getLine() { // TODO: Implement getLine() method. } /** * Gets the stack trace * @link http://php.net/manual/en/throwable.gettrace.php * @return array <p> * Returns the stack trace as an array in the same format as * {@see debug_backtrace()}. * </p> * @since 7.0 */ public function getTrace() { // TODO: Implement getTrace() method. } /** * Gets the stack trace as a string * @link http://php.net/manual/en/throwable.gettraceasstring.php * @return string Returns the stack trace as a string. * @since 7.0 */ public function getTraceAsString() { // TODO: Implement getTraceAsString() method. } /** * Returns the previous Throwable * @link http://php.net/manual/en/throwable.getprevious.php * @return Throwable Returns the previous {@see Throwable} if available, or <b>NULL</b> otherwise. * @since 7.0 */ public function getPrevious() { // TODO: Implement getPrevious() method. } /** * Gets a string representation of the thrown object * @link http://php.net/manual/en/throwable.tostring.php * @return string <p>Returns the string representation of the thrown object.</p> * @since 7.0 */ public function __toString() { // TODO: Implement __toString() method. } } try{ throw new NewError(); //false-positive }catch(NewError $e){ //false-positive echo $e->getMessage(); }

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.0150.00816.63
8.3.50.0130.00921.92
8.3.40.0170.00018.84
8.3.30.0070.00718.54
8.3.20.0070.00020.42
8.3.10.0040.00421.95
8.3.00.0040.00419.56
8.2.180.0070.01118.29
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00917.63
8.2.110.0110.00022.08
8.2.100.0040.00817.80
8.2.90.0000.00819.14
8.2.80.0000.00817.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.01119.37
8.2.30.0040.00420.52
8.2.20.0000.00817.52
8.2.10.0030.00617.92
8.2.00.0000.00818.00
8.1.280.0120.00325.92
8.1.270.0070.01123.97
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.54
8.1.230.0090.00319.44
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0100.00017.36
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0000.00920.35
8.1.160.0000.00721.95
8.1.150.0000.00818.79
8.1.140.0050.00319.41
8.1.130.0040.00417.70
8.1.120.0030.00317.50
8.1.110.0000.00817.41
8.1.100.0040.00417.34
8.1.90.0040.00417.39
8.1.80.0000.00817.47
8.1.70.0070.00017.30
8.1.60.0000.00817.56
8.1.50.0060.00317.43
8.1.40.0080.00017.36
8.1.30.0030.00517.64
8.1.20.0000.00817.50
8.1.10.0080.00017.42
8.1.00.0030.00617.29
8.0.300.0020.00518.77
8.0.290.0060.00316.63
8.0.280.0070.00018.46
8.0.270.0070.00017.13
8.0.260.0000.00717.22
8.0.250.0040.00416.86
8.0.240.0030.00316.90
8.0.230.0000.00716.96
8.0.220.0030.00416.81
8.0.210.0030.00316.80
8.0.200.0030.00316.97
8.0.190.0000.00816.83
8.0.180.0000.00716.93
8.0.170.0040.00416.89
8.0.160.0040.00316.74
8.0.150.0040.00416.73
8.0.140.0000.00716.75
8.0.130.0030.00313.27
8.0.120.0040.00416.84
8.0.110.0000.00816.94
8.0.100.0040.00416.88
8.0.90.0040.00416.73
8.0.80.0060.00916.82
8.0.70.0000.00716.96
8.0.60.0000.00717.02
8.0.50.0080.00016.80
8.0.30.0120.00716.96
8.0.20.0100.00917.40
8.0.10.0000.00717.05
8.0.00.0120.00616.64
7.4.330.0030.00315.09
7.4.320.0000.00616.50
7.4.300.0030.00316.52
7.4.290.0000.00716.43
7.4.280.0080.00016.45
7.4.270.0040.00416.56
7.4.260.0030.00316.45
7.4.250.0080.00016.44
7.4.240.0020.00516.50
7.4.230.0030.00316.53
7.4.220.0060.01316.63
7.4.210.0030.01016.55
7.4.200.0000.00716.25
7.4.160.0070.01616.43
7.4.150.0140.00417.40
7.4.140.0110.00717.86
7.4.130.0080.01316.43
7.4.120.0070.01016.50
7.4.110.0070.01016.49
7.4.100.0060.01316.45
7.4.90.0100.00716.49
7.4.80.0140.00319.39
7.4.70.0140.00916.64
7.4.60.0060.00916.41
7.4.50.0060.00316.59
7.4.40.0120.01116.29
7.4.30.0110.01116.61
7.4.00.0070.00714.79
7.3.330.0030.00313.25
7.3.320.0000.00513.31
7.3.310.0000.00716.34
7.3.300.0040.00416.11
7.3.290.0080.00816.21
7.3.280.0100.00616.27
7.3.270.0140.00417.40
7.3.260.0110.00716.51
7.3.250.0120.00716.38
7.3.240.0090.01316.30
7.3.230.0030.01316.43
7.3.210.0060.00916.23
7.3.200.0030.01316.40
7.3.190.0070.01016.36
7.3.180.0100.00616.37
7.3.170.0030.01316.41
7.3.160.0060.00916.37
7.3.10.0060.01016.27
7.3.00.0030.00716.38
7.2.330.0200.01016.36
7.2.320.0150.00316.31
7.2.310.0120.00616.61
7.2.300.0100.00716.45
7.2.290.0130.01016.52
7.2.130.0080.00816.48
7.2.120.0060.00816.59
7.2.110.0070.00316.67
7.2.100.0070.00316.45
7.2.90.0000.01116.76
7.2.80.0100.00316.86
7.2.70.0090.00316.73
7.2.60.0030.01116.69
7.2.50.0090.00616.54
7.2.40.0000.00816.57
7.2.30.0060.00316.77
7.2.20.0070.00716.43
7.2.10.0000.01316.44
7.2.00.0080.00718.08
7.1.250.0030.00715.66
7.1.200.0130.00615.57
7.1.100.0000.01117.94
7.1.70.0110.00416.99
7.1.60.0140.01019.11
7.1.50.0230.01634.80
7.1.00.0070.07322.31
7.0.200.0250.00614.67
7.0.60.0100.06019.93
7.0.50.0000.07717.84
7.0.40.0030.04320.19
7.0.30.0300.04020.34
7.0.20.0200.06020.10
7.0.10.0200.06020.11
7.0.00.0070.08720.26
5.6.280.0000.03321.08
5.6.210.0100.08320.45
5.6.200.0100.04718.29
5.6.190.0100.07020.57
5.6.180.3100.04020.45
5.6.170.0270.05320.62
5.6.160.0070.06320.51
5.6.150.0000.04318.27
5.6.140.0130.07318.18
5.6.130.0030.05318.29
5.6.120.0100.08020.98
5.6.110.0070.08321.02
5.6.100.0070.04021.05
5.6.90.0200.06020.97
5.6.80.0100.07020.54
5.6.70.0070.03720.35
5.5.350.0270.07320.31
5.5.340.0070.04017.97
5.5.330.0100.08020.42
5.5.320.0270.04020.35
5.5.310.0270.08320.30
5.5.300.0170.03717.95
5.5.290.0030.05318.01
5.5.280.0030.05020.85
5.5.270.0100.08020.66
5.5.260.0030.07720.77
5.5.250.0070.08320.58
5.5.240.0130.08020.27
5.4.450.0600.06319.58
5.4.440.0070.06019.25
5.4.430.0130.05319.33
5.4.420.0330.05319.40
5.4.410.0730.06319.45
5.4.400.0570.05719.29
5.4.390.0870.05719.25
5.4.380.0870.04319.29
5.4.370.0870.04719.32
5.4.360.0830.05319.25
5.4.350.0670.06019.00
5.4.340.0570.09018.95
5.4.320.0670.05018.81
5.4.310.0900.06019.25
5.4.300.0730.04719.22
5.4.290.0800.05719.28
5.4.280.0730.05019.09
5.4.270.0700.05019.14
5.4.260.0030.07019.25
5.4.250.0130.04719.13
5.4.240.0470.07318.84
5.4.230.0100.05318.94
5.4.220.0170.05019.04
5.4.210.0100.05018.80
5.4.200.0100.06319.36
5.4.190.0100.06019.09
5.4.180.0100.07319.21
5.4.170.0700.05319.04
5.4.160.0730.05019.12
5.4.150.0670.05719.08
5.4.140.0700.05016.34
5.4.130.0600.05316.72
5.4.120.0730.04716.55
5.4.110.0670.07016.52
5.4.100.0200.04716.60
5.4.90.0470.06016.59
5.4.80.0670.05016.18
5.4.70.0800.06016.59
5.4.60.0600.05716.17
5.4.50.0670.05016.49
5.4.40.0700.04316.15
5.4.30.0700.05316.59
5.4.20.0130.05316.49
5.4.10.0070.05316.57
5.4.00.0530.05715.89

preferences:
47.61 ms | 401 KiB | 5 Q