3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_function($param1, $param2) { // do something great } try { my_function('only_one_param'); } catch (AppException $exception) { } /* throw new MyException('This is a really bad error', 123); final public ExceptionException::getPrevious ( void ) error_reporting(E_ALL); function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, '00007600', $errno, $errfile, $errline, new Exception('jjj')); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { var_dump($e->getPrevious()); }*/

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.00018.43
8.3.50.0120.00521.07
8.3.40.0140.00018.97
8.3.30.0170.00320.34
8.3.20.0040.00420.16
8.3.10.0040.00422.14
8.3.00.0120.00622.58
8.2.180.0120.00318.42
8.2.170.0040.01122.96
8.2.160.0100.00322.30
8.2.150.0110.00424.18
8.2.140.0160.00324.66
8.2.130.0120.00626.16
8.2.120.0050.00320.75
8.2.110.0040.00422.07
8.2.100.0040.00817.84
8.2.90.0040.00419.23
8.2.80.0050.00319.26
8.2.70.0030.00717.50
8.2.60.0030.00517.80
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00419.45
8.2.20.0040.00417.72
8.2.10.0050.00217.73
8.2.00.0030.00617.55
8.1.280.0060.00925.92
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0040.00828.09
8.1.240.0110.01123.85
8.1.230.0080.00319.01
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0040.00417.36
8.1.190.0050.00317.50
8.1.180.0060.00318.88
8.1.170.0000.00818.50
8.1.160.0030.00618.87
8.1.150.0050.00318.58
8.1.140.0040.00417.31
8.1.130.0000.00717.74
8.1.120.0040.00417.45
8.1.110.0070.00017.39
8.1.100.0030.00417.42
8.1.90.0000.00717.32
8.1.80.0050.00317.30
8.1.70.0080.00017.37
8.1.60.0060.00317.64
8.1.50.0000.00717.50
8.1.40.0000.00717.45
8.1.30.0020.00517.52
8.1.20.0040.00417.55
8.1.10.0020.00517.65
8.1.00.0040.00417.53
8.0.300.0000.00818.77
8.0.290.0080.00016.92
8.0.280.0000.00718.32
8.0.270.0070.00017.19
8.0.260.0030.00316.73
8.0.250.0070.00016.80
8.0.240.0000.00816.93
8.0.230.0040.00416.98
8.0.220.0070.00016.89
8.0.210.0030.00316.88
8.0.200.0040.00416.94
8.0.190.0060.00316.95
8.0.180.0000.00716.87
8.0.170.0000.00816.95
8.0.160.0000.00716.91
8.0.150.0080.00316.81
8.0.140.0040.00416.77
8.0.130.0030.00313.31
8.0.120.0020.00516.85
8.0.110.0000.00716.85
8.0.100.0000.00716.74
8.0.90.0040.00716.78
8.0.80.0030.01116.82
8.0.70.0000.00716.96
8.0.60.0080.00016.86
8.0.50.0070.00016.70
8.0.30.0090.01017.08
8.0.20.0120.00617.40
8.0.10.0070.00016.90
8.0.00.0120.00716.53
7.4.330.0000.00515.00
7.4.320.0040.00416.44
7.4.300.0030.00316.42
7.4.290.0030.00316.61
7.4.280.0000.00816.64
7.4.270.0060.00016.61
7.4.260.0050.00013.28
7.4.250.0030.00516.57
7.4.240.0030.00516.53
7.4.230.0070.00016.71
7.4.220.0100.00716.63
7.4.210.0110.00516.60
7.4.200.0000.00716.71
7.4.190.0040.00416.50
7.4.160.0040.01116.56
7.4.150.0070.01017.40
7.4.140.0070.01117.86
7.4.130.0030.01416.52
7.4.120.0100.01016.53
7.4.110.0170.00016.52
7.4.100.0070.01816.42
7.4.90.0100.01016.57
7.4.80.0070.01419.39
7.4.70.0090.00916.58
7.4.60.0080.00816.41
7.4.50.0040.00416.28
7.4.40.0110.00422.77
7.4.30.0100.00716.54
7.4.10.0070.01015.69
7.4.00.0030.01415.46
7.3.330.0050.00013.06
7.3.320.0050.00013.29
7.3.310.0000.00816.19
7.3.300.0000.00716.38
7.3.290.0030.01416.37
7.3.280.0100.00816.27
7.3.270.0100.00717.40
7.3.260.0140.00916.35
7.3.250.0070.01116.38
7.3.240.0060.00916.37
7.3.230.0160.00016.39
7.3.210.0160.00316.46
7.3.200.0040.01719.39
7.3.190.0060.01216.40
7.3.180.0100.00716.48
7.3.170.0120.00316.52
7.3.160.0070.00716.59
7.3.130.0050.01515.62
7.3.120.0050.01115.15
7.3.110.0080.00915.35
7.3.100.0070.00715.16
7.3.90.0080.00715.24
7.3.80.0040.00715.21
7.3.70.0060.00615.16
7.3.60.0070.00615.25
7.3.50.0050.01015.19
7.3.40.0090.00215.12
7.3.30.0060.00915.28
7.3.20.0090.00617.05
7.3.10.0040.01017.02
7.3.00.0040.00716.96
7.2.330.0240.01216.64
7.2.320.0100.01316.65
7.2.310.0110.01216.41
7.2.300.0100.00616.38
7.2.290.0140.00316.66
7.2.260.0070.01115.74
7.2.250.0100.00715.24
7.2.240.0060.00815.30
7.2.230.0060.00815.40
7.2.220.0020.01215.38
7.2.210.0060.00615.33
7.2.200.0050.00915.49
7.2.190.0080.00715.31
7.2.180.0040.00915.43
7.2.170.0050.00715.33
7.2.160.0060.01015.48
7.2.150.0080.00717.31
7.2.140.0070.00717.33
7.2.130.0060.00717.20
7.2.120.0040.01117.19
7.2.110.0090.01017.03
7.2.100.0100.00617.02
7.2.90.0080.00916.99
7.2.80.0090.00817.03
7.2.70.0070.00917.04
7.2.60.0070.01016.98
7.2.50.0090.01117.12
7.2.40.0070.00917.09
7.2.30.0100.00517.04
7.2.20.0090.00917.19
7.2.10.0070.00817.17
7.2.00.0080.00717.62
7.1.330.0020.01016.13
7.1.320.0060.00816.08
7.1.310.0030.01016.09
7.1.300.0080.00616.11
7.1.290.0070.00716.11
7.1.280.0050.00916.16
7.1.270.0090.00516.05
7.1.260.0050.00516.14
7.1.250.0080.00616.19
7.1.240.0050.00916.09
7.1.230.0060.00915.87
7.1.220.0090.00515.93
7.1.210.0110.00715.94
7.1.200.0080.00816.04
7.1.190.0060.00815.94
7.1.180.0090.00516.02
7.1.170.0070.00715.86
7.1.160.0110.00716.00
7.1.150.0100.00615.92
7.1.140.0070.01115.99
7.1.130.0080.00515.97
7.1.120.0110.00516.06
7.1.110.0070.00516.03
7.1.100.0100.00716.44
7.1.90.0060.00915.94
7.1.80.0060.00915.92
7.1.70.0080.00416.28
7.1.60.0050.00916.83
7.1.50.0100.00816.29
7.1.40.0070.00916.07
7.1.30.0080.00616.05
7.1.20.0080.00816.02
7.1.10.0080.00616.06
7.1.00.0080.01417.27
7.0.330.0060.00915.72
7.0.320.0050.00815.66
7.0.310.0090.00715.59
7.0.300.0080.00915.52
7.0.290.0090.00515.63
7.0.280.0100.00815.42
7.0.270.0060.00915.54
7.0.260.0090.00615.48
7.0.250.0110.00715.52
7.0.240.0120.00515.77
7.0.230.0110.00415.67
7.0.220.0100.00715.60
7.0.210.0070.00815.61
7.0.200.0050.00615.85
7.0.190.0080.00615.66
7.0.180.0070.00415.72
7.0.170.0080.00715.67
7.0.160.0080.00815.60
7.0.150.0070.00615.53
7.0.140.0070.02016.84
7.0.130.0100.00515.74
7.0.120.0080.00715.61
7.0.110.0100.00415.65
7.0.100.0070.02216.49
7.0.90.0080.01716.45
7.0.80.0080.02016.48
7.0.70.0120.02216.54
7.0.60.0110.02116.51
7.0.50.0120.02316.44
7.0.40.0080.02114.91
7.0.30.0060.02314.91
7.0.20.0100.02114.91
7.0.10.0060.02214.90
7.0.00.0060.02414.86
5.6.400.0030.01015.15
5.6.390.0020.01414.87
5.6.380.0060.00914.53
5.6.370.0090.00614.42
5.6.360.0090.00814.43
5.6.350.0070.00514.35
5.6.340.0070.00914.64
5.6.330.0090.00714.35
5.6.320.0070.00914.47
5.6.310.0070.00914.33
5.6.300.0070.00814.58
5.6.290.0050.01014.47
5.6.280.0050.02115.81
5.6.270.0060.00614.51
5.6.260.0070.00814.40
5.6.250.0060.01415.63
5.6.240.0070.02015.64
5.6.230.0070.02215.60
5.6.220.0080.02215.60
5.6.210.0070.02015.65
5.6.200.0080.02215.67
5.6.190.0070.02115.83
5.6.180.0070.02215.88
5.6.170.0090.01515.73
5.6.160.0040.02515.77
5.6.150.0050.02515.75
5.6.140.0050.01715.72
5.6.130.0070.02015.73
5.6.120.0070.02415.78
5.6.110.0070.02015.67
5.6.100.0060.02515.78
5.6.90.0090.01915.65
5.6.80.0060.02215.56
5.6.70.0070.02315.51
5.6.60.0070.01515.42
5.6.50.0070.02115.59
5.6.40.0040.02015.42
5.6.30.0070.02115.49
5.6.20.0090.02115.67
5.6.10.0090.01815.52
5.6.00.0070.02215.44
5.5.380.0080.01714.64
5.5.370.0070.01314.73
5.5.360.0060.01814.74
5.5.350.0070.02014.72
5.5.340.0040.02214.90
5.5.330.0050.01614.82
5.5.320.0050.01614.75
5.5.310.0050.02314.82
5.5.300.0080.01814.79
5.5.290.0070.01814.84
5.5.280.0080.02114.86
5.5.270.0100.01814.87
5.5.260.0030.02414.73
5.5.250.0080.01614.68
5.5.240.0070.02114.58
5.5.230.0050.01714.62
5.5.220.0060.02014.74
5.5.210.0060.02114.73
5.5.200.0060.02114.65
5.5.190.0060.02314.64
5.5.180.0060.02014.63
5.5.170.0070.00613.64
5.5.160.0030.01614.58
5.5.150.0100.01714.57
5.5.140.0080.01914.62
5.5.130.0050.01914.70
5.5.120.0050.01614.64
5.5.110.0100.01714.59
5.5.100.0050.01814.58
5.5.90.0060.01414.60
5.5.80.0070.01314.51
5.5.70.0070.02214.70
5.5.60.0060.01914.63
5.5.50.0080.01314.67
5.5.40.0070.02114.62
5.5.30.0050.01414.46
5.5.20.0070.01814.56
5.5.10.0070.02214.50
5.5.00.0050.02114.61
5.4.450.0060.01713.33
5.4.440.0060.02213.28
5.4.430.0080.01313.27
5.4.420.0070.01913.25
5.4.410.0060.02113.20
5.4.400.0050.02113.04
5.4.390.0070.01913.10
5.4.380.0050.02013.07
5.4.370.0050.01913.12
5.4.360.0060.01213.22
5.4.350.0050.01513.18
5.4.340.0080.01613.22
5.4.330.0060.00411.66
5.4.320.0080.01913.14
5.4.310.0070.01713.11
5.4.300.0090.01713.16
5.4.290.0080.01713.11
5.4.280.0060.01113.07
5.4.270.0040.01313.02
5.4.260.0060.01912.96
5.4.250.0040.02013.03
5.4.240.0050.01213.11
5.4.230.0090.01313.05
5.4.220.0040.02013.05
5.4.210.0070.01813.06
5.4.200.0060.01513.17
5.4.190.0070.01513.04
5.4.180.0050.01313.04
5.4.170.0060.01613.10
5.4.160.0060.01913.19
5.4.150.0070.02113.04
5.4.140.0050.01912.54
5.4.130.0040.01912.66
5.4.120.0070.01412.61
5.4.110.0060.01312.63
5.4.100.0070.01812.63
5.4.90.0050.02112.59
5.4.80.0060.01312.64
5.4.70.0060.01912.59
5.4.60.0060.01212.61
5.4.50.0050.01812.60
5.4.40.0060.01512.68
5.4.30.0050.01812.64
5.4.20.0050.01712.68
5.4.10.0050.01912.68
5.4.00.0060.01812.54
5.3.290.0060.02112.27
5.3.280.0050.02312.11
5.3.270.0060.01912.25
5.3.260.0090.01112.24
5.3.250.0050.01412.27
5.3.240.0050.01312.13
5.3.230.0080.01512.21
5.3.220.0060.01912.18
5.3.210.0060.01412.23
5.3.200.0050.02012.09
5.3.190.0050.01512.23
5.3.180.0030.02212.27
5.3.170.0050.01412.30
5.3.160.0050.02012.25
5.3.150.0080.01612.27
5.3.140.0060.02012.20
5.3.130.0070.01312.28
5.3.120.0070.01712.23
5.3.110.0060.01212.23
5.3.100.0030.01712.06
5.3.90.0080.01812.16
5.3.80.0030.01612.04
5.3.70.0040.02012.01
5.3.60.0040.01412.13
5.3.50.0030.01912.02
5.3.40.0010.02111.99
5.3.30.0060.01912.04
5.3.20.0040.01412.00
5.3.10.0060.01711.95
5.3.00.0040.02011.93
5.2.170.0050.02311.36
5.2.160.0050.02011.39
5.2.150.0030.02611.40
5.2.140.0020.02511.35
5.2.130.0040.02311.39
5.2.120.0020.02011.36
5.2.110.0060.01611.33
5.2.100.0060.02311.38
5.2.90.0060.02311.35
5.2.80.0020.02911.33
5.2.70.0040.01811.42
5.2.60.0050.02511.40
5.2.50.0030.02111.36
5.2.40.0040.02311.31
5.2.30.0050.02111.35
5.2.20.0040.02011.34
5.2.10.0050.01911.27
5.2.00.0070.01911.29
5.1.60.0030.02011.01
5.1.50.0030.01811.04
5.1.40.0030.02110.95
5.1.30.0080.01611.10
5.1.20.0070.01211.16
5.1.10.0060.01710.98
5.1.00.0050.01211.03
5.0.50.0040.01310.49
5.0.40.0030.01810.51
5.0.30.0070.02310.48
5.0.20.0020.01110.48
5.0.10.0040.01410.48
5.0.00.0030.02610.48
4.4.90.0000.01910.48
4.4.80.0020.01010.48
4.4.70.0050.01210.48
4.4.60.0010.00910.48
4.4.50.0040.01310.48
4.4.40.0050.01510.48
4.4.30.0020.01010.48
4.4.20.0020.01310.48
4.4.10.0030.01510.48
4.4.00.0040.01010.48
4.3.110.0010.01410.48
4.3.100.0030.01310.48
4.3.90.0030.01210.48
4.3.80.0040.01810.48
4.3.70.0040.01010.48
4.3.60.0060.01010.48
4.3.50.0010.01410.48
4.3.40.0030.01810.48
4.3.30.0000.01210.48
4.3.20.0030.01210.48
4.3.10.0010.01410.48
4.3.00.0030.01310.48

preferences:
49.32 ms | 401 KiB | 5 Q