3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @link https://bugs.php.net/bug.php?id=62452 */ $handler = function($exception) { restore_exception_handler(); // boom echo "Exception handled, move along.\n"; }; set_exception_handler($handler = function($exception) { restore_exception_handler(); // boom echo "Exception handled, move along.\n"; }); $handler = NULL; throw new Exception; // fatal error: cannot destroy active lambda

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.0120.00918.40
8.3.50.0100.01021.99
8.3.40.0080.00818.82
8.3.30.0140.00020.16
8.3.20.0080.00018.77
8.3.10.0050.00321.08
8.3.00.0040.00419.68
8.2.180.0100.01316.62
8.2.170.0140.00722.96
8.2.160.0130.00320.37
8.2.150.0180.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00521.00
8.2.110.0050.00520.43
8.2.100.0030.00917.72
8.2.90.0050.00219.08
8.2.80.0000.00719.31
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0040.00418.05
8.2.30.0050.00219.52
8.2.20.0000.00717.60
8.2.10.0080.00017.77
8.2.00.0030.00717.88
8.1.280.0140.00025.92
8.1.270.0060.00323.99
8.1.260.0020.00526.35
8.1.250.0000.00828.09
8.1.240.0030.00622.45
8.1.230.0110.00020.85
8.1.220.0040.00418.77
8.1.210.0080.00018.87
8.1.200.0040.00817.35
8.1.190.0000.00917.51
8.1.180.0050.00318.10
8.1.170.0080.00018.49
8.1.160.0040.00418.86
8.1.150.0040.00418.58
8.1.140.0020.00517.38
8.1.130.0000.00717.75
8.1.120.0000.00717.48
8.1.110.0040.00417.36
8.1.100.0040.00417.49
8.1.90.0020.00517.40
8.1.80.0030.00317.35
8.1.70.0030.00317.44
8.1.60.0040.00417.57
8.1.50.0000.00717.37
8.1.40.0040.00417.43
8.1.30.0040.00417.63
8.1.20.0030.00517.65
8.1.10.0000.00817.48
8.1.00.0030.00617.52
8.0.300.0060.00320.02
8.0.290.0000.00717.30
8.0.280.0050.00318.44
8.0.270.0030.00317.17
8.0.260.0000.00716.80
8.0.250.0040.00417.02
8.0.240.0070.00316.82
8.0.230.0030.00316.94
8.0.220.0030.00316.86
8.0.210.0000.00716.88
8.0.200.0000.00717.02
8.0.190.0090.00016.92
8.0.180.0000.00716.91
8.0.170.0040.00416.79
8.0.160.0050.00217.01
8.0.150.0000.00716.87
8.0.140.0030.00516.93
8.0.130.0030.00313.37
8.0.120.0000.00816.94
8.0.110.0050.00317.06
8.0.100.0000.00716.74
8.0.90.0000.00716.94
8.0.80.0060.01216.90
8.0.70.0070.00016.87
8.0.60.0000.00716.95
8.0.50.0070.00016.96
8.0.30.0110.01017.14
8.0.20.0130.00817.40
8.0.10.0080.00016.98
8.0.00.0080.00916.88
7.4.330.0030.00316.77
7.4.320.0070.00016.41
7.4.300.0030.00316.61
7.4.290.0030.00316.51
7.4.280.0040.00416.60
7.4.270.0070.00016.43
7.4.260.0030.00313.23
7.4.250.0030.00616.48
7.4.240.0030.00316.39
7.4.230.0030.00316.47
7.4.220.0130.00316.42
7.4.210.0080.00816.57
7.4.200.0040.00416.57
7.4.190.0070.00016.54
7.4.160.0060.01016.61
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0090.00916.65
7.4.120.0100.00916.59
7.4.110.0150.00316.48
7.4.100.0000.01716.47
7.4.90.0090.00916.43
7.4.80.0060.01019.39
7.4.70.0130.00316.57
7.4.60.0090.00916.49
7.4.50.0000.00816.69
7.4.40.0130.00322.77
7.4.30.0140.00316.57
7.4.00.0030.01314.77
7.3.330.0060.00013.08
7.3.320.0050.00013.11
7.3.310.0070.00016.29
7.3.300.0000.00716.29
7.3.290.0040.01116.36
7.3.280.0080.01116.27
7.3.270.0270.01717.40
7.3.260.0130.00718.24
7.3.250.0150.00516.35
7.3.240.0040.01316.29
7.3.230.0150.00316.39
7.3.210.0130.00716.30
7.3.200.0130.00919.39
7.3.190.0120.00616.42
7.3.180.0000.01416.38
7.3.170.0110.01116.27
7.3.160.0060.01316.32
7.3.120.0000.01515.13
7.3.10.0100.00316.67
7.3.00.0100.00316.37
7.2.330.0090.01216.75
7.2.320.0100.00716.73
7.2.310.0180.00316.33
7.2.300.0080.01116.59
7.2.290.0070.01316.32
7.2.130.0130.00316.73
7.2.120.0070.00716.84
7.2.110.0130.00616.80
7.2.100.0070.00316.91
7.2.90.0070.01016.73
7.2.80.0110.01116.69
7.2.70.0050.00516.85
7.2.60.0030.01216.83
7.2.50.0120.00616.75
7.2.40.0090.00016.83
7.2.30.0000.01316.89
7.2.20.0080.00416.85
7.2.10.0090.00916.87
7.2.00.0060.00718.06
7.1.250.0090.00315.35
7.1.200.0030.00715.48
7.1.100.0030.00618.01
7.1.70.0040.01617.06
7.1.60.0100.01319.24
7.1.50.0150.00734.52
7.1.00.0000.07722.57
7.0.200.0000.00716.70
7.0.140.0030.07322.08
7.0.60.0070.07720.02
7.0.50.0100.07717.89
7.0.40.0170.07320.09
7.0.30.0370.04720.11
7.0.20.0330.07320.10
7.0.10.0100.03720.23
7.0.00.0000.04320.23
5.6.280.0000.07721.12
5.6.210.0030.08320.76
5.6.200.0100.04018.19
5.6.190.0070.06720.50
5.6.180.0330.05020.50
5.6.170.0270.04320.39
5.6.160.0070.08320.48
5.6.150.0000.04018.19
5.6.140.0000.04318.14
5.6.130.0170.07318.27
5.6.120.0130.06721.10
5.6.110.0100.06021.02
5.6.100.0070.08020.95
5.6.90.0130.07721.13
5.6.80.0070.08720.55
5.5.350.4300.04320.43
5.5.340.0130.05318.07
5.5.330.0070.08320.21
5.5.320.0600.06320.35
5.5.310.0230.04020.28
5.5.300.0100.08017.98
5.5.290.0070.04017.99
5.5.280.0000.07720.86
5.5.270.0030.07720.76
5.5.260.0100.06720.80
5.5.250.0230.07320.58
5.5.240.0170.07020.16
5.4.450.2670.04719.57
5.4.440.2530.03019.52
5.4.430.2600.03019.15
5.4.420.2900.04719.45
5.4.410.2700.03319.05
5.4.400.3030.03719.06
5.4.390.2270.03019.21
5.4.380.2530.03319.18
5.4.370.2770.04018.87
5.4.360.2700.04319.31
5.4.350.2500.04319.25
5.4.340.2530.04319.00
5.4.320.2700.03719.22
5.4.310.2570.02719.00
5.4.300.2600.04319.09
5.4.290.2570.03719.09
5.4.280.2600.03319.31
5.4.270.2700.04319.13
5.4.260.2800.04019.34
5.4.250.2830.04018.87
5.4.240.2970.04018.94
5.4.230.2700.03318.98
5.4.220.2930.04019.16
5.4.210.3000.03019.23
5.4.200.2730.03719.13
5.4.190.2800.03318.86
5.4.180.2770.04019.19
5.4.170.3000.03719.07
5.4.160.3000.03719.06
5.4.150.2630.05018.97
5.4.140.2600.04316.38
5.4.130.2530.03316.28
5.4.120.3100.03016.56
5.4.110.2530.04016.55
5.4.100.2900.03716.53
5.4.90.2870.03316.55
5.4.80.2500.04016.54
5.4.70.2700.03716.39
5.4.60.2630.03316.31
5.4.50.2530.03716.24
5.4.40.2270.04016.59
5.4.30.2900.03716.16
5.4.20.2570.03716.53
5.4.10.2770.04016.53
5.4.00.2600.03715.84
5.3.290.2700.04314.56
5.3.280.2930.04014.59
5.3.270.2900.04314.83
5.3.260.2830.04314.68
5.3.250.3130.04314.52
5.3.240.3000.03314.51
5.3.230.2630.04014.59
5.3.220.2870.04014.59
5.3.210.2630.03314.49
5.3.200.2830.03714.55
5.3.190.2770.04314.49
5.3.180.2770.04314.59
5.3.170.2730.03714.48
5.3.160.2900.04014.61
5.3.150.2600.03314.72
5.3.140.2730.04014.63
5.3.130.2630.03714.53
5.3.120.2670.04714.59
5.3.110.2670.03014.45
5.3.100.2670.03714.04
5.3.90.2570.04314.18
5.3.80.2630.03014.05
5.3.70.3170.03714.18
5.3.60.3430.04013.92
5.3.50.3000.04014.04
5.3.40.3330.03714.17
5.3.30.3130.03314.13
5.3.20.3330.03013.92
5.3.10.2970.04013.82
5.3.00.3070.03713.55
5.2.170.2470.03011.20
5.2.160.2830.02310.98
5.2.150.2930.02711.09
5.2.140.2570.02310.98
5.2.130.2470.03010.95
5.2.120.2800.03311.14
5.2.110.2400.02710.96
5.2.100.2530.03311.27
5.2.90.2670.02711.19
5.2.80.2470.03311.10
5.2.70.2570.03011.14
5.2.60.2200.02710.89
5.2.50.2530.02710.92
5.2.40.1870.03010.82
5.2.30.1970.03310.98
5.2.20.1930.03010.89
5.2.10.2000.03310.80
5.2.00.1970.02710.87
5.1.60.2000.02310.11
5.1.50.2270.0279.93
5.1.40.1600.0279.93
5.1.30.1730.02310.36
5.1.20.1730.03010.39
5.1.10.2170.02010.11
5.1.00.1770.0279.94
5.0.50.0930.0139.93
5.0.40.1130.0279.93
5.0.30.1000.0309.93
5.0.20.1130.0209.93
5.0.10.1100.0209.93
5.0.00.0600.0309.93
4.4.90.0870.0179.93
4.4.80.0970.0179.93
4.4.70.0870.0179.93
4.4.60.1030.0209.93
4.4.50.1000.0239.93
4.4.40.1000.0339.93
4.4.30.0930.0139.93
4.4.20.0800.0139.93
4.4.10.0770.0179.93
4.4.00.0630.0279.93
4.3.110.1100.0209.93
4.3.100.1300.0209.93
4.3.90.1130.0139.93
4.3.80.1000.0209.93
4.3.70.0970.0139.93
4.3.60.0930.0179.93
4.3.50.0930.0139.93
4.3.40.1400.0179.93
4.3.30.0570.0139.93
4.3.20.0430.0209.93
4.3.10.0470.0139.93
4.3.00.0670.0139.93

preferences:
61.15 ms | 400 KiB | 5 Q