3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*E_ERROR E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR */ function exception_error_handler($errno, $errstr, $errfile, $errline) { var_dump($errstr); } set_error_handler("exception_error_handler", error_reporting()); function shutDownFunction() { echo 'as'; $error = error_get_last(); if ($error['type'] == 1) { //do your stuff } } register_shutdown_function('shutdownFunction'); function f() { return 'Hello world'; } if( empty( f() ) ) { // do something }

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.0140.00018.56
8.3.50.0150.00721.14
8.3.40.0110.00418.92
8.3.30.0130.00320.39
8.3.20.0040.00420.39
8.3.10.0040.00421.92
8.3.00.0090.00022.45
8.2.180.0140.00716.38
8.2.170.0070.00722.96
8.2.160.0140.00322.16
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00020.82
8.2.110.0060.00322.19
8.2.100.0070.00418.03
8.2.90.0000.00917.86
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0020.00518.28
8.2.30.0000.00719.45
8.2.20.0070.00017.61
8.2.10.0070.00017.86
8.2.00.0000.00717.81
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0000.00820.73
8.1.230.0000.01120.95
8.1.220.0000.00717.77
8.1.210.0000.00818.89
8.1.200.0100.00017.35
8.1.190.0030.00517.30
8.1.180.0060.00319.01
8.1.170.0000.00818.57
8.1.160.0000.00818.80
8.1.150.0040.00418.61
8.1.140.0060.00317.36
8.1.130.0000.00817.84
8.1.120.0040.00417.40
8.1.110.0000.00817.41
8.1.100.0040.00417.49
8.1.90.0000.00817.47
8.1.80.0030.00417.43
8.1.70.0000.00717.39
8.1.60.0030.00617.58
8.1.50.0000.00817.51
8.1.40.0000.00717.54
8.1.30.0000.00817.60
8.1.20.0000.00817.55
8.1.10.0000.00717.49
8.1.00.0080.00417.51
8.0.300.0040.00419.97
8.0.290.0040.00417.16
8.0.280.0070.00018.29
8.0.270.0040.00417.25
8.0.260.0000.00616.89
8.0.250.0040.00417.05
8.0.240.0030.00617.05
8.0.230.0030.00317.06
8.0.220.0020.00516.97
8.0.210.0000.00716.86
8.0.200.0080.00016.91
8.0.190.0070.00017.07
8.0.180.0040.00416.87
8.0.170.0080.00016.90
8.0.160.0040.00416.93
8.0.150.0080.00316.79
8.0.140.0000.00716.82
8.0.130.0030.00313.30
8.0.120.0040.00416.95
8.0.110.0000.00716.91
8.0.100.0000.00716.94
8.0.90.0000.00816.78
8.0.80.0110.00416.95
8.0.70.0000.00716.75
8.0.60.0000.00816.88
8.0.50.0040.00416.79
8.0.30.0090.01316.90
8.0.20.0160.00317.40
8.0.10.0000.00717.14
8.0.00.0100.00816.88
7.4.330.0020.00215.00
7.4.320.0030.00316.54
7.4.300.0030.00316.56
7.4.290.0040.00416.61
7.4.280.0040.00416.58
7.4.270.0030.00316.56
7.4.260.0000.00613.27
7.4.250.0000.00816.48
7.4.240.0060.00216.44
7.4.230.0030.00316.42
7.4.220.0000.01816.59
7.4.210.0100.00616.53
7.4.200.0030.00316.71
7.4.190.0030.00316.50
7.4.160.0120.00416.71
7.4.150.0140.00317.40
7.4.140.0110.01117.86
7.4.130.0100.00616.67
7.4.120.0110.00616.49
7.4.110.0110.00716.57
7.4.100.0140.00316.55
7.4.90.0120.00616.44
7.4.80.0170.00519.39
7.4.70.0120.00316.51
7.4.60.0070.01416.63
7.4.50.0030.00616.64
7.4.40.0110.00422.77
7.4.30.0020.01416.54
7.4.00.0040.01215.23
7.3.330.0000.00513.16
7.3.320.0030.00313.40
7.3.310.0040.00416.34
7.3.300.0070.00016.37
7.3.290.0090.01016.27
7.3.280.0090.00616.26
7.3.270.0100.00717.40
7.3.260.0120.00616.37
7.3.250.0110.01016.50
7.3.240.0070.01016.50
7.3.230.0110.00716.68
7.3.210.0130.00316.38
7.3.200.0060.01316.38
7.3.190.0070.01016.55
7.3.180.0000.01716.38
7.3.170.0120.00616.54
7.3.160.0120.00916.41
7.3.120.0060.00914.78
7.2.330.0030.01516.78
7.2.320.0110.01116.83
7.2.310.0120.00616.69
7.2.300.0090.00916.61
7.2.290.0110.00616.58
7.2.00.0000.01619.47
7.1.100.0000.00818.04
7.1.70.0000.00717.16
7.1.60.0040.00717.28
7.1.50.0160.00816.57
7.1.00.0030.03322.43
7.0.200.0100.00216.88
7.0.140.0030.07022.04
7.0.60.0130.06020.07
7.0.50.0070.08017.74
7.0.40.0030.06720.02
7.0.30.0200.04020.26
7.0.20.0430.07020.08
7.0.10.0100.08720.24
7.0.00.0100.04020.08
5.6.210.0070.07720.55
5.6.200.0170.05018.19
5.6.190.0100.05020.61
5.6.180.0330.08020.57
5.6.170.0200.04020.50
5.6.160.0100.07720.55
5.6.150.0100.07718.26
5.6.140.0070.04318.18
5.6.130.0170.07018.28
5.6.120.0030.09021.12
5.6.110.0130.07321.02
5.6.100.0030.04020.95
5.6.90.0200.06720.87
5.6.80.0170.07020.45
5.5.350.0200.03720.43
5.5.340.0100.03717.98
5.5.330.0070.08720.13
5.5.320.0330.07720.31
5.5.310.0370.06720.19
5.5.300.0000.04017.97
5.5.290.0070.04317.97
5.5.280.0000.04320.73
5.5.270.0170.07320.88
5.5.260.0030.06020.89
5.5.250.0030.04020.48
5.5.240.0370.06720.23
5.4.450.0400.07719.48
5.4.440.0300.07719.20
5.4.430.0430.06719.56
5.4.420.0430.04319.17
5.4.410.0330.06719.07
5.4.400.0330.07019.08
5.4.390.0400.04719.01
5.4.380.0400.03319.31
5.4.370.0500.06319.22
5.4.360.0400.06318.88
5.4.350.0400.04019.16
5.4.340.0470.04318.86
5.4.320.0400.05019.22
5.4.310.0430.04319.22
5.4.300.0500.06319.16
5.4.290.0470.06719.22
5.4.280.0430.05719.09
5.4.270.0300.06319.13
5.4.260.0430.06318.96
5.4.250.0370.06019.15
5.4.240.0370.05019.23
5.4.230.0400.04019.05
5.4.220.0470.06719.03
5.4.210.0470.05719.22
5.4.200.0500.05318.85
5.4.190.0500.05719.07
5.4.180.0330.04719.13
5.4.170.0430.06719.14
5.4.160.0470.06718.93
5.4.150.0400.05019.11
5.4.140.0330.04716.47
5.4.130.0300.05316.36
5.4.120.0400.02716.46
5.4.110.0330.03716.59
5.4.100.0400.06016.51
5.4.90.0400.06016.32
5.4.80.0400.05016.49
5.4.70.0500.04716.60
5.4.60.0400.05316.54
5.4.50.0430.03316.42
5.4.40.0300.03716.42
5.4.30.0330.03316.50
5.4.20.0500.04316.24
5.4.10.0370.04716.51
5.4.00.0470.06315.89
5.3.290.0430.07014.68
5.3.280.0370.03314.64
5.3.270.0330.05714.68
5.3.260.0500.04314.76
5.3.250.0400.06314.59
5.3.240.0500.04314.69
5.3.230.0370.03314.61
5.3.220.0300.04014.73
5.3.210.0330.05314.49
5.3.200.0530.06014.54
5.3.190.0470.04014.65
5.3.180.0430.06314.54
5.3.170.0400.06314.55
5.3.160.0400.07014.46
5.3.150.0400.04014.54
5.3.140.0330.03714.54
5.3.130.0330.06714.55
5.3.120.0530.03714.63
5.3.110.0530.06014.47
5.3.100.0430.05314.13
5.3.90.0330.04014.15
5.3.80.0500.05013.93
5.3.70.0430.04714.00
5.3.60.0330.04714.17
5.3.50.0300.03314.07
5.3.40.0230.04013.87
5.3.30.0330.03013.91
5.3.20.0270.03313.62
5.3.10.0300.04313.82
5.3.00.0270.03713.70
5.2.170.0230.02711.11
5.2.160.0300.03711.20
5.2.150.0270.02711.16
5.2.140.0230.03011.26
5.2.130.0230.03011.03
5.2.120.0200.03711.04
5.2.110.0200.03311.11
5.2.100.0230.02711.26
5.2.90.0300.03311.03
5.2.80.0200.03311.21
5.2.70.0200.03310.99
5.2.60.0200.03011.19
5.2.50.0400.03311.11
5.2.40.0300.04711.09
5.2.30.0300.05710.99
5.2.20.0170.03711.04
5.2.10.0170.03010.94
5.2.00.0200.02710.89
5.1.60.0130.03010.89
5.1.50.0200.02310.89
5.1.40.0170.02310.89
5.1.30.0170.02710.89
5.1.20.0170.02710.89
5.1.10.0170.03010.89
5.1.00.0130.03010.89
5.0.50.0070.02310.89
5.0.40.0100.02010.89
5.0.30.0100.03010.89
5.0.20.0130.01710.89
5.0.10.0100.02010.89
5.0.00.0100.03010.89
4.4.90.0100.01310.89
4.4.80.0130.03010.89
4.4.70.0100.01710.89
4.4.60.0070.01710.89
4.4.50.0070.01710.89
4.4.40.0100.02710.89
4.4.30.0100.01310.89
4.4.20.0070.01710.89
4.4.10.0100.01310.89
4.4.00.0100.02310.89
4.3.110.0070.01710.89
4.3.100.0100.01310.89
4.3.90.0130.01010.89
4.3.80.0070.03010.89
4.3.70.0130.01310.89
4.3.60.0100.01310.89
4.3.50.0170.01010.89
4.3.40.0100.02310.89
4.3.30.0070.01310.89
4.3.20.0030.01710.89
4.3.10.0030.01710.89
4.3.00.0030.01710.89

preferences:
40.38 ms | 400 KiB | 5 Q