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(); } } class B extends A { } var_dump((new B())->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.0110.00416.58
8.3.60.0060.00916.75
8.3.50.0150.00522.11
8.3.40.0040.01118.79
8.3.30.0090.00918.84
8.3.20.0070.00020.35
8.3.10.0030.00623.65
8.3.00.0050.00319.38
8.2.180.0150.00018.16
8.2.170.0110.00322.96
8.2.160.0090.00620.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0070.00321.89
8.2.100.0100.00317.80
8.2.90.0060.00319.27
8.2.80.0040.00417.97
8.2.70.0000.00817.62
8.2.60.0050.00317.68
8.2.50.0030.00618.07
8.2.40.0000.00819.46
8.2.30.0040.00420.70
8.2.20.0040.00417.55
8.2.10.0060.00317.91
8.2.00.0000.00718.05
8.1.280.0110.01125.92
8.1.270.0060.01023.97
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00620.64
8.1.230.0110.00017.63
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0090.00017.10
8.1.180.0040.00418.10
8.1.170.0050.00318.53
8.1.160.0050.00321.96
8.1.150.0040.00418.78
8.1.140.0000.00819.37
8.1.130.0030.00517.62
8.1.120.0080.00017.39
8.1.110.0030.00617.36
8.1.100.0000.00717.23
8.1.90.0050.00217.32
8.1.80.0020.00517.34
8.1.70.0000.00717.21
8.1.60.0030.00617.47
8.1.50.0000.00817.41
8.1.40.0040.00417.51
8.1.30.0030.00517.61
8.1.20.0080.00017.53
8.1.10.0050.00317.55
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.32
8.0.270.0030.00517.25
8.0.260.0030.00317.20
8.0.250.0080.00017.01
8.0.240.0040.00417.01
8.0.230.0070.00016.86
8.0.220.0030.00516.80
8.0.210.0040.00416.80
8.0.200.0060.00016.97
8.0.190.0040.00816.93
8.0.180.0050.00316.88
8.0.170.0030.00516.96
8.0.160.0000.00716.88
8.0.150.0000.00716.76
8.0.140.0050.00216.86
8.0.130.0000.00513.33
8.0.120.0030.00516.77
8.0.110.0020.00516.88
8.0.100.0000.00716.88
8.0.90.0070.00016.88
8.0.80.0000.01516.93
8.0.70.0020.00517.02
8.0.60.0050.00216.84
8.0.50.0040.00416.80
8.0.30.0090.01016.84
8.0.20.0110.00717.40
8.0.10.0000.00716.79
8.0.00.0080.01116.69
7.4.330.0030.00315.08
7.4.320.0060.00016.39
7.4.300.0040.00416.45
7.4.290.0070.00016.46
7.4.280.0000.00716.52
7.4.270.0030.00316.53
7.4.260.0030.00316.34
7.4.250.0030.00516.44
7.4.240.0020.00616.39
7.4.230.0070.00016.34
7.4.220.0000.01816.42
7.4.210.0060.00916.59
7.4.200.0000.00716.55
7.4.160.0160.00616.63
7.4.150.0040.01417.40
7.4.140.0090.00917.86
7.4.130.0040.01316.42
7.4.120.0080.01316.53
7.4.110.0090.00916.50
7.4.100.0080.00816.38
7.4.90.0110.00716.57
7.4.80.0110.00619.39
7.4.70.0130.00316.53
7.4.60.0130.00316.68
7.4.50.0030.00616.56
7.4.40.0070.01016.47
7.4.30.0100.00716.40
7.4.00.0060.00615.11
7.3.330.0030.00313.29
7.3.320.0060.00013.13
7.3.310.0000.00716.32
7.3.300.0070.00016.21
7.3.290.0080.00816.27
7.3.280.0080.00916.28
7.3.270.0110.01117.40
7.3.260.0150.00716.30
7.3.250.0140.00516.41
7.3.240.0120.00516.36
7.3.230.0100.00716.39
7.3.210.0100.00616.41
7.3.200.0060.01016.25
7.3.190.0070.01016.32
7.3.180.0080.00816.39
7.3.170.0060.01016.28
7.3.160.0060.00916.43
7.3.120.0100.00314.96
7.3.110.0070.00714.74
7.3.100.0040.01114.63
7.3.90.0030.00714.64
7.3.80.0000.01414.91
7.3.70.0000.01414.61
7.3.60.0080.00814.88
7.3.50.0100.00314.79
7.3.40.0040.01114.88
7.3.30.0110.00314.85
7.3.20.0100.00716.68
7.3.10.0060.00816.58
7.3.00.0030.01416.64
7.2.330.0120.00616.70
7.2.320.0080.01116.47
7.2.310.0080.00816.50
7.2.300.0060.01216.61
7.2.290.0060.01216.29
7.2.240.0080.00815.04
7.2.230.0000.01015.10
7.2.220.0040.00814.54
7.2.210.0030.01414.77
7.2.200.0070.00714.96
7.2.190.0070.01014.94
7.2.180.0070.01014.91
7.2.170.0070.01014.72
7.2.160.0030.01215.02
7.2.150.0080.00316.75
7.2.140.0040.01116.58
7.2.130.0060.01016.57
7.2.120.0070.01016.85
7.2.110.0040.01116.69
7.2.100.0040.01416.73
7.2.90.0000.01216.68
7.2.80.0060.00616.86
7.2.70.0090.00616.68
7.2.60.0040.01016.71
7.2.50.0030.01316.59
7.2.40.0100.00616.92
7.2.30.0060.00616.87
7.2.20.0040.01116.79
7.2.10.0030.01516.77
7.2.00.0080.00518.10
7.1.330.0060.00915.57
7.1.320.0060.00615.68
7.1.310.0040.00715.77
7.1.300.0000.00915.65
7.1.290.0000.00915.66
7.1.280.0050.00515.73
7.1.270.0070.00415.73
7.1.260.0030.01015.68
7.1.250.0000.01115.50
7.1.200.0120.00315.63
7.1.100.0000.01118.22
7.1.70.0000.00716.60
7.1.60.0100.00719.48
7.1.50.0000.02116.64
7.1.00.0100.06722.36
7.0.200.0310.00314.12
7.0.60.0330.06719.89
7.0.50.0100.03317.88
7.0.40.0000.04720.11
7.0.30.0230.09020.30
7.0.20.0300.05320.02
7.0.10.0000.08320.07
7.0.00.0100.03720.16
5.6.280.0000.03321.08
5.6.210.0070.05720.67
5.6.200.0100.07718.19
5.6.190.0100.07720.46
5.6.180.0130.04720.67
5.6.170.0230.04020.50
5.6.160.0070.08020.49
5.6.150.0070.06718.12
5.6.140.0030.08018.26
5.6.130.0030.05318.17
5.6.120.0030.08721.04
5.6.110.0070.03721.13
5.6.100.0030.04321.00
5.6.90.0030.05321.13
5.6.80.0100.07720.39
5.5.350.0070.06720.53
5.5.340.0000.04017.95
5.5.330.0000.04320.21
5.5.320.0030.08720.27
5.5.310.0370.07020.32
5.5.300.0030.04317.97
5.5.290.0130.07718.07
5.5.280.0000.04720.79
5.5.270.0100.08720.84
5.5.260.0030.05720.65
5.5.250.0170.07020.68
5.5.240.0000.08020.23

preferences:
50.52 ms | 401 KiB | 5 Q