3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myErrorHandler($errno, $errstr, $errfile, $errline) { if ( E_RECOVERABLE_ERROR===$errno ) { echo "'catched' catchable fatal error\n"; throw new ErrorException($errstr, $errno, 0, $errfile, $errline); // return true; } return false; } set_error_handler('myErrorHandler'); try{ $a = new ClassA; $a->method_a(new ClassWrong); } catch(Exception $ex) { echo "catched\n"; } echo 'done.'; /* 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.0040.01818.43
8.3.50.0130.00421.08
8.3.40.0140.00718.79
8.3.30.0060.00920.19
8.3.20.0000.00720.10
8.3.10.0000.00921.97
8.3.00.0040.00422.35
8.2.180.0120.00317.00
8.2.170.0120.00322.96
8.2.160.0120.00922.16
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0080.00020.72
8.2.110.0070.00322.11
8.2.100.0060.00617.72
8.2.90.0030.00519.18
8.2.80.0040.00419.31
8.2.70.0030.00517.25
8.2.60.0070.00017.80
8.2.50.0080.00018.07
8.2.40.0080.00017.97
8.2.30.0030.00619.42
8.2.20.0040.00417.67
8.2.10.0060.00317.55
8.2.00.0030.00717.77
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00923.75
8.1.230.0080.00419.09
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0090.00017.63
8.1.180.0000.00919.14
8.1.170.0040.00418.45
8.1.160.0040.00418.79
8.1.150.0040.00418.60
8.1.140.0070.00017.40
8.1.130.0000.00717.82
8.1.120.0040.00417.33
8.1.110.0030.00517.30
8.1.100.0040.00417.41
8.1.90.0040.00417.33
8.1.80.0040.00417.30
8.1.70.0030.00317.34
8.1.60.0040.00417.43
8.1.50.0000.00717.40
8.1.40.0000.00917.51
8.1.30.0070.00017.55
8.1.20.0000.00817.70
8.1.10.0080.00017.58
8.1.00.0040.00417.53
8.0.300.0080.00018.77
8.0.290.0000.00717.04
8.0.280.0000.00718.33
8.0.270.0040.00417.19
8.0.260.0030.00316.70
8.0.250.0000.00716.94
8.0.240.0000.00716.85
8.0.230.0030.00316.94
8.0.220.0000.00716.78
8.0.210.0000.00716.86
8.0.200.0030.00316.88
8.0.190.0000.00717.00
8.0.180.0000.00716.92
8.0.170.0000.00716.85
8.0.160.0050.00216.75
8.0.150.0100.00016.86
8.0.140.0030.00516.79
8.0.130.0030.00313.32
8.0.120.0070.00016.84
8.0.110.0040.00416.71
8.0.100.0000.00716.89
8.0.90.0050.00316.86
8.0.80.0060.00916.78
8.0.70.0000.00816.73
8.0.60.0000.00716.91
8.0.50.0000.00816.96
8.0.30.0140.00517.05
8.0.20.0140.00817.40
8.0.10.0040.00417.13
8.0.00.0130.00816.87
7.4.330.0050.00015.00
7.4.320.0060.00016.55
7.4.300.0000.00616.63
7.4.290.0000.00716.60
7.4.280.0000.00716.61
7.4.270.0030.00316.62
7.4.260.0000.00513.29
7.4.250.0030.00516.46
7.4.240.0040.00416.52
7.4.230.0000.00716.61
7.4.220.0120.00716.59
7.4.210.0060.00916.63
7.4.200.0030.00316.31
7.4.190.0030.00316.57
7.4.160.0100.00616.64
7.4.150.0070.01717.40
7.4.140.0150.00417.86
7.4.130.0100.00716.50
7.4.120.0070.01016.66
7.4.110.0110.00716.55
7.4.100.0100.00716.57
7.4.90.0170.00316.52
7.4.80.0070.01019.39
7.4.70.0100.00716.38
7.4.60.0070.01416.42
7.4.50.0000.00816.46
7.4.40.0090.00622.77
7.4.30.0150.00616.50
7.4.10.0000.01714.91
7.4.00.0060.00815.00
7.3.330.0050.00013.21
7.3.320.0050.00013.22
7.3.310.0040.00416.20
7.3.300.0030.00316.18
7.3.290.0040.01116.27
7.3.280.0090.00716.30
7.3.270.0100.01017.40
7.3.260.0070.01016.55
7.3.250.0080.01016.42
7.3.240.0120.00616.43
7.3.230.0070.01016.39
7.3.210.0160.00016.36
7.3.200.0100.00619.39
7.3.190.0140.00716.33
7.3.180.0090.00616.53
7.3.170.0070.01016.60
7.3.160.0100.00716.39
7.3.130.0070.01014.99
7.3.120.0050.01214.79
7.3.110.0090.00814.85
7.3.100.0060.00914.89
7.3.90.0030.01014.81
7.3.80.0100.00114.74
7.3.70.0050.00814.77
7.3.60.0100.00314.84
7.3.50.0070.00614.72
7.3.40.0040.00614.81
7.3.30.0080.00614.67
7.3.20.0020.01016.48
7.3.10.0070.00516.40
7.3.00.0020.00916.59
7.2.330.0180.00016.63
7.2.320.0090.01216.59
7.2.310.0060.01616.36
7.2.300.0100.00616.66
7.2.290.0080.01316.66
7.2.260.0070.01115.05
7.2.250.0140.00515.01
7.2.240.0100.00815.04
7.2.230.0050.01314.96
7.2.220.0050.01014.93
7.2.210.0030.00714.89
7.2.200.0040.00814.91
7.2.190.0080.00314.91
7.2.180.0070.00614.91
7.2.170.0050.00714.90
7.2.160.0060.00514.78
7.2.150.0040.01116.77
7.2.140.0080.00816.81
7.2.130.0030.00916.78
7.2.120.0080.00516.77
7.2.110.0090.00316.79
7.2.100.0020.01316.68
7.2.90.0000.01016.91
7.2.80.0080.00616.85
7.2.70.0090.00416.91
7.2.60.0050.00716.67
7.2.50.0070.00616.72
7.2.40.0030.01016.71
7.2.30.0070.00716.93
7.2.20.0060.00516.89
7.2.10.0050.00816.83
7.2.00.0070.00717.44
7.1.330.0050.00815.64
7.1.320.0070.00715.69
7.1.310.0070.00715.79
7.1.300.0050.00915.64
7.1.290.0050.00515.69
7.1.280.0040.00815.65
7.1.270.0050.00515.60
7.1.260.0030.00615.66
7.1.250.0070.00715.68
7.1.240.0010.01015.77
7.1.230.0040.00815.55
7.1.220.0070.00515.62
7.1.210.0040.00615.59
7.1.200.0030.01015.51
7.1.190.0060.00515.63
7.1.180.0050.00615.65
7.1.170.0070.00515.55
7.1.160.0050.00515.67
7.1.150.0030.01115.82
7.1.140.0030.00615.60
7.1.130.0040.00815.67
7.1.120.0070.00615.70
7.1.110.0050.00615.75
7.1.100.0060.00916.42
7.1.90.0070.00315.55
7.1.80.0040.00815.70
7.1.70.0050.00716.06
7.1.60.0060.00816.49
7.1.50.0060.01116.08
7.1.40.0050.00715.77
7.1.30.0040.00915.59
7.1.20.0090.00315.72
7.1.10.0030.00915.63
7.1.00.0050.01417.30
7.0.330.0040.00715.36
7.0.320.0040.00815.37
7.0.310.0030.01015.32
7.0.300.0060.00615.20
7.0.290.0040.00815.36
7.0.280.0030.00715.25
7.0.270.0040.00715.43
7.0.260.0050.00615.42
7.0.250.0060.00815.27
7.0.240.0050.00715.29
7.0.230.0040.00815.40
7.0.220.0070.00515.32
7.0.210.0050.00615.36
7.0.200.0040.00615.63
7.0.190.0060.00615.40
7.0.180.0070.00515.23
7.0.170.0000.01215.43
7.0.160.0040.00715.34
7.0.150.0060.00615.37
7.0.140.0040.02317.08
7.0.130.0030.00915.31
7.0.120.0060.00815.31
7.0.110.0050.00615.25
7.0.100.0050.02116.41
7.0.90.0040.02216.42
7.0.80.0070.02516.37
7.0.70.0030.02416.42
7.0.60.0030.02716.45
7.0.50.0040.01716.51
7.0.40.0040.01915.04
7.0.30.0040.02015.02
7.0.20.0060.01614.92
7.0.10.0040.01615.10
7.0.00.0020.01915.09
5.6.400.0030.00714.23
5.6.390.0090.00414.51
5.6.380.0040.00814.13
5.6.370.0040.00614.25
5.6.360.0050.00713.97
5.6.350.0020.00714.25
5.6.340.0050.00814.24
5.6.330.0060.00714.12
5.6.320.0040.00814.02
5.6.310.0060.00714.08
5.6.300.0090.00614.17
5.6.290.0030.00813.97
5.6.280.0070.02015.76
5.6.270.0010.00714.14
5.6.260.0020.00914.03
5.6.250.0040.01515.76
5.6.240.0080.02315.79
5.6.230.0040.02415.75
5.6.220.0030.03115.63
5.6.210.0090.02215.68
5.6.200.0030.01615.72
5.6.190.0070.01615.90
5.6.180.0040.02115.86
5.6.170.0010.01915.90
5.6.160.0060.02415.97
5.6.150.0020.02815.83
5.6.140.0040.02615.86
5.6.130.0040.01915.87
5.6.120.0070.02315.86
5.6.110.0060.01715.94
5.6.100.0070.02415.91
5.6.90.0070.01515.82
5.6.80.0070.02215.77
5.6.70.0090.02115.61
5.6.60.0040.02615.77
5.6.50.0060.02515.67
5.6.40.0040.02415.53
5.6.30.0060.01715.68
5.6.20.0050.02515.56
5.6.10.0020.02915.77
5.6.00.0050.02615.64
5.5.380.0080.01914.93
5.5.370.0050.02714.90
5.5.360.0040.02714.89
5.5.350.0060.02315.00
5.5.340.0040.02315.09
5.5.330.0060.02215.01
5.5.320.0060.02315.03
5.5.310.0080.01114.88
5.5.300.0040.01615.01
5.5.290.0060.01515.03
5.5.280.0050.01415.00
5.5.270.0050.02214.98
5.5.260.0040.02114.97
5.5.250.0080.02414.96
5.5.240.0070.01614.72
5.5.230.0030.02714.83
5.5.220.0080.02214.61
5.5.210.0070.02314.82
5.5.200.0060.02414.75
5.5.190.0060.02314.72
5.5.180.0100.01714.83
5.5.170.0030.00912.81
5.5.160.0020.01714.88
5.5.150.0050.01414.86
5.5.140.0060.01214.73
5.5.130.0060.01614.71
5.5.120.0090.01814.79
5.5.110.0060.01614.82
5.5.100.0070.01614.77
5.5.90.0030.01614.80
5.5.80.0050.01314.83
5.5.70.0050.01314.86
5.5.60.0030.01614.80
5.5.50.0040.01514.78
5.5.40.0020.01814.75
5.5.30.0020.01714.71
5.5.20.0040.01714.87
5.5.10.0040.02014.74
5.5.00.0070.01414.79
5.4.450.0020.02613.81
5.4.440.0030.02113.84
5.4.430.0020.01913.83
5.4.420.0020.02713.85
5.4.410.0060.01113.79
5.4.400.0050.01713.74
5.4.390.0060.01213.76
5.4.380.0040.02213.74
5.4.370.0030.02513.82
5.4.360.0090.02113.79
5.4.350.0060.01913.78
5.4.340.0030.02213.81
5.4.330.0060.00612.01
5.4.320.0070.01313.76
5.4.310.0050.01413.81
5.4.300.0040.01313.76
5.4.290.0040.01313.73
5.4.280.0010.01813.80
5.4.270.0040.01413.79
5.4.260.0060.01613.77
5.4.250.0030.01313.72
5.4.240.0030.01313.81
5.4.230.0050.01113.77
5.4.220.0030.01813.80
5.4.210.0020.01513.77
5.4.200.0020.01513.72
5.4.190.0050.01213.79
5.4.180.0060.01313.72
5.4.170.0020.01713.76
5.4.160.0030.01513.78
5.4.150.0040.01413.71
5.4.140.0030.01213.12
5.4.130.0040.01413.11
5.4.120.0060.01213.06
5.4.110.0020.01313.11
5.4.100.0050.01313.13
5.4.90.0020.01513.13
5.4.80.0040.01213.09
5.4.70.0050.01113.10
5.4.60.0060.00913.11
5.4.50.0010.01513.08
5.4.40.0060.01313.14
5.4.30.0040.01213.11
5.4.20.0060.01013.08
5.4.10.0020.01313.11
5.4.00.0030.01512.95
5.3.290.0050.01312.67
5.3.280.0010.01512.65
5.3.270.0040.01312.69
5.3.260.0040.01412.64
5.3.250.0050.01312.64
5.3.240.0030.01312.69
5.3.230.0050.01412.67
5.3.220.0080.01112.65
5.3.210.0030.01312.64
5.3.200.0040.01312.66
5.3.190.0040.01312.64
5.3.180.0020.01412.64
5.3.170.0020.01412.64
5.3.160.0020.01512.64
5.3.150.0020.01512.64
5.3.140.0010.01912.66
5.3.130.0040.01312.64
5.3.120.0030.01512.67
5.3.110.0010.01612.67
5.3.100.0020.01612.51
5.3.90.0040.01412.53
5.3.80.0020.01412.52
5.3.70.0020.01512.53
5.3.60.0010.01512.51
5.3.50.0010.01512.52
5.3.40.0040.01112.52
5.3.30.0030.01212.51
5.3.20.0030.01512.43
5.3.10.0030.01212.40
5.3.00.0040.01612.40
5.2.170.0010.01611.54
5.2.160.0030.01611.54
5.2.150.0020.01911.54
5.2.140.0000.01811.54
5.2.130.0030.01611.54
5.2.120.0020.01711.54
5.2.110.0050.01511.54
5.2.100.0030.02311.54
5.2.90.0050.02511.54
5.2.80.0000.02511.54
5.2.70.0020.01811.54
5.2.60.0090.01411.54
5.2.50.0100.02811.54
5.2.40.0030.02811.54
5.2.30.0050.03311.54
5.2.20.0060.03011.54
5.2.10.0100.02611.54
5.2.00.0070.02311.54
5.1.60.0020.01511.54
5.1.50.0020.02811.54
5.1.40.0030.03111.54
5.1.30.0040.02311.54
5.1.20.0070.01711.54
5.1.10.0040.01711.54
5.1.00.0040.02811.54
5.0.50.0000.01611.54
5.0.40.0050.01011.54
5.0.30.0030.03311.54
5.0.20.0040.02111.54
5.0.10.0030.02311.54
5.0.00.0030.01711.54
4.4.90.0020.00911.54
4.4.80.0030.02011.54
4.4.70.0000.01811.54
4.4.60.0010.01311.54
4.4.50.0030.01711.54
4.4.40.0000.03111.54
4.4.30.0000.01011.54
4.4.20.0010.00911.54
4.4.10.0030.01611.54
4.4.00.0040.02311.54
4.3.110.0020.01611.54
4.3.100.0020.02011.54
4.3.90.0030.01311.54
4.3.80.0050.02711.54
4.3.70.0030.01411.54
4.3.60.0020.01711.54
4.3.50.0020.01211.54
4.3.40.0020.02511.54
4.3.30.0050.01211.54
4.3.20.0010.02111.54
4.3.10.0020.01211.54
4.3.00.0020.01511.54

preferences:
37.92 ms | 401 KiB | 5 Q