3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* final public ExceptionException::getPrevious ( void ) final public stringException::getFile ( 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) { echo 'exception \'' . get_class($e) . '\' with message \'' . $e->getMessage() . '\' in \'' . $e->getFile() . '\':' . $e->getLine() . PHP_EOL . 'Stack trace:' . PHP_EOL; echo $e->getTraceAsString(); echo PHP_EOL . '-----------------------' . PHP_EOL; echo $e->__toString(); }

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.0180.00018.40
8.3.50.0120.00821.08
8.3.40.0120.00618.99
8.3.30.0030.01020.36
8.3.20.0050.00220.30
8.3.10.0040.00422.09
8.3.00.0040.00422.46
8.2.180.0170.00716.88
8.2.170.0070.00722.96
8.2.160.0000.01322.21
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.66
8.2.110.0060.00320.92
8.2.100.0110.00018.04
8.2.90.0030.00618.28
8.2.80.0000.00818.05
8.2.70.0040.00417.63
8.2.60.0090.00018.03
8.2.50.0000.00818.10
8.2.40.0030.00518.09
8.2.30.0040.00419.33
8.2.20.0070.00017.73
8.2.10.0050.00217.76
8.2.00.0000.01117.67
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.96
8.1.230.0000.01120.95
8.1.220.0080.00017.74
8.1.210.0070.00020.10
8.1.200.0040.00417.36
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00318.39
8.1.160.0080.00018.96
8.1.150.0000.00718.61
8.1.140.0040.00417.47
8.1.130.0030.00317.88
8.1.120.0000.00717.47
8.1.110.0050.00217.48
8.1.100.0070.00317.34
8.1.90.0040.00417.50
8.1.80.0000.00717.53
8.1.70.0030.00317.39
8.1.60.0060.00317.50
8.1.50.0050.00317.45
8.1.40.0040.00417.57
8.1.30.0040.00417.62
8.1.20.0050.00317.57
8.1.10.0060.00317.61
8.1.00.0030.00617.50
8.0.300.0000.00720.23
8.0.290.0000.00816.75
8.0.280.0030.00318.43
8.0.270.0040.00417.27
8.0.260.0040.00416.77
8.0.250.0000.00716.87
8.0.240.0030.00516.99
8.0.230.0040.00416.94
8.0.220.0040.00316.95
8.0.210.0000.00717.02
8.0.200.0060.00016.93
8.0.190.0040.00417.03
8.0.180.0040.00416.88
8.0.170.0000.00816.89
8.0.160.0000.00716.86
8.0.150.0030.00616.90
8.0.140.0030.00616.95
8.0.130.0070.00013.43
8.0.120.0050.00316.96
8.0.110.0080.00016.98
8.0.100.0040.00416.99
8.0.90.0080.00316.94
8.0.80.0100.00716.89
8.0.70.0050.00216.82
8.0.60.0040.00416.96
8.0.50.0040.00416.93
8.0.30.0130.00616.94
8.0.20.0150.00417.40
8.0.10.0050.00216.88
8.0.00.0130.01616.80
7.4.330.0020.00215.00
7.4.320.0060.00016.51
7.4.300.0040.00416.59
7.4.290.0000.00716.53
7.4.280.0050.00316.65
7.4.270.0030.00316.54
7.4.260.0030.00313.25
7.4.250.0040.00416.58
7.4.240.0030.00316.57
7.4.230.0000.00716.35
7.4.220.0110.00716.39
7.4.210.0090.00816.60
7.4.200.0030.00316.38
7.4.190.0000.00716.65
7.4.160.0030.01316.61
7.4.150.0040.01417.40
7.4.140.0110.01017.86
7.4.130.0060.01116.61
7.4.120.0110.00916.64
7.4.110.0100.00616.57
7.4.100.0080.00816.47
7.4.90.0110.00816.59
7.4.80.0090.00619.39
7.4.70.0070.01016.46
7.4.60.0200.00616.43
7.4.50.0040.00416.25
7.4.40.0100.00722.77
7.4.30.0140.00516.64
7.4.10.0070.00915.45
7.4.00.0100.00615.23
7.3.330.0050.00013.43
7.3.320.0000.00513.53
7.3.310.0000.00716.42
7.3.300.0040.00416.47
7.3.290.0070.01016.45
7.3.280.0080.01016.46
7.3.270.0140.00317.40
7.3.260.0110.00616.45
7.3.250.0130.00516.57
7.3.240.0120.00616.39
7.3.230.0040.01316.64
7.3.210.0090.00916.43
7.3.200.0060.01219.39
7.3.190.0100.00716.57
7.3.180.0030.01216.71
7.3.170.0100.01016.45
7.3.160.0060.01016.42
7.3.130.0050.01315.38
7.3.120.0100.00815.23
7.3.110.0040.01315.30
7.3.100.0020.01315.32
7.3.90.0060.00715.14
7.3.80.0030.01015.28
7.3.70.0050.00715.19
7.3.60.0020.01115.32
7.3.50.0040.00815.21
7.3.40.0080.00615.22
7.3.30.0070.00415.16
7.3.20.0050.00817.04
7.3.10.0040.01017.13
7.3.00.0050.00817.04
7.2.330.0060.01216.35
7.2.320.0030.02016.43
7.2.310.0070.01416.73
7.2.300.0040.01116.37
7.2.290.0090.00916.77
7.2.260.0050.01515.67
7.2.250.0080.00715.37
7.2.240.0090.00615.40
7.2.230.0070.00915.13
7.2.220.0070.00715.36
7.2.210.0060.00915.42
7.2.200.0030.01215.31
7.2.190.0080.00615.44
7.2.180.0060.00815.28
7.2.170.0060.00815.42
7.2.160.0030.00915.52
7.2.150.0020.01117.38
7.2.140.0030.01017.35
7.2.130.0040.01017.28
7.2.120.0110.00317.42
7.2.110.0070.00717.40
7.2.100.0080.00517.36
7.2.90.0070.00917.33
7.2.80.0050.01017.38
7.2.70.0100.00717.33
7.2.60.0040.00917.14
7.2.50.0030.01117.28
7.2.40.0040.00917.33
7.2.30.0050.00617.37
7.2.20.0040.01017.26
7.2.10.0020.00817.46
7.2.00.0070.00517.77
7.1.330.0040.00916.25
7.1.320.0090.00516.23
7.1.310.0070.00616.25
7.1.300.0080.00516.11
7.1.290.0040.00716.18
7.1.280.0050.00816.20
7.1.270.0040.00816.20
7.1.260.0050.00816.14
7.1.250.0040.00716.24
7.1.240.0050.00716.21
7.1.230.0050.00616.17
7.1.220.0070.00616.22
7.1.210.0050.00916.34
7.1.200.0060.00616.15
7.1.190.0030.00916.36
7.1.180.0080.00816.24
7.1.170.0030.01016.28
7.1.160.0030.00916.30
7.1.150.0050.00716.34
7.1.140.0030.00716.34
7.1.130.0050.00916.19
7.1.120.0060.00616.34
7.1.110.0010.01016.38
7.1.100.0020.01116.79
7.1.90.0060.00616.29
7.1.80.0100.00216.34
7.1.70.0040.00716.43
7.1.60.0030.01117.04
7.1.50.0070.01016.34
7.1.40.0050.00616.39
7.1.30.0090.00616.39
7.1.20.0040.01016.23
7.1.10.0060.00716.29
7.1.00.0050.02217.88
7.0.330.0030.01016.04
7.0.320.0020.01015.84
7.0.310.0050.00915.96
7.0.300.0100.00315.85
7.0.290.0050.00615.92
7.0.280.0040.00815.80
7.0.270.0050.00615.92
7.0.260.0050.00815.99
7.0.250.0060.00816.02
7.0.240.0090.00615.97
7.0.230.0050.00815.88
7.0.220.0020.01015.96
7.0.210.0000.01216.01
7.0.200.0040.00716.09
7.0.190.0070.00616.00
7.0.180.0040.00916.09
7.0.170.0040.00716.03
7.0.160.0050.00816.04
7.0.150.0050.00615.87
7.0.140.0030.02517.53
7.0.130.0040.01016.09
7.0.120.0080.00315.86
7.0.110.0050.00915.78
7.0.100.0090.01716.89
7.0.90.0080.02316.96
7.0.80.0060.01616.94
7.0.70.0070.02517.00
7.0.60.0130.02116.86
7.0.50.0090.02016.99
7.0.40.0050.02115.48
7.0.30.0050.02215.48
7.0.20.0030.02715.48
7.0.10.0040.02915.47
7.0.00.0020.02915.48
5.6.400.0080.00914.82
5.6.390.0010.01314.77
5.6.380.0060.00914.86
5.6.370.0070.00514.71
5.6.360.0050.00714.81
5.6.350.0040.00914.80
5.6.340.0060.00714.75
5.6.330.0070.00814.78
5.6.320.0040.00914.79
5.6.310.0060.00714.83
5.6.300.0100.00414.78
5.6.290.0090.00514.76
5.6.280.0030.02716.27
5.6.270.0070.00814.70
5.6.260.0060.00814.78
5.6.250.0100.02316.36
5.6.240.0060.02216.19
5.6.230.0100.02316.26
5.6.220.0060.02616.21
5.6.210.0040.01916.17
5.6.200.0070.02316.27
5.6.190.0060.01716.25
5.6.180.0100.02416.40
5.6.170.0070.01716.29
5.6.160.0060.02616.35
5.6.150.0040.02316.28
5.6.140.0070.02416.24
5.6.130.0100.02416.34
5.6.120.0080.02516.29
5.6.110.0080.01916.29
5.6.100.0060.02616.30
5.6.90.0070.02416.46
5.6.80.0060.02416.17
5.6.70.0050.02416.13
5.6.60.0050.01716.25
5.6.50.0060.01516.10
5.6.40.0060.01416.16
5.6.30.0070.01516.13
5.6.20.0040.01716.10
5.6.10.0050.01516.09
5.6.00.0050.01516.15
5.5.380.0130.01716.15
5.5.370.0110.02416.24
5.5.360.0070.02516.13
5.5.350.0100.02516.06
5.5.340.0050.02616.28
5.5.330.0060.02616.21
5.5.320.0100.02716.21
5.5.310.0110.02916.19
5.5.300.0080.02616.27
5.5.290.0080.02716.11
5.5.280.0060.02916.31
5.5.270.0120.01616.25
5.5.260.0070.01916.33
5.5.250.0070.02816.15
5.5.240.0110.02516.02
5.5.230.0090.01616.07
5.5.220.0090.01416.00
5.5.210.0110.01316.08
5.5.200.0060.01816.05
5.5.190.0060.01616.00
5.5.180.0080.01315.99
5.5.170.0100.00314.69
5.5.160.0080.01515.99
5.5.150.0060.01716.12
5.5.140.0050.01815.94
5.5.130.0080.01616.06
5.5.120.0090.02316.08
5.5.110.0080.01516.19
5.5.100.0060.01415.97
5.5.90.0070.01615.86
5.5.80.0040.01915.99
5.5.70.0050.01615.97
5.5.60.0070.01516.03
5.5.50.0080.01615.97
5.5.40.0040.01715.99
5.5.30.0060.01915.98
5.5.20.0030.02115.89
5.5.10.0110.01115.90
5.5.00.0070.01615.84
5.4.450.0090.01714.19
5.4.440.0090.02314.11
5.4.430.0080.02014.11
5.4.420.0060.02714.04
5.4.410.0050.02214.12
5.4.400.0070.01314.07
5.4.390.0070.01314.09
5.4.380.0050.01514.09
5.4.370.0050.01514.05
5.4.360.0050.01614.04
5.4.350.0030.01613.96
5.4.340.0070.01314.06
5.4.330.0060.00512.36
5.4.320.0030.01714.06
5.4.310.0070.01114.05
5.4.300.0050.01114.04
5.4.290.0050.01314.09
5.4.280.0040.01714.03
5.4.270.0040.01814.00
5.4.260.0050.01314.07
5.4.250.0060.01314.09
5.4.240.0030.01514.04
5.4.230.0050.01313.97
5.4.220.0070.01314.04
5.4.210.0040.01714.01
5.4.200.0030.01514.04
5.4.190.0040.01413.95
5.4.180.0070.01213.97
5.4.170.0040.01614.08
5.4.160.0060.01413.96
5.4.150.0060.01314.12
5.4.140.0070.01513.40
5.4.130.0060.01213.31
5.4.120.0030.01613.35
5.4.110.0070.01113.41
5.4.100.0070.01613.51
5.4.90.0050.01513.47
5.4.80.0040.01513.35
5.4.70.0070.01213.38
5.4.60.0060.01513.38
5.4.50.0050.01813.38
5.4.40.0030.02413.43
5.4.30.0040.02413.31
5.4.20.0070.02013.31
5.4.10.0070.02413.37
5.4.00.0070.02313.22
5.3.290.0040.01712.94
5.3.280.0030.01612.92
5.3.270.0020.01412.91
5.3.260.0040.01512.96
5.3.250.0050.01312.89
5.3.240.0050.01212.93
5.3.230.0080.01112.91
5.3.220.0020.01512.88
5.3.210.0040.01712.86
5.3.200.0020.01712.88
5.3.190.0070.01112.90
5.3.180.0020.01812.92
5.3.170.0040.01512.96
5.3.160.0020.01712.96
5.3.150.0030.02312.96
5.3.140.0030.01812.88
5.3.130.0020.02712.95
5.3.120.0030.02312.88
5.3.110.0050.02412.94
5.3.100.0050.02412.78
5.3.90.0020.02312.75
5.3.80.0050.02312.72
5.3.70.0050.02312.76
5.3.60.0080.01712.77
5.3.50.0030.02112.73
5.3.40.0040.02212.75
5.3.30.0060.01912.69
5.3.20.0110.01612.72
5.3.10.0030.01612.63
5.3.00.0060.02012.62
5.2.170.0000.06711.30
5.2.160.0000.06311.20
5.2.150.0070.06011.18
5.2.140.0070.06011.07
5.2.130.0100.06010.98
5.2.120.0100.05011.10
5.2.110.0070.06011.13
5.2.100.0070.06011.16
5.2.90.0030.06011.22
5.2.80.0070.06711.12
5.2.70.0130.06311.16
5.2.60.0070.05711.05
5.2.50.0130.05311.02
5.2.40.0070.03310.88
5.2.30.0070.05711.07
5.2.20.0030.04010.98
5.2.10.0070.05710.92
5.2.00.0070.06010.82
5.1.60.0030.05310.04
5.1.50.0070.04310.07
5.1.40.0000.0609.98
5.1.30.0100.02710.34
5.1.20.0030.05310.49
5.1.10.0030.05310.06
5.1.00.0070.05310.13
5.0.50.0000.0339.32
5.0.40.0030.0279.32
5.0.30.0000.0709.32
5.0.20.0070.0379.32
5.0.10.0030.0279.32
5.0.00.0000.0609.32
4.4.90.0070.0339.32
4.4.80.0000.0379.32
4.4.70.0000.0379.32
4.4.60.0030.0379.32
4.4.50.0130.0239.32
4.4.40.0000.0479.32
4.4.30.0100.0239.32
4.4.20.0000.0309.32
4.4.10.0000.0209.32
4.4.00.0030.0539.32
4.3.110.0000.0309.32
4.3.100.0000.0379.32
4.3.90.0000.0279.32
4.3.80.0070.0479.32
4.3.70.0070.0309.32
4.3.60.0030.0339.32
4.3.50.0070.0309.32
4.3.40.0030.0509.32
4.3.30.0030.0339.32
4.3.20.0030.0279.32
4.3.10.0030.0339.32
4.3.00.0000.0339.32

preferences:
50.89 ms | 401 KiB | 5 Q