3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $a; private $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function doSomethingWithA() { /**/ } public function doSomethingWithB() { /**/ } } $c = new C("foo", null); assert($c->a === "foo");

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.00616.75
8.3.50.0120.01021.95
8.3.40.0100.00718.79
8.3.30.0070.00719.27
8.3.20.0080.00020.21
8.3.10.0080.00023.61
8.3.00.0040.00420.64
8.2.180.0090.00616.75
8.2.170.0030.01022.96
8.2.160.0000.01422.13
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00722.13
8.2.110.0090.00022.12
8.2.100.0130.00317.72
8.2.90.0050.00219.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0060.00319.31
8.2.30.0070.00017.93
8.2.20.0000.00717.77
8.2.10.0020.00517.56
8.2.00.0080.00017.66
8.1.280.0090.00625.92
8.1.270.0030.00623.88
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0000.01219.15
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0030.00517.30
8.1.180.0050.00318.10
8.1.170.0060.00318.52
8.1.160.0000.00721.96
8.1.150.0040.00418.44
8.1.140.0000.00717.39
8.1.130.0030.00317.86
8.1.120.0080.00017.41
8.1.110.0070.00017.39
8.1.100.0050.00317.45
8.1.90.0040.00417.30
8.1.80.0030.00317.44
8.1.70.0000.00717.37
8.1.60.0030.00617.59
8.1.50.0000.00817.49
8.1.40.0050.00317.57
8.1.30.0050.00517.62
8.1.20.0000.00817.54
8.1.10.0000.00817.54
8.1.00.0000.00717.41
8.0.300.0030.00318.77
8.0.290.0040.00417.18
8.0.280.0000.00718.30
8.0.270.0030.00517.93
8.0.260.0030.00316.86
8.0.250.0030.00316.80
8.0.240.0060.00316.91
8.0.230.0030.00316.93
8.0.220.0030.00316.79
8.0.210.0000.00716.80
8.0.200.0040.00416.91
8.0.190.0080.00016.88
8.0.180.0000.00716.94
8.0.170.0080.00016.91
8.0.160.0040.00416.86
8.0.150.0000.00716.94
8.0.140.0050.00216.75
8.0.130.0000.00613.35
8.0.120.0000.00916.88
8.0.110.0040.00416.87
8.0.100.0070.00016.96
8.0.90.0000.00716.96
8.0.80.0060.00916.94
8.0.70.0000.00716.86
8.0.60.0040.00416.79
8.0.50.0050.00316.96
8.0.30.0110.00716.86
8.0.20.0100.01117.40
8.0.10.0040.00416.87
8.0.00.0110.00716.77
7.4.330.0020.00215.00
7.4.320.0060.00016.53
7.4.300.0030.00316.43
7.4.290.0030.00316.41
7.4.280.0040.00416.52
7.4.270.0000.00716.65
7.4.260.0030.00316.50
7.4.250.0030.00516.56
7.4.240.0050.00216.56
7.4.230.0000.00716.64
7.4.220.0080.00916.59
7.4.210.0070.00916.56
7.4.200.0030.00316.43
7.4.190.0040.00416.74
7.4.160.0140.00616.63
7.4.150.0110.00717.40
7.4.140.0080.00917.86
7.4.130.0120.00516.51
7.4.120.0080.00916.58
7.4.110.0040.01316.47
7.4.100.0150.00316.52
7.4.90.0070.01016.55
7.4.80.0080.01116.39
7.4.70.0000.01616.55
7.4.60.0090.00916.55
7.4.50.0090.00016.43
7.4.40.0030.01322.77
7.4.30.0040.01216.50
7.4.00.0040.00815.18
7.3.330.0000.00613.35
7.3.320.0050.00013.21
7.3.310.0040.00416.15
7.3.300.0000.00716.23
7.3.290.0110.00416.33
7.3.280.0040.01316.27
7.3.270.0140.00317.40
7.3.260.0090.00916.61
7.3.250.0100.00716.48
7.3.240.0080.00816.48
7.3.230.0120.00616.39
7.3.210.0150.00316.30
7.3.200.0110.00819.39
7.3.190.0090.00916.44
7.3.180.0110.00416.48
7.3.170.0140.00016.41
7.3.160.0070.01116.29
7.3.120.0030.00714.94
7.2.330.0100.00716.60
7.2.320.0080.01216.68
7.2.310.0120.01016.69
7.2.300.0130.01016.78
7.2.290.0100.00616.44
7.2.60.0100.00316.88
7.2.00.0040.00819.41
7.1.200.0030.00915.79
7.1.100.0090.00617.63
7.1.70.0000.00716.71
7.1.60.0070.01719.29
7.1.50.0090.01516.80
7.1.00.0030.07722.25
7.0.200.0080.00816.68
7.0.140.0030.07321.96
7.0.60.0030.08019.97
7.0.50.0130.07317.88
7.0.40.0000.05020.02
7.0.30.0270.09020.20
7.0.20.0300.04020.13
7.0.10.0100.08320.18
7.0.00.0230.03320.05
5.6.280.0070.07320.82
5.6.210.0130.08020.62
5.6.200.0100.07018.16
5.6.190.0100.03720.61
5.6.180.0370.04320.64
5.6.170.0170.04020.55
5.6.160.0100.04720.62
5.6.150.0030.06318.18
5.6.140.0070.08318.25
5.6.130.0100.07718.13
5.6.120.0170.07020.89
5.6.110.0130.07321.01
5.6.100.0070.06320.99
5.6.90.0070.08320.97
5.6.80.0070.08020.54
5.5.350.0130.06720.45
5.5.340.0030.07717.99
5.5.330.0000.04320.35
5.5.320.3770.03720.51
5.5.310.0200.08720.23
5.5.300.0070.08318.04
5.5.290.0070.08018.08
5.5.280.0130.07720.97
5.5.270.0000.06020.64
5.5.260.0100.08320.80
5.5.250.0030.04020.70
5.5.240.0030.06320.36
5.4.450.0230.04719.57
5.4.440.0370.05019.20
5.4.430.0270.04319.56
5.4.420.0400.06019.38
5.4.410.0270.04019.28
5.4.400.0230.04018.95
5.4.390.0300.03319.31
5.4.380.0270.03718.95
5.4.370.0270.03719.14
5.4.360.0300.03719.23
5.4.350.0200.04319.20
5.4.340.0330.03319.24
5.4.320.0330.03319.21
5.4.310.0330.03719.12
5.4.300.0230.05319.04
5.4.290.0230.04019.09
5.4.280.0300.03719.22
5.4.270.0330.03719.16
5.4.260.0370.03319.14
5.4.250.0370.04319.18
5.4.240.0230.04019.08
5.4.230.0270.04319.19
5.4.220.0330.03718.97
5.4.210.0230.04019.30
5.4.200.0270.03719.14
5.4.190.0270.03718.86
5.4.180.0330.03019.15
5.4.170.0400.03719.23
5.4.160.0230.04019.21
5.4.150.0200.04319.29
5.4.140.0300.03016.49
5.4.130.0200.04016.64
5.4.120.0270.04016.36
5.4.110.0300.03716.37
5.4.100.0200.04016.30
5.4.90.0230.03716.54
5.4.80.0230.03716.46
5.4.70.0330.03316.54
5.4.60.0330.03316.16
5.4.50.0400.02716.53
5.4.40.0270.03316.23
5.4.30.0230.05716.37
5.4.20.0300.03316.52
5.4.10.0270.03316.48
5.4.00.0230.04316.09
5.3.290.0230.04014.75
5.3.280.0270.03314.50
5.3.270.0300.04314.76
5.3.260.0230.04014.53
5.3.250.0230.04014.53
5.3.240.0370.07014.70
5.3.230.0330.06714.57
5.3.220.0300.06714.71
5.3.210.0300.03314.54
5.3.200.0230.04014.64
5.3.190.0330.03014.54
5.3.180.0200.05014.54
5.3.170.0230.04014.47
5.3.160.0270.06314.68
5.3.150.0330.06314.49
5.3.140.0270.04714.70
5.3.130.0400.05714.52
5.3.120.0230.05714.46
5.3.110.0230.04014.65
5.3.100.0370.06314.03
5.3.90.0430.06014.03
5.3.80.0370.05714.12
5.3.70.0230.04014.04
5.3.60.0330.07014.09
5.3.50.0330.03314.18
5.3.40.0400.06713.88
5.3.30.0270.06014.03
5.3.20.0270.04013.83
5.3.10.0330.02713.63
5.3.00.0400.05713.55
5.2.170.0370.02312.29
5.2.160.0330.05012.29
5.2.150.0170.03712.29
5.2.140.0300.05312.29
5.2.130.0200.03712.29
5.2.120.0170.03312.29
5.2.110.0270.05312.29
5.2.100.0200.03012.29
5.2.90.0230.03012.29
5.2.80.0300.04712.29
5.2.70.0230.03712.29
5.2.60.0230.03012.29
5.2.50.0330.03012.29
5.2.40.0300.02712.29
5.2.30.0230.06012.29
5.2.20.0270.04312.29
5.2.10.0200.03312.29
5.2.00.0200.05312.29
5.1.60.0130.03012.29
5.1.50.0270.02712.29
5.1.40.0230.03012.29
5.1.30.0330.04312.29
5.1.20.0200.02712.29
5.1.10.0200.05312.29
5.1.00.0200.02312.29
5.0.50.0130.04712.29
5.0.40.0070.02312.29
5.0.30.0100.05712.29
5.0.20.0030.02312.29
5.0.10.0100.02712.29
5.0.00.0100.06712.29
4.4.90.0130.03312.29
4.4.80.0130.02012.29
4.4.70.0130.03712.29
4.4.60.0170.02712.29
4.4.50.0200.02712.29
4.4.40.0130.03712.29
4.4.30.0100.02012.29
4.4.20.0100.01312.29
4.4.10.0170.03312.29
4.4.00.0170.03712.29
4.3.110.0100.03012.29
4.3.100.0070.02312.29
4.3.90.0130.01712.29
4.3.80.0170.05012.29
4.3.70.0130.02012.29
4.3.60.0130.01312.29
4.3.50.0100.02712.29
4.3.40.0130.02712.29
4.3.30.0100.03312.29
4.3.20.0030.01712.29
4.3.10.0030.02012.29
4.3.00.0100.02012.29

preferences:
50.56 ms | 401 KiB | 5 Q