3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo { private $a; private function __construct($a) { $this->a = $a; } /** * @return static */ public static function create() { return new static(); } } class Bar extends Foo { public function __construct() { } } $bar = new Bar();

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.5.00.0100.01120.12
8.4.150.0020.00114.05
8.4.140.0110.01417.61
8.4.130.0090.01017.76
8.4.120.0120.00820.77
8.4.110.0070.00522.34
8.4.100.0050.00517.83
8.4.90.0070.00318.68
8.4.80.0030.00519.52
8.4.70.0080.01217.80
8.4.60.0100.01018.66
8.4.50.0110.01118.82
8.4.40.0090.00017.63
8.4.30.0120.00920.16
8.4.20.0060.01317.49
8.4.10.0030.00619.41
8.3.280.0100.01118.11
8.3.270.0080.01116.35
8.3.260.0100.00916.32
8.3.250.0080.01218.98
8.3.240.0090.01016.25
8.3.230.0120.00816.61
8.3.220.0150.00418.39
8.3.210.0100.00816.69
8.3.200.0100.01016.61
8.3.190.0090.00617.05
8.3.180.0100.00816.66
8.3.170.0030.01516.29
8.3.160.0120.00616.71
8.3.150.0090.00916.97
8.3.140.0110.00716.45
8.3.130.0000.00918.48
8.3.120.0090.00618.95
8.3.110.0000.00920.94
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0040.00419.36
8.3.70.0040.01116.38
8.3.60.0100.01318.43
8.3.50.0100.00623.63
8.3.40.0040.01118.56
8.3.30.0070.00718.57
8.3.20.0000.00820.91
8.3.10.0040.00421.60
8.3.00.0080.00021.77
8.2.290.0140.00520.60
8.2.280.0100.00818.29
8.2.270.0000.00816.43
8.2.260.0140.00419.00
8.2.250.0080.00018.59
8.2.240.0060.00318.59
8.2.230.0080.00022.58
8.2.220.0040.00437.54
8.2.210.0110.00726.77
8.2.200.0090.00018.88
8.2.190.0000.01516.63
8.2.180.0140.00718.22
8.2.170.0100.00722.96
8.2.160.0000.01520.53
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00721.13
8.2.110.0060.00320.77
8.2.100.0090.00319.38
8.2.90.0050.00317.63
8.2.80.0030.00518.79
8.2.70.0040.00417.61
8.2.60.0030.00517.38
8.2.50.0050.00318.05
8.2.40.0040.00418.03
8.2.30.0040.00419.38
8.2.20.0000.00717.98
8.2.10.0040.00419.11
8.2.00.0090.00019.15
8.1.330.0090.01123.67
8.1.320.0080.00316.31
8.1.310.0040.00416.69
8.1.300.0060.00318.07
8.1.290.0070.00730.84
8.1.280.0110.00325.92
8.1.270.0000.00722.20
8.1.260.0030.00526.35
8.1.250.0030.00528.09
8.1.240.0070.00319.44
8.1.230.0070.00421.04
8.1.220.0040.00418.64
8.1.210.0040.00418.77
8.1.200.0030.00517.53
8.1.190.0080.00017.25
8.1.180.0030.00618.10
8.1.170.0030.00518.80
8.1.160.0050.00218.84
8.1.150.0040.00418.79
8.1.140.0000.00820.77
8.1.130.0000.00720.18
8.1.120.0040.00417.41
8.1.110.0030.00517.41
8.1.100.0090.00017.46
8.1.90.0040.00417.30
8.1.80.0020.00517.30
8.1.70.0070.00017.27
8.1.60.0090.00017.43
8.1.50.0080.00017.60
8.1.40.0000.00817.57
8.1.30.0000.00817.66
8.1.20.0110.00017.62
8.1.10.0000.00717.54
8.1.00.0040.00717.43
8.0.300.0000.00718.77
8.0.290.0070.00016.58
8.0.280.0000.00818.30
8.0.270.0030.00317.87
8.0.260.0000.00620.08
8.0.250.0000.00716.80
8.0.240.0030.00316.94
8.0.230.0000.00716.80
8.0.220.0050.00316.77
8.0.210.0000.00616.80
8.0.200.0030.00316.93
8.0.190.0000.00716.77
8.0.180.0070.00416.91
8.0.170.0040.00416.87
8.0.160.0020.00516.85
8.0.150.0040.00416.88
8.0.140.0000.00716.77
8.0.130.0030.00313.30
8.0.120.0040.00416.69
8.0.110.0040.00416.82
8.0.100.0000.00716.87
8.0.90.0030.00616.80
8.0.80.0110.00716.75
8.0.70.0070.00016.80
8.0.60.0040.00416.79
8.0.50.0000.00816.86
8.0.30.0130.01316.71
8.0.20.0160.01017.39
8.0.10.0000.00716.85
8.0.00.0090.00916.81
7.4.330.0000.00516.79
7.4.320.0060.00016.50
7.4.300.0050.00216.54
7.4.290.0070.00016.49
7.4.280.0040.00416.64
7.4.270.0070.00016.51
7.4.260.0000.00513.26
7.4.250.0080.00016.57
7.4.240.0040.00316.55
7.4.230.0030.00316.70
7.4.220.0030.00316.55
7.4.210.0100.00716.57
7.4.200.0040.00416.61
7.4.140.0130.00617.86
7.4.130.0100.01016.34
7.4.120.0120.01216.31
7.4.110.0030.01316.67
7.4.100.0030.01316.37
7.4.90.0080.00816.56
7.4.80.0090.01219.39
7.4.70.0070.01016.57
7.4.60.0060.01116.42
7.4.50.0040.01416.44
7.4.40.0060.01016.31
7.4.20.0050.01216.48
7.4.10.0130.00416.21
7.4.00.0120.00316.46
7.3.330.0000.00716.24
7.3.320.0040.00413.21
7.3.310.0030.00316.13
7.3.300.0000.00716.12
7.3.290.0070.00816.21
7.3.260.0090.00916.25
7.3.240.0060.01316.25
7.3.230.0090.00916.16
7.3.210.0090.00616.13
7.3.200.0080.00816.48
7.3.190.0070.01016.29
7.3.180.0090.00616.37
7.3.170.0070.01416.23
7.3.160.0090.00616.08
7.3.130.0030.01316.14
7.3.120.0080.00816.38
7.3.110.0090.00616.12
7.3.100.0060.00916.25
7.3.90.0040.01116.23
7.3.80.0120.00916.13
7.3.70.0040.01816.11
7.3.60.0040.01116.13
7.3.50.0040.01116.21
7.3.40.0060.00916.32
7.3.30.0120.00316.16
7.3.20.0060.00916.26
7.3.10.0060.00916.39
7.3.00.0120.00316.34
7.2.330.0030.01416.52
7.2.320.0160.00016.63
7.2.310.0070.01316.59
7.2.300.0130.01016.56
7.2.290.0130.00316.30
7.2.260.0060.01016.65
7.2.250.0060.00916.56
7.2.240.0030.01216.70
7.2.230.0080.00816.45
7.2.220.0100.00716.54
7.2.210.0060.01616.59
7.2.200.0120.00416.27
7.2.190.0060.00916.44
7.2.180.0030.01316.46
7.2.170.0090.00616.35
7.2.160.0060.00916.49
7.2.150.0080.00816.30
7.2.140.0140.00316.34
7.2.130.0040.01416.49
7.2.120.0070.01016.59
7.2.110.0040.01416.64
7.2.100.0140.00316.48
7.2.90.0080.00816.36
7.2.80.0110.00716.46
7.2.70.0100.00716.47
7.2.60.0040.01216.45
7.2.50.0090.00616.42
7.2.40.0100.00716.31
7.2.30.0080.00816.48
7.2.20.0060.00916.58
7.2.10.0030.01316.50
7.2.00.0100.00716.65

preferences:
206.09 ms | 403 KiB | 5 Q