3v4l.org

run code in 300+ PHP versions simultaneously
<?php function error($code, $message, $file = null, $line = 0) { echo "convert error to exception<br>\n"; throw new ErrorException($message, $code, null, $file, $line); } function shutdown() { var_dump(error_get_last()); echo "shutdown function called<br>\n"; } set_error_handler('error'); register_shutdown_function('shutdown'); try { $a->asdf(); } catch (Exception $e) { echo "exception catched<br>\n"; } echo "after fatal error<br>\n";

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.0160.00616.75
8.3.50.0080.01122.10
8.3.40.0120.00318.58
8.3.30.0040.01119.01
8.3.20.0000.00720.16
8.3.10.0040.00421.81
8.3.00.0060.00319.51
8.2.180.0040.01118.54
8.2.170.0150.00022.96
8.2.160.0070.01120.35
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0080.00019.36
8.2.110.0030.00619.39
8.2.100.0040.00717.91
8.2.90.0040.00419.30
8.2.80.0040.00418.09
8.2.70.0000.00817.50
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0000.00819.95
8.2.30.0090.00017.98
8.2.20.0030.00517.73
8.2.10.0050.00317.90
8.2.00.0000.00917.73
8.1.280.0120.00925.92
8.1.270.0060.00320.33
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0040.00722.66
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0050.00317.25
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0040.00418.75
8.1.150.0030.00518.76
8.1.140.0000.00717.38
8.1.130.0030.00517.73
8.1.120.0000.00817.50
8.1.110.0040.00417.52
8.1.100.0030.00517.44
8.1.90.0000.00717.33
8.1.80.0070.00017.45
8.1.70.0070.00017.41
8.1.60.0000.00817.57
8.1.50.0050.00517.44
8.1.40.0030.00617.38
8.1.30.0000.00817.65
8.1.20.0040.00417.60
8.1.10.0060.00317.56
8.1.00.0040.00417.43
8.0.300.0040.00420.01
8.0.290.0040.00416.75
8.0.280.0040.00418.44
8.0.270.0000.00817.19
8.0.260.0000.00817.25
8.0.250.0030.00316.89
8.0.240.0030.00316.94
8.0.230.0030.00716.85
8.0.220.0000.00716.87
8.0.210.0040.00416.75
8.0.200.0030.00517.04
8.0.190.0080.00016.91
8.0.180.0050.00216.87
8.0.170.0040.00416.95
8.0.160.0080.00016.89
8.0.150.0040.00416.79
8.0.140.0030.00316.98
8.0.130.0000.00713.38
8.0.120.0040.00416.91
8.0.110.0070.00016.95
8.0.100.0040.00416.89
8.0.90.0040.00416.82
8.0.80.0070.01416.92
8.0.70.0000.00716.99
8.0.60.0040.00417.03
8.0.50.0040.00416.81
8.0.30.0140.01017.04
8.0.20.0120.00717.40
8.0.10.0040.00416.91
8.0.00.0100.00816.84
7.4.330.0050.00015.14
7.4.320.0030.00316.51
7.4.300.0030.00316.64
7.4.290.0000.00716.64
7.4.280.0030.00616.49
7.4.270.0070.00016.60
7.4.260.0030.00316.58
7.4.250.0040.00416.55
7.4.240.0040.00316.57
7.4.230.0000.00716.40
7.4.220.0150.00316.49
7.4.210.0060.00916.46
7.4.200.0070.00016.48
7.4.160.0070.00716.48
7.4.150.0100.00717.40
7.4.140.0130.00517.86
7.4.130.0110.00516.57
7.4.120.0100.00716.63
7.4.110.0130.01316.57
7.4.100.0090.00916.64
7.4.90.0130.00316.53
7.4.80.0190.00319.39
7.4.70.0150.00716.43
7.4.60.0090.01016.51
7.4.50.0040.00416.32
7.4.40.0090.00616.27
7.4.30.0120.00916.57
7.4.00.0050.01215.06
7.3.330.0000.00513.14
7.3.320.0120.00313.27
7.3.310.0050.00216.32
7.3.300.0030.00316.32
7.3.290.0090.00816.33
7.3.280.0080.00916.29
7.3.270.0090.00917.40
7.3.260.0130.01016.54
7.3.250.0040.01616.40
7.3.240.0130.00316.26
7.3.230.0060.01216.39
7.3.210.0120.00616.57
7.3.200.0120.00819.39
7.3.190.0140.00716.29
7.3.180.0070.01316.44
7.3.170.0060.01216.44
7.3.160.0160.00316.30
7.3.120.0060.01214.74
7.3.110.0040.01414.69
7.3.100.0060.00914.67
7.3.90.0060.01214.86
7.3.80.0070.01114.73
7.3.70.0140.00414.56
7.3.60.0000.00914.84
7.3.50.0070.00714.69
7.3.40.0070.00414.48
7.3.30.0070.00714.79
7.3.20.0070.01016.73
7.3.10.0040.00916.57
7.3.00.0080.00716.59
7.2.330.0090.00916.70
7.2.320.0120.00416.53
7.2.310.0100.00716.28
7.2.300.0060.01016.37
7.2.290.0200.00416.58
7.2.250.0110.00714.93
7.2.240.0070.01314.90
7.2.230.0130.00714.73
7.2.220.0100.00714.94
7.2.210.0090.00914.88
7.2.200.0060.00714.84
7.2.190.0000.01515.02
7.2.180.0030.00615.01
7.2.170.0060.00914.66
7.2.130.0000.01016.59
7.2.120.0070.01116.89
7.2.110.0030.00716.93
7.2.100.0090.00616.93
7.2.90.0100.00316.83
7.2.80.0070.00316.70
7.2.70.0070.01116.75
7.2.60.0050.01016.82
7.2.50.0110.00317.00
7.2.40.0070.00716.81
7.2.30.0040.00717.07
7.2.20.0110.00416.70
7.2.10.0080.00817.05
7.2.00.0060.00818.20
7.1.330.0060.00615.55
7.1.320.0030.00715.82
7.1.310.0100.00615.93
7.1.300.0000.00915.59
7.1.290.0030.00615.61
7.1.280.0100.00315.85
7.1.270.0000.01115.47
7.1.260.0060.00615.48
7.1.250.0030.01315.52
7.1.200.0000.00815.62
7.1.100.0080.00318.00
7.1.70.0120.00216.98
7.1.60.0120.01219.50
7.1.50.0070.00316.94
7.1.00.0070.07322.33
7.0.200.3140.00715.08
7.0.140.0130.05322.21
7.0.60.0000.08719.84
7.0.50.0070.08317.88
7.0.40.0030.09320.23
7.0.30.0200.05720.24
7.0.20.0300.05020.07
7.0.10.0130.08020.08
7.0.00.0170.07720.06
5.6.280.0100.06721.16
5.6.210.0000.06020.63
5.6.200.0070.05318.21
5.6.190.0030.04320.33
5.6.180.0400.05720.57
5.6.170.0330.04720.55
5.6.160.0070.04320.62
5.6.150.0070.08718.16
5.6.140.0070.04018.15
5.6.130.0070.07018.16
5.6.120.0100.03321.02
5.6.110.0100.07721.02
5.6.100.0070.07321.04
5.6.90.0100.06720.97
5.6.80.0170.06020.38
5.5.350.4300.04720.41
5.5.340.0130.07017.99
5.5.330.0200.06020.26
5.5.320.0300.05320.35
5.5.310.0170.04720.34
5.5.300.0030.04018.08
5.5.290.0030.08717.96
5.5.280.0130.03720.78
5.5.270.0030.09020.79
5.5.260.0100.03720.94
5.5.250.0130.07320.55
5.5.240.0030.03020.19
5.4.450.0870.06319.16
5.4.440.1030.07019.64
5.4.430.0170.07319.64
5.4.420.1130.07019.46
5.4.410.0100.05719.04
5.4.400.0470.05318.87
5.4.390.0330.06018.73
5.4.380.1270.07018.78
5.4.370.0230.06318.62
5.4.360.0170.07018.54
5.4.350.0070.07018.77
5.4.340.0330.05018.57
5.4.320.0400.07318.73
5.4.310.0370.07018.57
5.4.300.0430.05718.73
5.4.290.0900.04718.52
5.4.280.0330.06018.71
5.4.270.0970.05018.79
5.4.260.0400.07018.77
5.4.250.1100.06318.58
5.4.240.0930.05318.53
5.4.230.0400.05318.80
5.4.220.0270.06018.54
5.4.210.0370.07318.75
5.4.200.0270.05316.63
5.4.190.0400.05318.71
5.4.180.0500.06718.61
5.4.170.0400.05318.75
5.4.160.1070.05718.54
5.4.150.0470.06318.51
5.4.140.0300.05716.27
5.4.130.0370.04716.28
5.4.120.0370.05716.30
5.4.110.1030.06016.21
5.4.100.0270.06016.29
5.4.90.0330.05716.45
5.4.80.0330.05716.32
5.4.70.0430.05316.20
5.4.60.0470.05016.19
5.4.50.0400.05016.30
5.4.40.1130.06016.26
5.4.30.0330.05716.23
5.4.20.0400.05716.25
5.4.10.0330.05316.20
5.4.00.0530.05715.75
5.3.290.0570.06714.71
5.3.280.0430.07014.63
5.3.270.0370.06714.61
5.3.260.1100.05314.81
5.3.250.0470.05314.59
5.3.240.0400.05714.59
5.3.230.0400.06714.79
5.3.220.0430.06314.68
5.3.210.0330.06014.60
5.3.200.0330.06014.62
5.3.190.0430.07314.79
5.3.180.0370.05014.61
5.3.170.0330.05314.62
5.3.160.0370.05014.58
5.3.150.0330.05714.70
5.3.140.1600.06314.73
5.3.130.0370.07014.68
5.3.120.0270.06014.70
5.3.110.0430.05714.60
5.3.100.0570.04314.26
5.3.90.1070.06714.23
5.3.80.0470.06314.02
5.3.70.0400.04314.05
5.3.60.0400.05014.03
5.3.50.0430.06314.07
5.3.40.0300.07313.98
5.3.30.0370.04713.94
5.3.20.0970.05713.73
5.3.10.0370.05313.70
5.3.00.0300.05713.66
5.2.170.0300.03711.20
5.2.160.0270.05711.14
5.2.150.0300.04011.15
5.2.140.1070.04711.18
5.2.130.0230.04311.11
5.2.120.0200.04711.16
5.2.110.0270.04011.23
5.2.100.0230.04711.09
5.2.90.1070.03711.13
5.2.80.0270.04311.17
5.2.70.0930.05711.30
5.2.60.0230.05311.11
5.2.50.0300.05311.15
5.2.40.0170.04711.21
5.2.30.0270.04711.07
5.2.20.0270.03311.01
5.2.10.0170.04010.92
5.2.00.0300.03310.72
5.1.60.1000.03710.02
5.1.50.0300.03010.02
5.1.40.0270.03310.17
5.1.30.0230.03310.35
5.1.20.0200.04010.40
5.1.10.0130.04010.16
5.1.00.0300.03310.13
5.0.50.0170.0308.57
5.0.40.1070.0408.62
5.0.30.0100.0508.41
5.0.20.0100.0308.26
5.0.10.0100.0308.36
5.0.00.0130.0438.37
4.4.90.0130.0205.98
4.4.80.1070.0235.87
4.4.70.0170.0175.86
4.4.60.0170.0175.90
4.4.50.0070.0275.95
4.4.40.0100.0375.89
4.4.30.0130.0205.91
4.4.20.0130.0206.05
4.4.10.0100.0235.95
4.4.00.0130.0335.98
4.3.110.0070.0275.83
4.3.100.0130.0275.83
4.3.90.0100.0235.79
4.3.80.0330.0475.82
4.3.70.0170.0205.79
4.3.60.0200.0135.90
4.3.50.0130.0235.80
4.3.40.0130.0435.79
4.3.30.0070.0234.58
4.3.20.0100.0204.66
4.3.10.0000.0274.58
4.3.00.0170.0276.64

preferences:
55.46 ms | 401 KiB | 5 Q