3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public string $a; public string $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } } // test only a $c = new C("foo", null); var_dump($c->a === "foo"); // test only b $c = new C(null, "foo"); var_dump($c->b === "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.00316.75
8.3.50.0120.00716.65
8.3.40.0120.00318.72
8.3.30.0070.01418.79
8.3.20.0040.00418.73
8.3.10.0040.00418.72
8.3.00.0040.00419.38
8.2.180.0180.00017.00
8.2.170.0060.00922.96
8.2.160.0130.00318.97
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.03
8.2.110.0140.00320.52
8.2.100.0040.00817.84
8.2.90.0000.00917.63
8.2.80.0050.00318.86
8.2.70.0050.00317.48
8.2.60.0050.00317.63
8.2.50.0080.00017.91
8.2.40.0060.00319.36
8.2.30.0100.00017.81
8.2.20.0040.00517.63
8.2.10.0070.00017.56
8.2.00.0000.00917.68
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00723.84
8.1.230.0040.00720.97
8.1.220.0040.00418.60
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0040.00418.96
8.1.150.0040.00418.54
8.1.140.0000.00717.34
8.1.130.0000.00717.25
8.1.120.0000.00717.36
8.1.110.0040.00417.23
8.1.100.0000.00817.43
8.1.90.0020.00517.30
8.1.80.0030.00517.37
8.1.70.0070.00017.33
8.1.60.0000.00817.50
8.1.50.0000.00717.48
8.1.40.0000.00917.42
8.1.30.0000.00817.69
8.1.20.0040.00417.69
8.1.10.0050.00317.48
8.1.00.0070.00317.61
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.69
8.0.270.0000.00817.22
8.0.260.0030.00316.72
8.0.250.0000.00716.91
8.0.240.0040.00417.01
8.0.230.0000.00717.03
8.0.220.0000.00716.92
8.0.210.0000.00716.83
8.0.200.0060.00016.88
8.0.190.0070.00016.97
8.0.180.0110.00016.82
8.0.170.0090.00016.75
8.0.160.0000.00816.84
8.0.150.0030.00716.76
8.0.140.0030.00716.84
8.0.130.0000.00513.30
8.0.120.0090.00016.90
8.0.110.0000.01016.89
8.0.100.0040.00417.02
8.0.90.0040.00416.87
8.0.80.0030.01216.90
8.0.70.0030.00516.78
8.0.60.0050.00516.88
8.0.50.0000.00816.96
8.0.30.0150.00617.10
8.0.20.0150.00817.08
8.0.10.0080.00016.97
8.0.00.0110.00916.71
7.4.330.0050.00013.02
7.4.320.0030.00316.36
7.4.300.0060.00016.64
7.4.290.0070.00316.59
7.4.280.0030.00616.44
7.4.270.0070.00016.53
7.4.260.0000.00513.30
7.4.250.0030.00516.61
7.4.240.0030.00516.64
7.4.230.0050.00516.36
7.4.220.0060.01816.62
7.4.210.0040.01116.57
7.4.200.0030.00316.43
7.4.190.0030.00516.47
7.4.160.0080.00716.49
7.4.150.0090.00916.53
7.4.140.0080.01116.69
7.4.130.0100.00716.55
7.4.120.0080.00816.55
7.4.110.0060.01116.61
7.4.100.0080.01616.33
7.4.90.0160.00316.72
7.4.80.0090.00919.39
7.4.70.0090.00916.35
7.4.60.0100.01116.52
7.4.50.0000.00516.45
7.4.40.0100.00716.62
7.4.30.0060.01216.63
7.3.330.0030.00313.23
7.3.320.0000.00713.18
7.3.310.0070.00016.13
7.3.300.0070.00016.20
7.3.290.0000.01316.13
7.3.280.0070.01016.09
7.3.270.0030.01516.23
7.3.260.0110.00716.33
7.3.250.0100.01016.28
7.3.240.0130.00316.20
7.3.230.0070.01016.19
7.3.210.0130.00316.32
7.3.200.0070.01316.38
7.3.190.0060.01216.29
7.3.180.0060.00916.24
7.3.170.0030.01216.44
7.3.160.0130.01016.29
7.2.330.0030.01516.50
7.2.320.0160.00616.44
7.2.310.0100.00716.49
7.2.300.0090.01216.45
7.2.290.0040.01316.64
5.4.110.0030.03316.43
5.4.100.0000.04316.31
5.4.90.0000.04316.50
5.4.80.0030.03316.52
5.4.70.0030.03316.28
5.4.60.0000.03716.43
5.4.50.0070.03016.45
5.4.40.0070.03016.48
5.4.30.0030.03316.25
5.4.20.0070.03316.44
5.4.10.0030.03316.27
5.4.00.0070.03315.79
5.3.210.0030.03714.48
5.3.200.0000.03714.71
5.3.190.0070.03314.56
5.3.180.0070.03314.55
5.3.170.0070.03314.58
5.3.160.0100.04014.55
5.3.150.0030.03314.59
5.3.140.0100.03714.56
5.3.130.0000.04714.58
5.3.120.0030.03714.60
5.3.110.0100.03014.56
5.3.100.0000.03714.03
5.3.90.0070.03013.93
5.3.80.0030.03314.01
5.3.70.0000.03713.90
5.3.60.0100.02714.05
5.3.50.0030.04314.13
5.3.40.0030.03714.10
5.3.30.0030.03313.89
5.3.20.0030.03713.57
5.3.10.0130.02313.68
5.3.00.0030.03313.52

preferences:
65.84 ms | 400 KiB | 5 Q