3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $name; public function __construct(string $name) { $this->name = $name; } public function __toString() { return $this->name; } } function f(string $a, C $b, int $c) : void { var_dump($a, $b, $c); } $a = new C('a'); $b = new C('b'); $c = new C('c'); f($a, $b, $c);

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.0120.00918.57
8.3.50.0070.01116.38
8.3.40.0120.00318.61
8.3.30.0110.00318.79
8.3.20.0070.00020.89
8.3.10.0080.00023.61
8.3.00.0050.00319.66
8.2.180.0090.00918.38
8.2.170.0040.01122.96
8.2.160.0150.00020.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0100.00726.35
8.2.110.0060.00320.41
8.2.100.0090.00317.97
8.2.90.0050.00319.26
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0000.00918.10
8.2.40.0000.00720.55
8.2.30.0070.00019.36
8.2.20.0050.00318.14
8.2.10.0050.00218.06
8.2.00.0040.00418.09
8.1.280.0080.01225.92
8.1.270.0040.01523.92
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.01022.53
8.1.230.0070.00419.01
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0050.00517.23
8.1.180.0080.00018.10
8.1.170.0040.00418.66
8.1.160.0030.00318.93
8.1.150.0050.00320.72
8.1.140.0080.00319.47
8.1.130.0040.00418.82
8.1.120.0000.00817.45
8.1.110.0000.00817.43
8.1.100.0040.00417.50
8.1.90.0040.00417.41
8.1.80.0000.00917.36
8.1.70.0000.00717.50
8.1.60.0030.00517.56
8.1.50.0000.00817.43
8.1.40.0000.00817.43
8.1.30.0080.00017.55
8.1.20.0030.00717.70
8.1.10.0050.00317.60
8.1.00.0060.00317.41
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0000.00817.18
8.0.260.0000.00716.90
8.0.250.0000.00716.97
8.0.240.0000.00816.99
8.0.230.0000.00717.02
8.0.220.0040.00416.93
8.0.210.0080.00016.96
8.0.200.0080.00016.99
8.0.190.0040.00417.04
8.0.180.0050.00317.00
8.0.170.0070.00017.04
8.0.160.0000.00716.86
8.0.150.0050.00216.88
8.0.140.0070.00016.77
8.0.130.0050.00013.42
8.0.120.0040.00416.89
8.0.110.0000.00816.93
8.0.100.0070.00016.87
8.0.90.0000.00816.80
8.0.80.0100.00716.84
8.0.70.0020.00516.80
8.0.60.0040.00416.96
8.0.50.0030.00316.98
8.0.30.0080.01017.05
8.0.20.0100.00917.40
8.0.10.0000.00716.99
8.0.00.0060.01216.99
7.4.330.0050.00015.55
7.4.320.0060.00016.52
7.4.300.0030.00316.47
7.4.290.0030.00316.64
7.4.280.0050.00316.52
7.4.270.0000.00716.48
7.4.260.0060.00013.24
7.4.250.0050.00316.63
7.4.240.0000.00716.53
7.4.230.0030.00316.33
7.4.220.0110.00716.48
7.4.210.0100.00616.61
7.4.200.0040.00416.73
7.4.160.0130.00316.54
7.4.150.0100.00717.40
7.4.140.0120.01017.86
7.4.130.0140.00716.32
7.4.120.0110.01016.67
7.4.110.0090.01516.57
7.4.100.0120.00616.46
7.4.90.0100.00716.50
7.4.80.0140.00319.39
7.4.70.0070.01016.41
7.4.60.0070.01016.41
7.4.50.0040.01416.29
7.4.40.0060.01016.77
7.4.30.0030.01316.55
7.4.00.0060.01014.91
7.3.330.0000.00713.36
7.3.320.0050.00013.36
7.3.310.0000.00716.37
7.3.300.0030.00316.38
7.3.290.0000.00716.38
7.3.280.0100.00716.34
7.3.270.0030.01417.40
7.3.260.0140.00316.48
7.3.250.0130.00916.35
7.3.240.0070.01016.37
7.3.230.0090.01216.41
7.3.210.0100.00616.40
7.3.200.0060.00916.37
7.3.190.0140.00316.49
7.3.180.0120.01016.42
7.3.170.0090.00916.45
7.3.160.0130.00316.38
7.3.10.0060.00616.77
7.3.00.0080.00616.73
7.2.330.0030.01416.40
7.2.320.0160.01016.73
7.2.310.0060.01216.63
7.2.300.0100.01016.75
7.2.290.0140.00316.75
7.2.130.0000.01316.88
7.2.120.0140.00316.68
7.2.110.0000.01016.70
7.2.100.0130.00316.85
7.2.90.0060.00616.72
7.2.80.0030.01316.81
7.2.70.0100.00316.90
7.2.60.0090.00716.76
7.2.50.0000.01016.80
7.2.40.0040.00816.84
7.2.30.0080.00517.01
7.2.20.0080.00317.02
7.2.10.0090.00616.92
7.2.00.0070.00716.91
7.1.250.0040.01115.82
7.1.200.0030.01015.73
7.1.100.0060.00617.86
7.1.70.0020.00517.22
7.1.60.2600.01733.31
7.1.50.2230.02732.91
7.1.40.1470.01332.46
7.1.30.1900.01332.70
7.1.20.1930.01332.71
7.1.10.1200.01314.85
7.1.00.1930.01014.86
7.0.200.1700.00714.81
7.0.190.2530.01014.82
7.0.180.1870.01314.31
7.0.170.2630.02714.52
7.0.160.2300.01314.37
7.0.150.1470.01314.59
7.0.140.2100.01314.75
7.0.130.1800.01314.61
7.0.120.1870.01014.73
7.0.110.2700.01314.52
7.0.100.0100.01314.22
7.0.90.0400.03014.66
7.0.80.2200.01314.45
7.0.70.0670.01714.60
7.0.60.0130.01014.29
7.0.50.0000.02014.71
7.0.40.0170.01314.82
7.0.30.3030.02014.67
7.0.20.0270.01314.52
7.0.10.0100.01014.47
7.0.00.0070.01314.28

preferences:
43.77 ms | 400 KiB | 5 Q