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) { } class AppException extends Exception { } function error_handler($errno, $errstr, $errfile, $errline) { throw new AppException($errstr, $errno); } function exception_handler($exception) { /*$min = ...; $max = ...; if ($exception->getCode() >= $min && $exception->getCode() <= $max) { // log exception }*/ } set_error_handler('error_handler'); set_exception_handler('exception_handler'); /* 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.0130.00718.55
8.3.50.0100.00921.14
8.3.40.0090.01218.97
8.3.30.0110.00320.26
8.3.20.0040.00420.21
8.3.10.0030.00522.06
8.3.00.0080.00022.52
8.2.180.0090.00916.75
8.2.170.0070.00722.96
8.2.160.0000.01422.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00420.82
8.2.110.0000.00922.25
8.2.100.0080.00417.78
8.2.90.0030.00519.09
8.2.80.0060.00319.38
8.2.70.0060.00317.38
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0050.00519.51
8.2.20.0040.00417.60
8.2.10.0060.00317.61
8.2.00.0090.00017.75
8.1.280.0090.00525.92
8.1.270.0000.00723.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.71
8.1.230.0070.00419.06
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0040.00417.30
8.1.180.0000.00819.01
8.1.170.0030.00518.38
8.1.160.0000.00718.83
8.1.150.0080.00018.55
8.1.140.0030.00517.45
8.1.130.0030.00317.70
8.1.120.0040.00417.43
8.1.110.0050.00217.34
8.1.100.0030.00517.39
8.1.90.0040.00417.44
8.1.80.0060.00317.30
8.1.70.0070.00017.38
8.1.60.0000.00817.57
8.1.50.0050.00217.40
8.1.40.0000.00817.42
8.1.30.0000.00717.55
8.1.20.0050.00317.49
8.1.10.0000.00717.56
8.1.00.0030.00617.41
8.0.300.0050.00218.77
8.0.290.0040.00417.04
8.0.280.0050.00318.44
8.0.270.0000.00717.11
8.0.260.0060.00016.88
8.0.250.0030.00316.88
8.0.240.0000.00816.95
8.0.230.0000.00716.98
8.0.220.0030.00516.80
8.0.210.0070.00016.78
8.0.200.0030.00316.92
8.0.190.0080.00017.00
8.0.180.0050.00316.88
8.0.170.0040.00416.97
8.0.160.0080.00016.87
8.0.150.0030.00516.73
8.0.140.0000.00716.86
8.0.130.0000.00513.33
8.0.120.0000.00816.75
8.0.110.0040.00416.84
8.0.100.0070.00016.70
8.0.90.0030.00616.79
8.0.80.0100.00716.89
8.0.70.0000.00716.93
8.0.60.0050.00316.87
8.0.50.0030.00616.93
8.0.30.0090.01016.92
8.0.20.0120.01017.40
8.0.10.0040.00417.08
8.0.00.0100.00716.71
7.4.330.0020.00215.00
7.4.320.0000.00616.44
7.4.300.0030.00316.52
7.4.290.0060.00316.43
7.4.280.0000.00716.61
7.4.270.0050.00216.42
7.4.260.0000.00513.28
7.4.250.0000.00716.53
7.4.240.0020.00616.45
7.4.230.0000.00716.47
7.4.220.0100.01016.49
7.4.210.0030.01216.57
7.4.200.0030.00416.47
7.4.190.0030.00516.48
7.4.160.0080.00816.52
7.4.150.0160.00317.40
7.4.140.0080.01417.86
7.4.130.0070.01316.67
7.4.120.0070.01016.62
7.4.110.0160.00616.58
7.4.100.0100.00716.53
7.4.90.0180.00016.46
7.4.80.0130.00919.39
7.4.70.0000.01716.38
7.4.60.0070.01016.34
7.4.50.0040.00416.52
7.4.40.0060.00822.77
7.4.30.0120.00616.41
7.4.00.0130.00314.78
7.3.330.0000.00513.19
7.3.320.0030.00313.38
7.3.310.0030.00316.33
7.3.300.0060.00016.20
7.3.290.0030.01016.32
7.3.280.0100.01016.30
7.3.270.0120.00617.40
7.3.260.0050.01116.41
7.3.250.0120.00816.30
7.3.240.0110.01116.60
7.3.230.0060.00916.39
7.3.210.0100.00616.52
7.3.200.0100.01019.39
7.3.190.0060.00916.49
7.3.180.0160.00316.32
7.3.170.0100.00716.55
7.3.160.0060.01016.46
7.3.120.0110.00414.96
7.3.00.0030.01016.70
7.2.330.0080.00816.31
7.2.320.0190.00016.54
7.2.310.0030.01316.54
7.2.300.0060.01016.57
7.2.290.0080.00816.62
7.2.130.0060.01216.84
7.2.120.0060.00616.89
7.2.110.0000.01016.85
7.2.100.0060.00616.81
7.2.90.0050.00516.95
7.2.80.0030.01016.66
7.2.70.0090.00616.82
7.2.60.0030.01016.92
7.2.50.0120.00316.97
7.2.40.0040.01216.60
7.2.30.0080.00716.83
7.2.20.0100.00716.75
7.2.10.0040.01116.59
7.2.00.0060.00616.68
7.1.250.0060.00915.70
7.1.240.0070.00715.59
7.1.230.0090.00315.54
7.1.220.0100.00315.75
7.1.210.0040.00415.76
7.1.200.0080.00515.65
7.1.190.0060.00915.86
7.1.180.0040.01115.77
7.1.170.0030.00815.63
7.1.160.0030.00715.43
7.1.150.0090.00315.43
7.1.140.0060.01015.65
7.1.130.0060.00615.63
7.1.120.0070.00415.76
7.1.110.0000.01415.75
7.1.100.0040.00616.66
7.1.90.0140.00015.64
7.1.80.0030.00915.64
7.1.70.0020.00716.28
7.1.60.0050.01417.53
7.1.50.0120.00716.15
7.1.40.0000.01515.70
7.1.30.0030.00715.65
7.1.20.0000.01315.76
7.1.10.0090.00415.39
7.1.00.0050.02719.03
7.0.330.0040.00415.06
7.0.320.0030.00615.26
7.0.310.0040.00715.27
7.0.300.0030.00515.11
7.0.290.0030.01015.34
7.0.280.0060.00615.34
7.0.270.0030.00615.14
7.0.260.0040.00815.35
7.0.250.0130.00015.13
7.0.240.0060.00315.23
7.0.230.0030.00815.29
7.0.220.0030.00615.03
7.0.210.0100.00315.44
7.0.200.0000.00815.90
7.0.190.0000.00915.38
7.0.180.0040.00415.39
7.0.170.0040.00415.32
7.0.160.0040.00415.48
7.0.150.0110.00015.15
7.0.140.0020.04218.51
7.0.130.0030.00615.17
7.0.120.0110.00415.21
7.0.110.0080.00415.38
7.0.100.0020.04717.66
7.0.90.0040.04117.59
7.0.80.0150.02717.69
7.0.70.0030.03317.58
7.0.60.0070.04117.62
7.0.50.0050.04317.82
7.0.40.0070.03916.68
7.0.30.0070.02816.74
7.0.20.0030.04816.76
7.0.10.0020.04516.72
7.0.00.0080.04216.62
5.6.380.0100.00314.41
5.6.370.0000.00914.45
5.6.360.0060.00313.80
5.6.350.0130.00314.09
5.6.340.0070.00714.20
5.6.330.0030.01313.91
5.6.320.0060.00613.77
5.6.310.0030.00914.32
5.6.300.0090.00014.32
5.6.290.0040.00414.27
5.6.280.0060.03717.69
5.6.270.0050.00514.22
5.6.260.0030.00914.24
5.6.250.0140.03617.40
5.6.240.0110.03817.44
5.6.230.0070.02417.33
5.6.220.0060.03017.32
5.6.210.0080.02717.35
5.6.200.0050.04817.67
5.6.190.0060.04017.56
5.6.180.0070.03017.73
5.6.170.0090.03517.51
5.6.160.0100.04117.52
5.6.150.0040.03117.76
5.6.140.0120.04317.57
5.6.130.0050.04017.51
5.6.120.0080.04317.73
5.6.110.0050.04317.64
5.6.100.0030.05117.53
5.6.90.0080.02817.41
5.6.80.0070.03817.12
5.6.70.0030.04017.18
5.6.60.0070.04217.25
5.6.50.0080.04117.45
5.6.40.0080.04117.08
5.6.30.0050.04317.33
5.6.20.0110.03817.28
5.6.10.0070.02917.30
5.6.00.0070.04317.24
5.5.380.0080.03115.77
5.5.370.0070.03715.78
5.5.360.0080.04315.76
5.5.350.0030.04515.76
5.5.340.0020.04316.00
5.5.330.0030.04216.01
5.5.320.0070.04016.07
5.5.310.0100.03716.01
5.5.300.0070.04716.05
5.5.290.0130.03216.03
5.5.280.0020.03215.99
5.5.270.0030.04515.99
5.5.260.0050.04316.01
5.5.250.0060.04215.96
5.5.240.0030.04115.69
5.5.230.0080.04015.68
5.5.220.0040.04515.67
5.5.210.0080.03815.67
5.5.200.0060.04115.67
5.5.190.0080.04315.73
5.5.180.0020.04415.57
5.5.170.0030.00611.18
5.5.160.0030.03815.70
5.5.150.0030.04515.71
5.5.140.0070.03815.65
5.5.130.0050.03615.70
5.5.120.0100.03515.63
5.5.110.0070.02415.71
5.5.100.0050.04015.63
5.5.90.0050.03715.68
5.5.80.0110.03515.63
5.5.70.0080.04015.65
5.5.60.0030.04215.63
5.5.50.0080.04015.62
5.5.40.0080.03515.61
5.5.30.0050.03615.66
5.5.20.0090.03915.57
5.5.10.0120.03515.60
5.5.00.0100.03815.61
5.4.450.0080.03515.36
5.4.440.0030.03715.34
5.4.430.0060.02415.33
5.4.420.0070.04115.26
5.4.410.0050.02515.14
5.4.400.0030.02315.11
5.4.390.0090.03015.16
5.4.380.0070.02315.17
5.4.370.0030.02915.19
5.4.360.0030.03815.10
5.4.350.0070.03715.01
5.4.340.0030.04115.04
5.4.330.0090.00311.18
5.4.320.0030.02315.08
5.4.310.0030.02715.02
5.4.300.0050.02615.19
5.4.290.0060.02315.06
5.4.280.0080.04015.20
5.4.270.0030.04415.18
5.4.260.0070.02715.11
5.4.250.0060.03115.17
5.4.240.0050.04015.17
5.4.230.0070.03015.15
5.4.220.0000.03315.06
5.4.210.0060.02915.15
5.4.200.0060.03115.10
5.4.190.0050.02315.17
5.4.180.0030.04215.15
5.4.170.0070.02315.13
5.4.160.0090.02215.16
5.4.150.0100.03715.17
5.4.140.0080.02913.80
5.4.130.0050.03913.71
5.4.120.0030.02613.83
5.4.110.0120.03013.86
5.4.100.0050.04213.81
5.4.90.0090.02013.78
5.4.80.0050.03213.82
5.4.70.0050.02313.78
5.4.60.0050.04413.81
5.4.50.0020.02713.83
5.4.40.0080.02613.75
5.4.30.0050.02113.77
5.4.20.0030.01913.80
5.4.10.0060.02013.82
5.4.00.0020.02513.49
5.3.290.0050.04112.99
5.3.280.0030.04512.95
5.3.270.0020.03412.89
5.3.260.0070.04312.86
5.3.250.0080.03712.91
5.3.240.0070.02312.91
5.3.230.0020.04112.89
5.3.220.0040.04212.87
5.3.210.0070.03212.88
5.3.200.0050.02712.88
5.3.190.0100.03912.86
5.3.180.0080.02112.91
5.3.170.0070.03712.83
5.3.160.0100.03712.86
5.3.150.0080.04312.86
5.3.140.0030.02512.93
5.3.130.0060.02512.89
5.3.120.0070.02112.84
5.3.110.0020.02412.91
5.3.100.0050.02012.63
5.3.90.0040.02012.59
5.3.80.0050.02012.62
5.3.70.0070.02012.60
5.3.60.0050.02012.64
5.3.50.0050.02012.56
5.3.40.0010.02412.60
5.3.30.0040.01912.50
5.3.20.0070.02712.47
5.3.10.0050.02012.41
5.3.00.0020.01712.37
5.2.170.0000.02211.51
5.2.160.0000.01811.51
5.2.150.0030.01611.51
5.2.140.0020.01611.51
5.2.130.0050.01311.51
5.2.120.0030.01511.51
5.2.110.0050.01711.51
5.2.100.0050.01311.51
5.2.90.0000.04011.51
5.2.80.0030.01511.51
5.2.70.0070.02811.51
5.2.60.0050.02311.51
5.2.50.0020.01511.51
5.2.40.0030.02911.51
5.2.30.0050.02911.51
5.2.20.0010.01911.51
5.2.10.0020.03211.51
5.2.00.0010.02111.51
5.1.60.0020.01611.51
5.1.50.0020.02311.51
5.1.40.0030.01211.51
5.1.30.0010.01811.51
5.1.20.0050.01511.51
5.1.10.0050.01211.51
5.1.00.0000.01911.51
5.0.50.0050.01011.51
5.0.40.0020.01211.51
5.0.30.0030.01711.51
5.0.20.0020.01211.51
5.0.10.0000.01611.51
5.0.00.0010.01611.51
4.4.90.0020.01911.51
4.4.80.0030.01511.51
4.4.70.0020.00811.51
4.4.60.0000.02011.51
4.4.50.0000.01811.51
4.4.40.0000.01311.51
4.4.30.0000.01011.51
4.4.20.0000.01211.51
4.4.10.0020.01511.51
4.4.00.0020.01311.51
4.3.110.0040.00811.51
4.3.100.0020.01011.51
4.3.90.0020.01211.51
4.3.80.0000.01711.51
4.3.70.0000.00911.51
4.3.60.0020.00811.51
4.3.50.0020.01011.51
4.3.40.0000.01711.51
4.3.30.0010.00811.51
4.3.20.0000.01111.51
4.3.10.0030.00811.51
4.3.00.0000.01011.51

preferences:
50.77 ms | 401 KiB | 5 Q