3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ini_get('zend.enable_gc')); class ExceptionHandler { public function __construct() { set_exception_handler($this); } public function __invoke(Exception $e) { echo $exception->getMessage(); } } function error($no, $message) { throw new Exception($message); } set_error_handler('error'); new ExceptionHandler; throw new Exception("Test");

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.0090.00916.50
8.3.50.0070.00918.17
8.3.40.0070.00718.84
8.3.30.0040.01118.67
8.3.20.0170.00318.96
8.3.10.0000.00920.57
8.3.00.0030.00719.38
8.2.180.0150.00318.41
8.2.170.0040.01122.96
8.2.160.0090.00618.89
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0090.00020.34
8.2.110.0050.00520.34
8.2.100.0080.00417.78
8.2.90.0040.00417.75
8.2.80.0080.00017.97
8.2.70.0050.00318.03
8.2.60.0000.00917.80
8.2.50.0000.00818.10
8.2.40.0080.00020.61
8.2.30.0080.00018.07
8.2.20.0040.00419.28
8.2.10.0040.00417.66
8.2.00.0070.00417.74
8.1.280.0110.00425.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.95
8.1.230.0040.00719.05
8.1.220.0000.00817.75
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.01118.37
8.1.160.0000.00722.13
8.1.150.0000.00718.50
8.1.140.0040.00417.41
8.1.130.0030.00317.84
8.1.120.0040.00417.39
8.1.110.0040.00417.41
8.1.100.0000.00717.39
8.1.90.0000.00717.41
8.1.80.0000.00717.43
8.1.70.0030.00317.27
8.1.60.0070.00017.56
8.1.50.0040.00417.34
8.1.40.0000.00717.30
8.1.30.0000.00717.57
8.1.20.0000.00817.58
8.1.10.0000.00717.42
8.1.00.0070.00017.43
8.0.300.0040.00419.73
8.0.290.0000.00716.75
8.0.280.0070.00018.39
8.0.270.0000.00717.21
8.0.260.0000.00716.82
8.0.250.0040.00416.94
8.0.240.0000.00816.85
8.0.230.0000.00816.98
8.0.220.0000.00716.84
8.0.210.0000.00716.86
8.0.200.0030.00316.95
8.0.190.0040.00416.96
8.0.180.0040.00416.92
8.0.170.0060.00316.75
8.0.160.0080.00016.93
8.0.150.0000.00916.89
8.0.140.0030.00616.98
8.0.130.0070.00013.43
8.0.120.0040.00416.90
8.0.110.0030.00516.79
8.0.100.0030.00516.98
8.0.90.0000.00716.91
8.0.80.0060.01017.02
8.0.70.0040.00416.91
8.0.60.0070.00016.77
8.0.50.0040.00416.83
8.0.30.0150.00616.95
8.0.20.0100.01017.15
8.0.10.0070.00017.00
8.0.00.0130.00916.74
7.4.330.0000.00512.86
7.4.320.0030.00316.56
7.4.300.0030.00316.43
7.4.290.0000.00616.44
7.4.280.0050.00316.43
7.4.270.0000.00616.54
7.4.260.0050.00013.23
7.4.250.0040.00416.53
7.4.240.0050.00216.54
7.4.230.0000.00716.36
7.4.220.0120.00916.61
7.4.210.0060.00916.46
7.4.200.0000.00716.63
7.4.190.0000.00716.50
7.4.160.0080.00816.56
7.4.150.0060.01216.46
7.4.140.0070.01016.58
7.4.130.0130.00416.58
7.4.120.0140.00916.34
7.4.110.0070.01016.35
7.4.100.0070.01316.41
7.4.90.0100.01316.43
7.4.80.0050.01319.39
7.4.70.0180.00316.24
7.4.60.0070.01016.63
7.4.50.0000.00516.51
7.4.40.0040.01116.47
7.4.30.0140.01016.54
7.4.00.0070.01015.08
7.3.330.0060.00013.15
7.3.320.0030.00313.29
7.3.310.0000.00716.41
7.3.300.0000.00616.23
7.3.290.0050.00916.37
7.3.280.0110.00516.39
7.3.270.0090.00916.56
7.3.260.0120.01216.49
7.3.250.0060.01316.59
7.3.240.0080.00816.46
7.3.230.0160.00016.64
7.3.210.0030.01716.50
7.3.200.0100.00616.49
7.3.190.0040.01816.64
7.3.180.0130.00616.33
7.3.170.0160.00716.50
7.3.160.0050.00916.38
7.3.120.0070.00714.74
7.3.10.0160.00716.42
7.3.00.0160.00616.44
7.2.330.0090.01016.66
7.2.320.0120.00616.56
7.2.310.0040.01516.57
7.2.300.0130.00316.38
7.2.290.0140.00616.47
7.2.130.0050.01316.43
7.2.120.0120.00416.56
7.2.110.0120.00916.49
7.2.100.0130.00616.53
7.2.90.0100.00916.69
7.2.80.0130.00815.98
7.2.70.0240.01116.72
7.2.60.0100.00816.60
7.2.50.0100.01016.42
7.2.40.0120.00716.54
7.2.30.0080.01016.52
7.2.20.0060.01016.60
7.2.10.0130.00716.43
7.2.00.0120.00517.54
7.1.250.0100.00615.33
7.1.200.0060.00615.60
7.1.100.0000.01018.04
7.1.70.0040.01216.86
7.1.60.0100.01319.17
7.1.50.0040.01816.86
7.1.00.0030.07022.33
7.0.200.0000.00916.82
7.0.140.0070.07021.98
7.0.120.0030.06722.16
7.0.60.0070.05320.03
7.0.50.0000.06317.78
7.0.40.0100.07320.23
7.0.30.0370.04720.06
7.0.20.0130.04720.07
7.0.10.0300.04720.21
7.0.00.0000.08320.15
5.6.280.0030.07320.91
5.6.210.0070.07020.65
5.6.200.0170.07318.25
5.6.190.0000.04720.33
5.6.180.0170.04320.35
5.6.170.0400.07320.56
5.6.160.0030.08720.46
5.6.150.0130.07318.27
5.6.140.0070.04018.18
5.6.130.0030.06718.21
5.6.120.0100.05021.03
5.6.110.0100.03321.04
5.6.100.0070.06321.00
5.6.90.0100.03720.98
5.6.80.0030.06020.42
5.6.70.0200.04320.39
5.5.350.0300.08020.42
5.5.340.0100.08017.96
5.5.330.0070.06020.27
5.5.320.0230.05720.26
5.5.310.0200.06320.30
5.5.300.0030.08317.94
5.5.290.0070.08317.95
5.5.280.0100.08320.97
5.5.270.0100.04720.95
5.5.260.0170.08320.95
5.5.250.0070.07020.61
5.5.240.0100.05020.16
5.4.450.0030.04019.48
5.4.440.0070.03719.54
5.4.430.0070.08319.47
5.4.420.0070.04019.47
5.4.410.0100.06319.32
5.4.400.0030.05719.01
5.4.390.0030.04019.24
5.4.380.0070.07319.20
5.4.370.0070.03719.14
5.4.360.0100.03019.24
5.4.350.0030.04018.98
5.4.340.0030.07318.87
5.4.320.0030.05019.26
5.4.310.0100.03319.00
5.4.300.0030.05718.85
5.4.290.0100.06319.14
5.4.280.0030.03718.88
5.4.270.0070.03719.11
5.4.260.0000.04019.14
5.4.250.0000.04019.23
5.4.240.0030.04318.87
5.4.230.0100.04019.09
5.4.220.0030.05319.23
5.4.210.0030.05019.23
5.4.200.0030.08018.99
5.4.190.0000.04718.99
5.4.180.0000.04319.16
5.4.170.0030.03719.14
5.4.160.0000.04319.13
5.4.150.0030.03718.95
5.4.140.0030.03716.48
5.4.130.0000.05316.42
5.4.120.0030.03716.42
5.4.110.0030.03716.34
5.4.100.0030.03716.32
5.4.90.0030.03316.43
5.4.80.0030.03716.70
5.4.70.0130.02716.45
5.4.60.0100.02716.40
5.4.50.0030.03316.43
5.4.40.0070.03316.50
5.4.30.0000.03716.42
5.4.20.0070.03016.27
5.4.10.0030.03316.27
5.4.00.0030.03315.86
5.3.290.0070.08014.73
5.3.280.0070.03714.49
5.3.270.0000.04314.67
5.3.260.0070.07714.67
5.3.250.0030.04314.61
5.3.240.0070.03314.63
5.3.230.0000.04714.66
5.3.220.0000.04014.65
5.3.210.0030.03714.57
5.3.200.0030.03714.62
5.3.190.0000.04014.59
5.3.180.0070.03314.50
5.3.170.0030.04014.58
5.3.160.0100.03014.53
5.3.150.0030.03714.57
5.3.140.0000.04014.63
5.3.130.0000.04014.44
5.3.120.0030.04014.61
5.3.110.0100.03014.55
5.3.100.0030.03714.09
5.3.90.0000.03714.06
5.3.80.0070.03314.02
5.3.70.0030.03314.02
5.3.60.0000.03714.08
5.3.50.0000.03713.97
5.3.40.0070.03014.00
5.3.30.0070.03013.97
5.3.20.0070.03013.59
5.3.10.0000.03713.66
5.3.00.0030.03313.69
5.2.170.0000.03011.22
5.2.160.0070.02311.07
5.2.150.0000.03311.21
5.2.140.0000.03011.12
5.2.130.0030.03011.08
5.2.120.0030.02711.16
5.2.110.0030.02711.18
5.2.100.0000.03011.13
5.2.90.0030.03011.11
5.2.80.0000.03011.05
5.2.70.0000.03011.17
5.2.60.0030.02711.20
5.2.50.0030.02711.18
5.2.40.0000.03310.89
5.2.30.0000.03310.93
5.2.20.0000.03311.12
5.2.10.0030.06011.01
5.2.00.0030.03010.80
5.1.60.0030.0279.91
5.1.50.0030.0309.93
5.1.40.0030.02710.14
5.1.30.0000.02710.50
5.1.20.0000.03010.25
5.1.10.0030.05710.09
5.1.00.0000.03310.05
5.0.50.0070.0309.13
5.0.40.0000.0379.13
5.0.30.0030.0509.13
5.0.20.0030.0409.13
5.0.10.0000.0379.13
5.0.00.0000.0339.13
4.4.90.0070.0109.13
4.4.80.0000.0179.13
4.4.70.0030.0339.13
4.4.60.0030.0379.13
4.4.50.0000.0279.13
4.4.40.0030.0409.13
4.4.30.0000.0239.13
4.4.20.0000.0209.13
4.4.10.0000.0179.13
4.4.00.0030.0279.13
4.3.110.0000.0339.13
4.3.100.0030.0339.13
4.3.90.0000.0409.13
4.3.80.0000.0239.13
4.3.70.0000.0379.13
4.3.60.0000.0179.13
4.3.50.0000.0179.13
4.3.40.0000.0239.13
4.3.30.0000.0179.13
4.3.20.0000.0209.13
4.3.10.0030.0139.13
4.3.00.0000.0179.13

preferences:
40.16 ms | 401 KiB | 5 Q