3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private int $foo; function __construct(int $foo) { $this->foo = $foo; } function getFoo(): int { return $this->foo; } } class Baz extends Foo { function __construct(){ } } (new Baz())->getFoo();

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.4.140.0110.01017.72
8.4.130.0050.00517.85
8.4.120.0090.00724.06
8.4.110.0090.01018.92
8.4.100.0070.00218.74
8.4.90.0050.00322.30
8.4.80.0050.00419.13
8.4.70.0090.01018.96
8.4.60.0110.00918.91
8.4.50.0090.00618.60
8.4.40.0040.01219.68
8.4.30.0100.00917.94
8.4.20.0120.00917.76
8.4.10.0040.00417.68
8.3.260.0120.00916.57
8.3.250.0090.00618.83
8.3.240.0130.00616.70
8.3.230.0060.00216.58
8.3.220.0120.00718.75
8.3.210.0050.00318.65
8.3.200.0040.00416.54
8.3.190.0140.00417.18
8.3.180.0120.00718.66
8.3.170.0140.00016.86
8.3.160.0090.00917.22
8.3.150.0120.00617.02
8.3.140.0150.00020.37
8.3.130.0040.00816.61
8.3.120.0000.00918.93
8.3.110.0000.00820.94
8.3.100.0060.00318.44
8.3.90.0040.00426.77
8.3.80.0000.01016.50
8.3.70.0090.01218.43
8.3.60.0070.00716.38
8.3.50.0110.00921.90
8.3.40.0090.00918.90
8.3.30.0140.00418.80
8.3.20.0000.00720.39
8.3.10.0080.00020.52
8.3.00.0000.00820.58
8.2.290.0060.00220.19
8.2.280.0090.00918.61
8.2.270.0070.00017.13
8.2.260.0120.00616.68
8.2.250.0080.00018.55
8.2.240.0040.00417.08
8.2.230.0050.00322.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0090.00018.29
8.2.190.0160.00616.63
8.2.180.0120.00318.41
8.2.170.0140.00019.08
8.2.160.0000.01422.96
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00019.23
8.2.120.0040.00426.35
8.2.110.0040.00720.94
8.2.100.0070.00417.91
8.2.90.0040.00418.22
8.2.80.0040.00419.09
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0080.00020.36
8.2.30.0000.00720.68
8.2.20.0050.00217.55
8.2.10.0000.00717.96
8.2.00.0070.00017.97
8.1.330.0060.01319.73
8.1.320.0110.01015.85
8.1.310.0180.00016.25
8.1.300.0070.00720.04
8.1.290.0090.00330.84
8.1.280.0120.00625.92
8.1.270.0070.00023.79
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0070.01023.88
8.1.230.0080.00420.98
8.1.220.0070.00017.74
8.1.210.0040.00418.79
8.1.200.0060.00317.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0040.00420.74
8.1.150.0030.00818.82
8.1.140.0030.00519.36
8.1.130.0050.00317.60
8.1.120.0030.00417.27
8.1.110.0040.00417.38
8.1.100.0040.00417.19
8.1.90.0000.00717.22
8.1.80.0000.00817.26
8.1.70.0050.00217.36
8.1.60.0000.00817.53
8.1.50.0000.00817.47
8.1.40.0000.00917.44
8.1.30.0050.00317.55
8.1.20.0050.00317.45
8.1.10.0070.00017.36
8.1.00.0000.00717.43
8.0.300.0040.00420.02
8.0.290.0040.00416.63
8.0.280.0080.00018.31
8.0.270.0000.00717.20
8.0.260.0060.00017.09
8.0.250.0030.00316.85
8.0.240.0040.00416.88
8.0.230.0030.00316.88
8.0.220.0070.00016.93
8.0.210.0000.00716.96
8.0.200.0030.00616.98
8.0.190.0040.00416.91
8.0.180.0040.00416.80
8.0.170.0070.00016.98
8.0.160.0080.00016.96
8.0.150.0050.00216.80
8.0.140.0030.00316.81
8.0.130.0000.01013.27
8.0.120.0050.00316.86
8.0.110.0040.00416.77
8.0.100.0000.00716.67
8.0.90.0050.00316.78
8.0.80.0130.00316.89
8.0.70.0080.00016.85
8.0.60.0040.00416.92
8.0.50.0000.00716.79
8.0.30.0080.00816.80
8.0.20.0090.01117.40
8.0.10.0060.00317.01
8.0.00.0100.00816.80
7.4.330.0020.00215.08
7.4.320.0060.00016.29
7.4.300.0030.00316.54
7.4.290.0030.00316.53
7.4.280.0050.00516.51
7.4.270.0020.00516.51
7.4.260.0030.00316.47
7.4.250.0060.00316.35
7.4.240.0000.00816.43
7.4.230.0070.00016.43
7.4.220.0140.01416.49
7.4.210.0060.00916.57
7.4.200.0030.00316.44
7.4.160.0060.00916.33
7.4.150.0090.01617.40
7.4.140.0100.01017.86
7.4.130.0120.00916.41
7.4.120.0120.00516.46
7.4.110.0160.00616.49
7.4.100.0170.00316.58
7.4.90.0110.00716.26
7.4.80.0100.00619.39
7.4.70.0170.00616.66
7.4.60.0030.01216.66
7.4.50.0040.01416.36
7.4.40.0110.00616.29
7.4.30.0100.00616.58
7.3.330.0060.00013.21
7.3.320.0060.00012.99
7.3.310.0070.00016.31
7.3.300.0040.00416.14
7.3.290.0070.00816.17
7.3.280.0070.01016.18
7.3.270.0080.00917.40
7.3.260.0040.01216.30
7.3.250.0100.01016.27
7.3.240.0110.01116.28
7.3.230.0100.00716.39
7.3.210.0180.00016.18
7.3.200.0140.00316.20
7.3.190.0100.00616.25
7.3.180.0030.01316.33
7.3.170.0130.00316.30
7.3.160.0100.01016.26
7.2.330.0100.00616.48
7.2.320.0120.00616.36
7.2.310.0160.00816.30
7.2.300.0000.01616.40
7.2.290.0120.00316.30
7.0.40.1200.06720.26
7.0.30.1130.07320.32
7.0.20.1270.07020.20
7.0.10.1570.08020.29
7.0.00.0970.06320.20
5.6.190.1000.06720.41
5.6.180.1070.05720.62
5.6.170.0970.06320.40
5.6.160.0530.05720.66
5.6.150.0270.04320.43
5.6.140.0930.06020.38
5.6.130.1000.06320.46
5.6.120.1230.06320.46
5.6.110.0630.06320.59
5.6.100.1200.06020.45
5.6.90.1270.06020.43
5.6.80.1170.05019.56
5.6.70.1070.06719.84
5.6.60.0130.05319.87
5.6.50.0830.05319.60
5.6.40.0770.07019.95
5.6.30.0970.06019.66
5.6.20.0470.05719.79
5.6.10.1030.06719.76
5.6.00.1230.06319.52
5.5.330.1070.05320.33
5.5.320.1000.05720.43
5.5.310.1100.06020.49
5.5.300.1070.04720.36
5.5.290.0870.05720.27
5.5.280.0300.06020.30
5.5.270.1100.05720.25
5.5.260.1200.06020.13
5.5.250.1100.06019.80
5.5.240.1070.06319.65
5.5.230.1100.06019.73
5.5.220.0970.06019.61
5.5.210.0200.04319.69
5.5.200.1100.05019.32
5.5.190.0670.04719.61
5.5.180.0100.05719.55
5.5.160.1100.05719.32
5.5.150.1230.05719.62
5.5.140.1000.06019.32
5.5.130.1300.05319.53
5.5.120.1070.05719.31
5.5.110.1000.06019.70
5.5.100.1000.05719.26
5.5.90.0930.06719.22
5.5.80.0930.06319.24
5.5.70.0800.06319.39
5.5.60.0970.04719.21
5.5.50.0830.05319.60
5.5.40.1030.05319.59
5.5.30.0930.06019.44
5.5.20.0830.06719.38
5.5.10.0870.06719.34
5.5.00.1030.05019.35

preferences:
36.36 ms | 403 KiB | 5 Q