3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ini_get('zend.enable_gc')); class A { public static $B = array(); } class Controller { public function throwException() { throw new Exception("Test"); } } 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'); A::$B['Handler'] = new ExceptionHandler; A::$B['Controller'] = new Controller; A::$B['Controller']->throwException();

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.70.0070.00718.41
8.3.60.0090.00918.65
8.3.50.0150.00821.97
8.3.40.0040.01618.82
8.3.30.0140.00018.88
8.3.20.0040.00418.62
8.3.10.0000.01421.09
8.3.00.0040.00421.77
8.2.180.0140.00416.38
8.2.170.0110.00422.96
8.2.160.0110.00320.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0110.00326.16
8.2.120.0050.00321.00
8.2.110.0090.00020.35
8.2.100.0070.00417.84
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0130.00317.24
8.2.60.0050.00317.93
8.2.50.0040.00718.07
8.2.40.0000.00818.34
8.2.30.0050.00321.10
8.2.20.0000.00717.59
8.2.10.0020.00517.81
8.2.00.0080.00317.84
8.1.280.0150.00625.92
8.1.270.0080.00023.99
8.1.260.0110.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00022.42
8.1.230.0040.00721.04
8.1.220.0040.00418.77
8.1.210.0040.00419.04
8.1.200.0030.00617.35
8.1.190.0080.00017.52
8.1.180.0050.00318.10
8.1.170.0080.00018.56
8.1.160.0000.00718.83
8.1.150.0030.00618.60
8.1.140.0000.00717.27
8.1.130.0030.00317.64
8.1.120.0040.00417.32
8.1.110.0030.00417.45
8.1.100.0050.00217.29
8.1.90.0000.00817.44
8.1.80.0030.00617.32
8.1.70.0000.00717.43
8.1.60.0100.00017.62
8.1.50.0050.00317.52
8.1.40.0020.00517.55
8.1.30.0030.00517.61
8.1.20.0000.00817.59
8.1.10.0000.00817.63
8.1.00.0000.00817.39
8.0.300.0030.00619.93
8.0.290.0040.00417.17
8.0.280.0000.00818.39
8.0.270.0030.00317.20
8.0.260.0070.00016.88
8.0.250.0040.00416.95
8.0.240.0030.00616.86
8.0.230.0070.00016.87
8.0.220.0040.00416.94
8.0.210.0040.00416.76
8.0.200.0000.00616.96
8.0.190.0030.00316.93
8.0.180.0060.00316.83
8.0.170.0030.00616.89
8.0.160.0040.00416.79
8.0.150.0040.00416.97
8.0.140.0030.00316.95
8.0.130.0000.00513.37
8.0.120.0000.00716.92
8.0.110.0040.00416.88
8.0.100.0000.00816.95
8.0.90.0040.00417.02
8.0.80.0090.00916.93
8.0.70.0040.00416.86
8.0.60.0020.00516.96
8.0.50.0040.00416.96
8.0.30.0080.01117.15
8.0.20.0120.00717.40
8.0.10.0000.00716.99
8.0.00.0100.01016.74
7.4.330.0000.00516.85
7.4.320.0000.00616.62
7.4.300.0060.00016.43
7.4.290.0070.00016.43
7.4.280.0060.00616.51
7.4.270.0030.00316.56
7.4.260.0030.00313.27
7.4.250.0040.00416.54
7.4.240.0030.00316.57
7.4.230.0000.00816.41
7.4.220.0120.00616.38
7.4.210.0040.01016.50
7.4.200.0070.00016.31
7.4.190.0000.00716.69
7.4.160.0190.00016.56
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0090.01316.67
7.4.120.0100.00916.63
7.4.110.0080.00816.64
7.4.100.0060.01116.55
7.4.90.0090.01516.56
7.4.80.0000.01719.39
7.4.70.0090.01216.46
7.4.60.0060.00916.63
7.4.50.0040.00416.25
7.4.40.0090.00622.77
7.4.30.0000.01616.50
7.4.10.0100.00714.94
7.4.00.0060.00915.05
7.3.330.0050.00013.29
7.3.320.0090.00413.23
7.3.310.0040.00416.47
7.3.300.0040.00416.30
7.3.290.0130.00616.42
7.3.280.0080.01016.43
7.3.270.0150.00417.40
7.3.260.0140.00718.24
7.3.250.0090.01016.49
7.3.240.0080.00816.64
7.3.230.0060.01516.60
7.3.210.0070.01116.46
7.3.200.0070.01019.39
7.3.190.0000.02216.34
7.3.180.0130.00416.38
7.3.170.0140.00316.37
7.3.160.0120.00316.58
7.3.130.0100.00715.03
7.3.120.0080.01014.89
7.3.110.0080.01014.98
7.3.100.0100.00514.85
7.3.90.0080.00514.84
7.3.80.0090.00514.73
7.3.70.0030.01014.53
7.3.60.0030.01014.85
7.3.50.0070.00614.86
7.3.40.0060.00814.80
7.3.30.0050.00714.77
7.3.20.0080.00516.62
7.3.10.0050.00416.68
7.3.00.0030.00916.71
7.2.330.0070.01116.71
7.2.320.0090.01016.77
7.2.310.0060.01216.64
7.2.300.0110.00616.41
7.2.290.0140.00316.55
7.2.260.0030.01615.18
7.2.250.0130.00714.89
7.2.240.0070.01214.97
7.2.230.0080.00615.07
7.2.220.0070.00414.84
7.2.210.0070.00714.87
7.2.200.0070.00714.95
7.2.190.0070.00514.79
7.2.180.0070.00515.13
7.2.170.0100.00314.93
7.2.160.0090.00615.10
7.2.150.0030.00716.97
7.2.140.0100.00316.46
7.2.130.0090.00616.98
7.2.120.0070.00716.61
7.2.110.0060.00316.61
7.2.100.0070.00317.04
7.2.90.0090.00017.06
7.2.80.0040.00717.00
7.2.70.0070.00716.89
7.2.60.0030.01116.97
7.2.50.0100.00616.91
7.2.40.0100.00716.99
7.2.30.0000.01016.96
7.2.20.0100.00716.97
7.2.10.0030.01016.86
7.2.00.0050.00918.11
7.1.330.0090.00615.62
7.1.320.0070.00615.84
7.1.310.0060.00615.81
7.1.300.0050.00615.77
7.1.290.0030.00815.69
7.1.280.0050.00815.79
7.1.270.0030.01015.88
7.1.260.0040.00915.71
7.1.250.0060.00915.87
7.1.240.0100.00315.87
7.1.230.0030.00715.66
7.1.220.0000.01015.67
7.1.210.0030.01015.77
7.1.200.0070.00715.72
7.1.190.0030.00915.59
7.1.180.0080.00415.80
7.1.170.0000.01415.77
7.1.160.0050.00515.86
7.1.150.0050.00815.56
7.1.140.0040.00415.66
7.1.130.0030.00715.74
7.1.120.0070.00315.98
7.1.110.0120.00315.91
7.1.100.0030.01016.96
7.1.90.0000.01015.96
7.1.80.0000.01415.86
7.1.70.0050.00716.56
7.1.60.0050.00717.62
7.1.50.0080.00816.39
7.1.40.0050.00615.63
7.1.30.0040.01115.51
7.1.20.0030.01015.68
7.1.10.0060.00915.59
7.1.00.0080.01719.03
7.0.330.0050.00515.23
7.0.320.0100.00315.38
7.0.310.0130.00015.37
7.0.300.0030.01415.48
7.0.290.0030.00615.40
7.0.280.0030.01415.38
7.0.270.0040.00715.40
7.0.260.0000.01215.40
7.0.250.0040.00815.43
7.0.240.0000.00915.30
7.0.230.0060.00615.59
7.0.220.0060.00615.52
7.0.210.0000.01415.40
7.0.200.0050.00516.13
7.0.190.0130.00015.17
7.0.180.0000.01115.16
7.0.170.0000.01415.44
7.0.160.0030.00615.38
7.0.150.0030.01215.17
7.0.140.0020.04418.76
7.0.130.0070.00315.34
7.0.120.0000.01215.07
7.0.110.0040.00815.38
7.0.100.0070.00315.51
7.0.90.0040.01115.56
7.0.80.0070.01015.40
7.0.70.0070.04218.42
7.0.60.0090.03918.61
7.0.50.0120.03718.73
7.0.40.0070.04316.75
7.0.30.0050.04416.81
7.0.20.0060.02716.86
7.0.10.0030.04416.69
7.0.00.0070.04516.70
5.6.400.0070.01014.69
5.6.390.0120.00414.30
5.6.380.0000.01314.54
5.6.370.0080.00414.24
5.6.360.0090.00314.50
5.6.350.0080.00414.48
5.6.340.0000.01414.59
5.6.330.0050.00514.29
5.6.320.0030.00914.29
5.6.310.0000.00814.29
5.6.300.0030.01314.28
5.6.290.0000.01414.47
5.6.280.0020.04117.43
5.6.270.0070.00714.30
5.6.260.0000.01514.64
5.6.250.0060.00914.39
5.6.240.0040.01114.42
5.6.230.0100.00314.48
5.6.220.0050.04317.42
5.6.210.0050.03917.30
5.6.200.0030.05017.63
5.6.190.0120.04017.81
5.6.180.0080.04317.72
5.6.170.0050.04617.68
5.6.160.0020.04617.67
5.6.150.0100.04017.54
5.6.140.0050.04617.84
5.6.130.0080.04217.78
5.6.120.0080.04517.81
5.6.110.0070.04617.75
5.6.100.0000.04317.84
5.6.90.0070.04417.59
5.6.80.0050.04417.41
5.6.70.0050.04017.38
5.6.60.0020.04517.29
5.6.50.0020.04717.26
5.6.40.0070.03317.39
5.6.30.0030.03817.37
5.6.20.0020.02517.44
5.6.10.0020.03117.29
5.6.00.0040.02417.35
5.5.380.0140.00014.49
5.5.370.0000.01414.32
5.5.360.0060.04517.35
5.5.350.0100.03817.28
5.5.340.0030.04517.54
5.5.330.0080.04217.50
5.5.320.0030.05017.56
5.5.310.0070.04017.59
5.5.300.0070.04417.58
5.5.290.0070.04217.63
5.5.280.0030.04617.56
5.5.270.0080.04317.74
5.5.260.0050.03817.63
5.5.250.0040.04117.44
5.5.240.0100.03717.29
5.5.230.0060.04317.23
5.5.220.0080.04017.08
5.5.210.0020.04517.20
5.5.200.0020.04617.34
5.5.190.0030.04017.21
5.5.180.0030.04717.19
5.5.170.0040.00414.18
5.5.160.0050.02717.29
5.5.150.0080.02117.17
5.5.140.0020.02217.30
5.5.130.0020.02317.22
5.5.120.0070.02117.24
5.5.110.0050.02217.31
5.5.100.0030.02017.28
5.5.90.0080.02017.05
5.5.80.0070.01717.20
5.5.70.0020.02217.12
5.5.60.0060.02017.09
5.5.50.0050.01917.08
5.5.40.0030.02317.02
5.5.30.0030.02317.24
5.5.20.0040.02217.23
5.5.10.0050.02117.16
5.5.00.0060.02116.91
5.4.450.0050.03815.15
5.4.440.0020.04315.13
5.4.430.0070.03815.30
5.4.420.0070.03715.20
5.4.410.0090.03615.20
5.4.400.0030.04015.04
5.4.390.0030.04315.00
5.4.380.0040.04115.06
5.4.370.0100.02814.97
5.4.360.0060.04015.04
5.4.350.0000.04015.16
5.4.340.0080.02215.00
5.4.330.0040.00710.95
5.4.320.0070.02515.02
5.4.310.0050.02115.10
5.4.300.0020.02014.96
5.4.290.0020.02314.99
5.4.280.0050.01814.93
5.4.270.0000.02515.04
5.4.260.0070.01815.11
5.4.250.0050.01715.09
5.4.240.0030.01915.19
5.4.230.0070.01315.06
5.4.220.0020.02015.04
5.4.210.0030.02014.96
5.4.200.0000.02015.21
5.4.190.0040.02115.06
5.4.180.0030.02115.07
5.4.170.0030.01915.01
5.4.160.0050.02015.02
5.4.150.0020.01915.20
5.4.140.0040.01513.77
5.4.130.0050.01713.65
5.4.120.0040.01713.79
5.4.110.0020.02213.65
5.4.100.0040.01613.79
5.4.90.0040.01813.73
5.4.80.0030.01513.73
5.4.70.0010.01913.82
5.4.60.0030.01813.89
5.4.50.0020.01613.86
5.4.40.0060.01513.79
5.4.30.0040.01713.70
5.4.20.0060.01513.74
5.4.10.0020.01713.63
5.4.00.0050.01313.45
5.3.290.0070.03512.80
5.3.280.0020.01912.79
5.3.270.0000.02112.75
5.3.260.0040.01712.83
5.3.250.0030.02012.84
5.3.240.0030.01612.76
5.3.230.0040.01912.85
5.3.220.0020.02012.79
5.3.210.0000.02512.80
5.3.200.0040.02212.79
5.3.190.0020.01812.77
5.3.180.0030.01812.75
5.3.170.0030.01812.80
5.3.160.0010.01912.79
5.3.150.0050.01312.79
5.3.140.0020.01812.78
5.3.130.0030.01812.74
5.3.120.0030.01712.74
5.3.110.0000.02012.74
5.3.100.0030.01512.55
5.3.90.0050.01912.54
5.3.80.0020.01712.54
5.3.70.0030.01812.49
5.3.60.0000.02012.45
5.3.50.0030.01612.46
5.3.40.0030.02212.47
5.3.30.0000.02412.46
5.3.20.0000.01812.29
5.3.10.0050.01512.34
5.3.00.0020.01912.37
5.2.170.0000.02712.41
5.2.160.0000.02712.41
5.2.150.0030.02712.41
5.2.140.0000.03312.41
5.2.130.0000.02312.41
5.2.120.0000.02312.41
5.2.110.0030.02012.41
5.2.100.0000.04012.41
5.2.90.0030.03312.41
5.2.80.0000.02712.41
5.2.70.0030.05012.41
5.2.60.0000.02312.41
5.2.50.0000.04312.41
5.2.40.0000.04012.41
5.2.30.0030.04312.41
5.2.20.0030.05312.41
5.2.10.0030.06012.41
5.2.00.0000.06312.41
5.1.60.0030.04712.41
5.1.50.0070.05012.41
5.1.40.0030.05312.41
5.1.30.0030.06012.41
5.1.20.0000.05312.41
5.1.10.0030.05312.41
5.1.00.0100.05012.41
5.0.50.0030.04312.41
5.0.40.0070.03712.41
5.0.30.0070.05712.41
5.0.20.0030.04312.41
5.0.10.0000.04012.41
5.0.00.0100.06012.41
4.4.90.0000.01712.41
4.4.80.0000.01312.41
4.4.70.0000.03712.41
4.4.60.0030.03012.41
4.4.50.0070.03012.41
4.4.40.0030.05312.41
4.4.30.0000.03712.41
4.4.20.0000.03012.41
4.4.10.0070.03312.41
4.4.00.0000.05312.41
4.3.110.0000.03712.41
4.3.100.0030.03012.41
4.3.90.0030.03012.41
4.3.80.0030.05312.41
4.3.70.0000.03312.41
4.3.60.0030.03312.41
4.3.50.0000.03012.41
4.3.40.0030.04712.41
4.3.30.0030.02712.41
4.3.20.0070.03012.41
4.3.10.0000.03012.41
4.3.00.0000.04012.41

preferences:
60.87 ms | 401 KiB | 5 Q