3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exceptionHandler() { echo "\n######### " . __FUNCTION__ . "() called #########\n"; } function errorHandler() { echo "\n######### " . __FUNCTION__ . "() called #########\n"; new bar(); } set_exception_handler('exceptionHandler'); register_shutdown_function('errorHandler'); throw new Exception('x');

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.01118.55
8.3.50.0090.00921.08
8.3.40.0070.00718.93
8.3.30.0120.00320.34
8.3.20.0040.00420.35
8.3.10.0040.00422.10
8.3.00.0040.00422.57
8.2.180.0070.00718.42
8.2.170.0150.00322.96
8.2.160.0100.00420.20
8.2.150.0040.00424.18
8.2.140.0110.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.64
8.2.110.0050.00519.30
8.2.100.0060.00617.80
8.2.90.0070.00019.28
8.2.80.0070.00317.97
8.2.70.0000.00817.63
8.2.60.0030.00717.80
8.2.50.0030.00618.09
8.2.40.0030.00718.16
8.2.30.0050.00217.93
8.2.20.0040.00417.67
8.2.10.0000.00717.79
8.2.00.0040.00417.81
8.1.280.0090.00925.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00922.72
8.1.230.0040.00717.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.01017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.70
8.1.160.0000.00722.02
8.1.150.0000.00818.50
8.1.140.0000.01017.30
8.1.130.0000.00717.71
8.1.120.0030.00317.33
8.1.110.0000.00717.35
8.1.100.0040.00417.36
8.1.90.0030.00317.30
8.1.80.0030.00517.43
8.1.70.0000.00717.29
8.1.60.0030.00617.51
8.1.50.0000.00717.39
8.1.40.0090.00017.45
8.1.30.0040.00417.53
8.1.20.0040.00417.49
8.1.10.0040.00417.45
8.1.00.0040.00717.46
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00318.45
8.0.270.0000.00717.30
8.0.260.0080.00017.00
8.0.250.0030.00317.01
8.0.240.0050.00316.99
8.0.230.0070.00016.91
8.0.220.0000.00816.95
8.0.210.0040.00416.82
8.0.200.0060.00016.92
8.0.190.0070.00016.96
8.0.180.0000.00816.85
8.0.170.0000.00816.79
8.0.160.0000.00816.85
8.0.150.0000.00716.87
8.0.140.0050.00216.81
8.0.130.0060.00013.36
8.0.120.0080.00016.94
8.0.110.0000.00816.95
8.0.100.0040.00416.79
8.0.90.0040.00416.96
8.0.80.0060.00916.89
8.0.70.0080.00017.03
8.0.60.0000.00816.84
8.0.50.0000.00716.78
8.0.30.0130.00917.09
8.0.20.0090.00917.40
8.0.10.0000.00717.08
8.0.00.0140.00716.87
7.4.330.0000.00515.00
7.4.320.0030.00316.39
7.4.300.0060.00016.52
7.4.290.0000.00716.43
7.4.280.0000.00716.58
7.4.270.0030.00616.43
7.4.260.0040.00416.45
7.4.250.0040.00416.29
7.4.240.0030.00316.55
7.4.230.0030.00316.55
7.4.220.0090.00916.64
7.4.210.0080.00716.46
7.4.200.0030.00316.61
7.4.190.0080.00016.60
7.4.160.0060.00916.34
7.4.150.0000.01717.40
7.4.140.0090.00917.86
7.4.130.0050.01416.48
7.4.120.0100.00716.46
7.4.110.0060.01516.51
7.4.100.0140.00416.65
7.4.90.0120.01216.61
7.4.80.0150.00919.39
7.4.70.0030.01316.58
7.4.60.0120.00916.63
7.4.50.0000.00516.31
7.4.40.0120.00622.77
7.4.30.0200.02516.50
7.4.00.0040.01114.91
7.3.330.0030.00313.24
7.3.320.0020.00213.22
7.3.310.0030.00316.16
7.3.300.0030.00316.16
7.3.290.0080.01216.31
7.3.280.0060.01116.27
7.3.270.0120.00617.40
7.3.260.0070.01016.49
7.3.250.0110.00916.35
7.3.240.0130.01016.41
7.3.230.0100.00716.45
7.3.210.0070.01016.37
7.3.200.0100.00719.39
7.3.190.0090.00916.46
7.3.180.0100.00716.49
7.3.170.0060.00916.47
7.3.160.0130.00616.41
7.3.120.0000.01714.96
7.3.10.0070.01016.42
7.3.00.0030.00616.40
7.2.330.0160.00316.67
7.2.320.0120.00816.27
7.2.310.0130.00316.72
7.2.300.0080.00816.68
7.2.290.0090.00616.68
7.2.130.0000.01216.78
7.2.120.0190.00016.70
7.2.110.0090.00016.84
7.2.100.0060.00916.91
7.2.90.0030.00917.00
7.2.80.0070.00716.92
7.2.70.0040.00816.68
7.2.60.0080.00716.82
7.2.50.0110.00016.63
7.2.40.0000.01316.68
7.2.30.0030.00616.78
7.2.20.0040.01216.74
7.2.10.0080.00416.98
7.2.00.0060.00316.80
7.1.250.0070.00715.82
7.1.200.0110.00415.68
7.1.100.0040.00718.02
7.1.70.0040.00417.11
7.1.60.0130.01019.21
7.1.50.0110.01116.80
7.1.00.0030.03322.31
7.0.200.0160.00414.65
7.0.140.0030.07322.15
7.0.60.0030.08019.90
7.0.50.0100.07317.86
7.0.40.0130.08320.25
7.0.30.0400.06720.08
7.0.20.0200.04320.06
7.0.10.0370.08020.06
7.0.00.0030.06720.09
5.6.280.0000.07721.12
5.6.210.0100.07720.47
5.6.200.0030.04318.16
5.6.190.0030.04320.61
5.6.180.0130.04720.48
5.6.170.0270.07720.50
5.6.160.0030.08320.50
5.6.150.0070.06718.28
5.6.140.0030.05718.18
5.6.130.0030.04018.28
5.6.120.0070.06021.05
5.6.110.0070.05321.03
5.6.100.0030.04021.09
5.6.90.0130.07721.11
5.6.80.0170.07320.54
5.6.70.0200.06720.40
5.5.350.0000.06720.32
5.5.340.0030.06017.94
5.5.330.0030.07720.57
5.5.320.0270.07320.39
5.5.310.0200.06320.27
5.5.300.0030.06017.95
5.5.290.0070.08017.92
5.5.280.0000.05320.80
5.5.270.0100.07020.77
5.5.260.0030.04020.76
5.5.250.0030.04020.58
5.5.240.0070.07720.19
5.4.450.0600.09319.17
5.4.440.0830.05319.59
5.4.430.0030.06019.45
5.4.420.0930.04319.30
5.4.410.0830.06319.18
5.4.400.0400.06018.75
5.4.390.0330.08018.47
5.4.380.0500.05318.84
5.4.370.0130.05318.62
5.4.360.0170.05018.79
5.4.350.0060.03512.02
5.4.340.0060.03712.02
5.4.320.0040.04312.50
5.4.310.0050.04612.50
5.4.300.0040.03612.50
5.4.290.0050.03812.50
5.4.280.0030.03812.40
5.4.270.0100.03412.40
5.4.260.0070.04212.40
5.4.250.0170.04719.03
5.4.240.0130.04718.97
5.4.230.0000.06319.10
5.4.220.0100.06018.90
5.4.210.0130.05018.99
5.4.200.0070.05018.96
5.4.190.0000.07718.74
5.4.180.0100.05319.10
5.4.170.0130.05718.74
5.4.160.0170.04718.82
5.4.150.0130.05318.95
5.4.140.0070.05016.51
5.4.130.0030.05016.59
5.4.120.0030.05016.43
5.4.110.0030.05316.57
5.4.100.0070.05716.39
5.4.90.0130.04016.59
5.4.80.0130.04016.59
5.4.70.0100.06316.52
5.4.60.0170.04016.31
5.4.50.0130.04016.36
5.4.40.0070.06016.39
5.4.30.0030.06016.54
5.4.20.0100.05016.36
5.4.10.0200.06316.33
5.4.00.0030.05315.98
5.3.290.0090.03912.80
5.3.280.0100.06714.50
5.3.270.0130.07014.69
5.3.260.0130.05314.59
5.3.250.0130.05014.62
5.3.240.0030.05714.57
5.3.230.0100.05014.77
5.3.220.0130.05014.39
5.3.210.0100.05014.54
5.3.200.0070.05014.55
5.3.190.0030.05314.55
5.3.180.0100.05014.41
5.3.170.0170.04314.55
5.3.160.0070.05014.70
5.3.150.0070.06014.56
5.3.140.0100.05014.64
5.3.130.0100.05314.55
5.3.120.0070.05714.71
5.3.110.0070.05714.51
5.3.100.0130.05714.01
5.3.90.0100.05014.19
5.3.80.0100.04714.24
5.3.70.0100.06714.11
5.3.60.0030.05314.07
5.3.50.0070.05014.17
5.3.40.0100.04713.95
5.3.30.0170.04013.98
5.3.20.0070.05013.77
5.3.10.0100.04713.73
5.3.00.0100.04713.72
5.2.170.0000.04711.23
5.2.160.0130.04711.13
5.2.150.0000.04711.12
5.2.140.0100.05711.13
5.2.130.0070.05311.09
5.2.120.0070.03711.17
5.2.110.0230.04711.00
5.2.100.0070.03711.18
5.2.90.0100.03711.20
5.2.80.0070.04011.25
5.2.70.0070.04311.06
5.2.60.0130.03311.04
5.2.50.0000.04710.98
5.2.40.0130.03011.16
5.2.30.0070.03711.06
5.2.20.0030.04311.04
5.2.10.0070.03710.85
5.2.00.0070.03710.81
5.1.60.0000.03710.15
5.1.50.0030.03710.00
5.1.40.0070.0339.93
5.1.30.0030.03710.32
5.1.20.0070.03310.33
5.1.10.0100.03310.11
5.1.00.0030.05310.05
5.0.50.0030.0278.73
5.0.40.0030.0278.33
5.0.30.0000.0478.31
5.0.20.0100.0208.39
5.0.10.0030.0278.18
5.0.00.0070.0378.25
4.4.90.0070.0177.23
4.4.80.0070.0236.68
4.4.70.0070.0176.29
4.4.60.0000.0236.29
4.4.50.0130.0276.29
4.4.40.0030.0336.29
4.4.30.0000.0236.29
4.4.20.0030.0236.29
4.4.10.0000.0236.29
4.4.00.0030.0306.29
4.3.110.0030.0206.29
4.3.100.0070.0176.29
4.3.90.0030.0236.29
4.3.80.0000.0336.29
4.3.70.0030.0176.29
4.3.60.0000.0236.29
4.3.50.0000.0236.29
4.3.40.0030.0306.29
4.3.30.0000.0236.29
4.3.20.0070.0176.29
4.3.10.0000.0236.29
4.3.00.0170.0176.63

preferences:
42.89 ms | 401 KiB | 5 Q