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(); } } var_dump((new class extends A { public function __construct() {} })->A()[1]);

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.0160.00618.55
8.3.60.0120.00316.74
8.3.50.0100.00922.05
8.3.40.0120.00918.54
8.3.30.0120.00318.68
8.3.20.0060.00320.38
8.3.10.0040.00423.64
8.3.00.0080.00019.26
8.2.180.0100.01016.50
8.2.170.0160.00622.96
8.2.160.0060.01220.43
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.0070.00320.99
8.2.100.0090.00318.22
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0090.00018.04
8.2.50.0090.00018.07
8.2.40.0040.00419.21
8.2.30.0040.00420.63
8.2.20.0030.00617.70
8.2.10.0040.00418.13
8.2.00.0000.00718.13
8.1.280.0110.00725.92
8.1.270.0090.00623.80
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00921.31
8.1.230.0040.00717.76
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0080.00020.37
8.1.160.0040.00422.02
8.1.150.0000.00718.93
8.1.140.0040.00419.58
8.1.130.0050.00517.67
8.1.120.0000.00717.38
8.1.110.0000.00717.38
8.1.100.0080.00017.43
8.1.90.0040.00417.25
8.1.80.0000.00717.40
8.1.70.0000.00817.29
8.1.60.0030.00617.50
8.1.50.0000.00817.43
8.1.40.0060.00317.43
8.1.30.0000.00817.61
8.1.20.0070.00017.56
8.1.10.0000.00717.50
8.1.00.0030.00517.39
8.0.300.0030.00518.77
8.0.290.0070.00016.75
8.0.280.0030.00318.45
8.0.270.0030.00317.36
8.0.260.0030.00317.32
8.0.250.0040.00416.93
8.0.240.0030.00316.81
8.0.230.0070.00016.80
8.0.220.0030.00316.74
8.0.210.0000.00716.86
8.0.200.0000.00616.93
8.0.190.0080.00416.82
8.0.180.0000.00716.86
8.0.170.0000.00716.67
8.0.160.0000.00816.88
8.0.150.0040.00416.82
8.0.140.0030.00516.76
8.0.130.0000.00513.30
8.0.120.0030.00516.79
8.0.110.0040.00416.87
8.0.100.0030.00316.87
8.0.90.0030.00516.86
8.0.80.0110.00416.88
8.0.70.0040.00416.90
8.0.60.0070.00016.91
8.0.50.0030.00616.86
8.0.30.0120.00717.02
8.0.20.0110.01017.40
8.0.10.0030.00516.90
8.0.00.0090.01016.71
7.4.330.0040.00415.08
7.4.320.0080.00016.40
7.4.300.0030.00316.55
7.4.290.0040.00416.57
7.4.280.0080.00016.44
7.4.270.0000.00716.30
7.4.260.0040.00416.54
7.4.250.0000.00816.46
7.4.240.0040.00316.54
7.4.230.0000.00716.63
7.4.220.0130.01316.50
7.4.210.0070.00716.52
7.4.200.0000.00716.36
7.4.160.0110.00716.30
7.4.150.0150.00317.40
7.4.140.0110.01117.86
7.4.130.0140.00716.49
7.4.120.0080.01016.64
7.4.110.0070.01516.33
7.4.100.0140.00316.50
7.4.90.0030.01716.63
7.4.80.0110.00619.39
7.4.70.0120.00316.44
7.4.60.0110.00416.30
7.4.50.0030.00616.57
7.4.40.0090.01316.44
7.4.30.0160.00616.33
7.4.00.0070.01114.97
7.3.330.0000.00513.34
7.3.320.0000.00613.22
7.3.310.0050.00216.22
7.3.300.0000.00616.23
7.3.290.0060.01016.34
7.3.280.0100.00616.33
7.3.270.0030.01417.40
7.3.260.0080.01416.51
7.3.250.0130.00716.32
7.3.240.0090.00816.22
7.3.230.0070.01016.39
7.3.210.0060.00916.30
7.3.200.0060.01016.67
7.3.190.0080.00816.30
7.3.180.0100.00716.45
7.3.170.0180.00316.39
7.3.160.0140.00616.48
7.3.120.0110.00615.07
7.3.110.0070.01114.78
7.3.100.0110.00714.88
7.3.90.0040.01114.63
7.3.80.0110.00714.74
7.3.70.0070.00714.59
7.3.60.0060.01014.84
7.3.50.0060.00914.48
7.3.40.0110.00014.70
7.3.30.0100.00314.66
7.3.20.0000.01616.64
7.3.10.0000.00916.34
7.3.00.0080.00416.59
7.2.330.0130.00616.58
7.2.320.0100.01316.33
7.2.310.0060.00916.65
7.2.300.0100.01316.47
7.2.290.0040.01416.47
7.2.250.0060.01315.18
7.2.240.0070.01314.93
7.2.230.0070.01014.72
7.2.220.0120.00615.12
7.2.210.0000.01214.85
7.2.200.0090.00915.02
7.2.190.0030.01314.87
7.2.180.0110.00014.76
7.2.170.0060.00915.07
7.2.160.0000.01614.72
7.2.150.0030.01117.04
7.2.140.0080.00416.65
7.2.130.0060.00916.81
7.2.120.0030.01216.98
7.2.110.0060.00316.61
7.2.100.0040.01116.63
7.2.90.0130.00616.88
7.2.80.0030.01616.68
7.2.70.0030.00616.73
7.2.60.0050.01216.83
7.2.50.0060.00617.04
7.2.40.0000.00916.94
7.2.30.0000.00916.64
7.2.20.0070.01116.87
7.2.10.0070.00716.86
7.2.00.0030.01018.09
7.1.330.0000.01715.69
7.1.320.0000.01115.76
7.1.310.0110.00315.83
7.1.300.0030.01015.61
7.1.290.0110.00015.97
7.1.280.0090.00315.67
7.1.270.0040.00815.59
7.1.260.0100.00315.92
7.1.250.0060.00315.59
7.1.240.0040.01115.84
7.1.230.0000.00815.48
7.1.220.0030.01015.59
7.1.210.0070.01015.84
7.1.200.0060.00415.63
7.1.190.0070.01015.81
7.1.180.0030.00615.77
7.1.170.0070.00415.47
7.1.160.0040.01115.81
7.1.150.0040.01115.81
7.1.140.0090.00615.71
7.1.130.0070.00715.87
7.1.120.0070.00715.87
7.1.110.0030.01015.69
7.1.100.0030.00616.76
7.1.90.0120.00315.73
7.1.80.0130.00015.79
7.1.70.0030.00716.33
7.1.60.0070.01117.66
7.1.50.0030.01116.48
7.1.40.0060.00915.60
7.1.30.0080.00715.82
7.1.20.0030.01015.71
7.1.10.0030.00715.89
7.1.00.0020.04319.20
7.0.330.0130.00015.14
7.0.320.0030.00915.07
7.0.310.0000.00815.03
7.0.300.0030.00915.23
7.0.290.0030.01015.30
7.0.280.0060.00315.15
7.0.270.0060.00615.50
7.0.260.0090.00015.34
7.0.250.0040.01115.37
7.0.240.0030.00715.49
7.0.230.0090.00315.45
7.0.220.0040.00715.28
7.0.210.0060.00615.46
7.0.200.0270.00714.70
7.0.190.0060.00315.13
7.0.180.0070.00715.23
7.0.170.0060.00615.44
7.0.160.0030.01015.33
7.0.150.0090.00315.09
7.0.140.0060.00615.19
7.0.130.0070.00315.41
7.0.120.0070.00415.18
7.0.110.0070.00715.38
7.0.100.0030.00615.39
7.0.90.0100.00315.29
7.0.80.0080.00615.42
7.0.70.0100.00315.45
7.0.60.0100.04117.69
7.0.50.0030.02416.59
7.0.40.0080.02316.82
7.0.30.0160.02116.81
7.0.20.0250.03716.74
7.0.10.0060.04716.63
7.0.00.0000.02616.64
5.6.400.0040.01114.30
5.6.390.0090.00314.44
5.6.380.0000.01614.37
5.6.370.0070.00314.24
5.6.360.0000.01414.40
5.6.350.0150.00013.97
5.6.340.0030.00514.04
5.6.330.0060.00613.82
5.6.320.0060.00614.23
5.6.310.0060.00614.32
5.6.300.0030.00514.10
5.6.290.0050.00514.30
5.6.280.0000.02217.60
5.6.270.0000.01114.42
5.6.260.0000.00914.38
5.6.250.0070.00414.07
5.6.240.0060.00914.37
5.6.230.0000.01814.07
5.6.220.0000.01514.33
5.6.210.0020.04117.34
5.6.200.0080.02616.23
5.6.190.0100.03717.39
5.6.180.0100.02817.18
5.6.170.0220.03817.31
5.6.160.0030.04117.35
5.6.150.0020.02916.12
5.6.140.0050.03316.26
5.6.130.0050.03016.25
5.6.120.0070.04917.49
5.6.110.0070.02517.67
5.6.100.0050.03017.73
5.6.90.0150.02717.68
5.6.80.0050.04017.21
5.6.70.0040.00713.86
5.6.60.0040.00814.05
5.6.50.0080.00613.98
5.6.40.0030.01214.16
5.6.30.0000.01713.96
5.6.20.0100.00014.14
5.6.10.0070.00713.94
5.6.00.0040.00814.03
5.5.380.0100.00714.09
5.5.370.0030.00713.84
5.5.360.0060.00614.05
5.5.350.2040.02217.27
5.5.340.0060.03815.86
5.5.330.0090.02916.92
5.5.320.0070.04117.25
5.5.310.0170.02817.29
5.5.300.0090.02615.95
5.5.290.0060.04815.95
5.5.280.0020.03317.35
5.5.270.0080.03317.42
5.5.260.0160.03117.51
5.5.250.0050.02417.43
5.5.240.0150.04217.14
5.5.230.0030.00614.04
5.5.220.0080.00813.78
5.5.210.0070.00413.61
5.5.200.0030.01313.74
5.5.190.0060.00913.67
5.5.180.0030.00913.74
5.5.170.0110.00314.05
5.5.160.0030.00613.84
5.5.150.0090.00613.73
5.5.140.0120.00314.03
5.5.130.0120.00314.02
5.5.120.0000.01713.89
5.5.110.0070.00314.08
5.5.100.0040.00714.09
5.5.90.0040.00814.15
5.5.80.0040.00813.81
5.5.70.0000.01313.94
5.5.60.0040.01114.00
5.5.50.0110.00013.93
5.5.40.0000.00814.06
5.5.30.0070.00414.12
5.5.20.0000.01113.64
5.5.10.0070.00714.25
5.5.00.0060.00614.16

preferences:
67.92 ms | 401 KiB | 5 Q