3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() { throw new Exception('thrown'); } public function A() { return array('a', 'b', 'c'); } public static function I() { return new A(); } } try { $A = new A(); } catch(Exception $e) { var_dump($A); }

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.0150.00316.75
8.3.50.0070.01417.80
8.3.40.0090.00618.69
8.3.30.0140.00718.84
8.3.20.0040.01120.13
8.3.10.0000.00823.61
8.3.00.0030.00519.51
8.2.180.0130.00618.67
8.2.170.0120.00322.96
8.2.160.0120.00820.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00322.26
8.2.100.0030.00917.93
8.2.90.0040.00419.21
8.2.80.0000.00917.97
8.2.70.0030.00517.36
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0040.00419.37
8.2.30.0050.00520.56
8.2.20.0040.00417.68
8.2.10.0000.00817.86
8.2.00.0000.00817.92
8.1.280.0040.01825.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.47
8.1.230.0080.00417.54
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.23
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00818.55
8.1.160.0040.00421.95
8.1.150.0000.00718.79
8.1.140.0030.00619.53
8.1.130.0050.00317.64
8.1.120.0000.00717.42
8.1.110.0000.00817.41
8.1.100.0000.00817.41
8.1.90.0080.00017.40
8.1.80.0000.00817.38
8.1.70.0070.00017.38
8.1.60.0000.00717.54
8.1.50.0030.00717.49
8.1.40.0050.00317.55
8.1.30.0050.00317.66
8.1.20.0000.00817.56
8.1.10.0040.00417.45
8.1.00.0030.00617.52
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.31
8.0.270.0070.00017.18
8.0.260.0040.00417.09
8.0.250.0070.00016.86
8.0.240.0000.00716.98
8.0.230.0070.00017.02
8.0.220.0070.00016.89
8.0.210.0000.00716.91
8.0.200.0060.00016.82
8.0.190.0030.00616.80
8.0.180.0030.00516.96
8.0.170.0040.00416.93
8.0.160.0000.00716.86
8.0.150.0000.00816.89
8.0.140.0060.00316.85
8.0.130.0030.00313.32
8.0.120.0080.00016.90
8.0.110.0080.00016.87
8.0.100.0000.00716.96
8.0.90.0000.00716.91
8.0.80.0150.00416.96
8.0.70.0030.00516.90
8.0.60.0050.00216.94
8.0.50.0070.00016.92
8.0.30.0120.00616.99
8.0.20.0060.01317.40
8.0.10.0000.00717.02
8.0.00.0110.00816.80
7.4.330.0020.00215.13
7.4.320.0000.00716.46
7.4.300.0030.00316.52
7.4.290.0030.00316.59
7.4.280.0080.00016.63
7.4.270.0000.00716.48
7.4.260.0000.00716.51
7.4.250.0000.00816.59
7.4.240.0020.00616.54
7.4.230.0070.00016.70
7.4.220.0060.01116.68
7.4.210.0150.00016.47
7.4.200.0000.00716.61
7.4.160.0030.01316.51
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0110.00716.52
7.4.120.0080.00816.46
7.4.110.0030.01616.38
7.4.100.0100.00716.58
7.4.90.0150.00816.65
7.4.80.0120.01219.39
7.4.70.0030.01916.45
7.4.60.0080.00816.79
7.4.50.0000.00516.33
7.4.40.0030.01516.45
7.4.30.0110.00616.36
7.4.00.0070.01015.21
7.3.330.0000.00613.31
7.3.320.0000.00613.16
7.3.310.0080.00016.25
7.3.300.0040.00416.17
7.3.290.0080.00916.27
7.3.280.0090.00816.30
7.3.270.0070.01017.40
7.3.260.0070.01116.49
7.3.250.0120.00616.31
7.3.240.0120.00716.47
7.3.230.0100.01316.39
7.3.210.0060.00916.44
7.3.200.0040.01416.30
7.3.190.0130.00616.30
7.3.180.0130.00316.52
7.3.170.0110.01116.38
7.3.160.0060.00916.42
7.2.330.0060.01216.64
7.2.320.0000.01816.39
7.2.310.0090.00616.32
7.2.300.0070.01316.23
7.2.290.0030.01416.41
7.2.60.0100.00316.84
7.2.00.0090.00018.98
7.1.200.0110.00315.63
7.1.100.0040.01117.75
7.1.70.0040.00416.94
7.1.60.0030.02219.48
7.1.50.0070.01316.83
7.1.00.0030.07322.44
7.0.200.0210.00314.61
7.0.60.0030.04019.91
7.0.50.0100.05017.84
7.0.40.0030.04320.21
7.0.30.0200.04020.25
7.0.20.0300.06320.08
7.0.10.0070.08720.07
7.0.00.0100.03720.18
5.6.210.0130.07720.47
5.6.200.0070.08318.18
5.6.190.0070.04020.48
5.6.180.0200.04020.68
5.6.170.0300.08020.54
5.6.160.0130.07320.49
5.6.150.0130.06718.29
5.6.140.0130.07718.17
5.6.130.0070.08718.18
5.6.120.0030.05021.00
5.6.110.0100.03721.14
5.6.100.0070.05720.99
5.6.90.0030.04320.88
5.6.80.0130.08020.41
5.5.350.3430.04720.39
5.5.340.0100.03717.98
5.5.330.0200.07020.29
5.5.320.0530.07020.36
5.5.310.0270.05320.30
5.5.300.0070.07718.08
5.5.290.0200.07317.98
5.5.280.0170.07320.86
5.5.270.0070.05720.87
5.5.260.0030.04020.77
5.5.250.0100.07320.67
5.5.240.0300.07020.27

preferences:
40.32 ms | 400 KiB | 5 Q