3v4l.org

run code in 500+ PHP versions simultaneously
<?php class C { public function __construct(private int $y) {} public function do(int $x) { return $this->y + $x; } } $c = new C(2); $fn = $c->do(...); print $fn(3);

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.70.0050.01216.79
8.5.60.0080.00916.86
8.5.50.0110.00616.76
8.5.30.0090.00719.62
8.5.20.0120.00619.31
8.5.10.0060.00321.88
8.5.00.0090.01219.91
8.4.220.0100.01019.46
8.4.210.0170.00819.43
8.4.180.0130.00919.56
8.4.170.0130.00919.81
8.4.160.0060.00423.93
8.4.150.0080.00416.80
8.4.140.0120.01117.82
8.4.130.0140.00518.63
8.4.120.0100.00924.13
8.4.110.0110.00818.73
8.4.100.0060.00417.95
8.4.90.0100.00920.52
8.4.80.0180.00417.84
8.4.70.0050.00817.83
8.4.60.0130.00818.71
8.4.50.0100.00919.70
8.4.40.0090.00619.38
8.4.30.0070.01418.91
8.4.20.0060.01322.43
8.4.10.0060.00323.70
8.3.310.0100.01018.37
8.3.300.0140.00720.14
8.3.290.0100.00920.71
8.3.280.0140.00618.22
8.3.270.0130.00616.51
8.3.260.0130.00616.72
8.3.250.0130.00618.73
8.3.240.0040.00516.97
8.3.230.0100.00816.40
8.3.220.0050.00318.98
8.3.210.0050.00216.50
8.3.200.0040.00316.74
8.3.190.0100.00817.07
8.3.180.0090.00918.45
8.3.170.0100.00720.48
8.3.160.0040.00418.61
8.3.150.0050.01416.72
8.3.140.0040.01518.59
8.3.130.0070.00416.61
8.3.120.0030.00618.78
8.3.110.0080.01218.36
8.3.100.0130.00618.35
8.3.50.0150.00018.56
8.2.300.0120.00722.27
8.2.290.0050.00316.44
8.2.280.0120.00620.39
8.2.270.0120.00320.66
8.2.260.0170.00016.41
8.2.250.0040.00416.73
8.2.240.0070.01416.69
8.2.230.0000.00818.16
8.2.220.0160.00316.71
8.2.40.0090.00318.55
8.2.10.0040.00417.52
8.2.00.0030.00517.52
8.1.340.0120.01019.72
8.1.330.0130.00516.24
8.1.320.0130.00520.04
8.1.310.0040.00418.38
8.1.300.0130.00717.81
8.1.140.0040.00417.38
8.1.130.0000.00817.45
8.1.120.0040.00417.39
8.1.110.0040.00417.38
8.1.100.0040.00417.50
8.1.90.0000.00717.37
8.1.80.0080.00017.45
8.1.70.0040.00417.41
8.1.60.0000.00817.64
8.1.50.0040.00417.62
8.1.40.0000.00817.63
8.1.30.0030.00617.64
8.1.20.0000.00817.61
8.1.10.0070.00017.51
8.1.00.0060.00317.51
8.0.270.0040.00416.77
8.0.260.0000.00816.79
8.0.250.0070.00016.71
8.0.240.0030.00316.90
8.0.230.0000.00716.95
8.0.220.0040.00416.87
8.0.210.0070.00016.84
8.0.200.0040.00418.73
8.0.190.0000.00816.78
8.0.180.0000.00716.90
8.0.170.0000.00816.72
8.0.160.0070.00016.84
8.0.150.0000.00716.66
8.0.140.0070.00016.72
8.0.130.0050.00216.70
8.0.120.0000.00716.71
8.0.110.0000.00816.68
8.0.100.0040.00416.68
8.0.90.0040.00416.76
8.0.80.0030.00316.78
8.0.70.0080.00016.71
8.0.60.0040.00416.68
8.0.50.0070.00016.69
8.0.30.0000.00816.79
8.0.20.0080.00016.89
8.0.10.0000.00816.80

preferences:
66.81 ms | 925 KiB | 5 Q