3v4l.org

run code in 300+ PHP versions simultaneously
<?php final readonly class SkipParamUsedAsInvokable { public function __construct(private string $name, private object $object) {} public function render(callable $formatter): string { return $formatter($this->name, $this->object); } } $obj = new SkipParamUsedAsInvokable('name', new \stdClass()); $obj->render(ucfirst(...));

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.20.0080.00920.32
8.5.10.0090.01018.52
8.5.00.0090.01223.02
8.4.170.0040.00524.02
8.4.160.0120.01022.02
8.4.150.0020.00114.05
8.4.140.0120.01218.79
8.4.130.0430.00917.80
8.4.120.0430.01217.86
8.4.110.0400.01317.66
8.4.100.0400.01317.65
8.4.90.0420.01217.57
8.4.80.0440.01017.60
8.4.70.0490.00917.70
8.4.60.0510.00917.79
8.4.50.0460.01017.64
8.4.40.0460.01117.78
8.4.30.0470.00917.53
8.4.20.0510.01017.53
8.4.10.0420.01117.64
8.3.300.0150.00720.98
8.3.290.0130.00820.96
8.3.280.0140.00918.46
8.3.270.0310.00316.60
8.3.260.0240.00216.43
8.3.250.0320.00416.60
8.3.240.0230.01016.34
8.3.230.0370.00816.83
8.3.220.0370.00816.53
8.3.210.0370.01516.59
8.3.200.0430.00916.57
8.3.190.0410.00916.33
8.3.180.0340.01116.56
8.3.170.0370.01016.38
8.3.160.0370.01016.80
8.3.150.0370.00916.77
8.3.140.0380.01016.93
8.3.130.0360.01016.63
8.3.120.0410.00716.63
8.3.110.0380.01216.39
8.3.100.0400.01216.47
8.3.90.0420.00816.46
8.3.80.0380.01616.44
8.3.70.0420.00616.54
8.3.60.0430.00916.41
8.3.50.0380.00916.64
8.3.40.0410.00717.40
8.3.30.0280.01117.60
8.3.20.0320.01017.38
8.3.10.0280.01717.29
8.3.00.0210.00817.18
8.2.300.0120.00920.42
8.2.290.0290.00816.43
8.2.280.0340.00816.69
8.2.270.0330.00816.55
8.2.260.0290.01116.47
8.2.250.0310.01316.75
8.2.240.0370.00516.74
8.2.230.0310.00816.61
8.2.220.0330.00916.40
8.2.210.0400.00916.44
8.2.200.0340.00716.30
8.2.190.0330.00816.33
8.2.180.0310.00716.26
8.2.170.0360.00917.38
8.2.160.0310.01017.40
8.2.150.0420.00617.43
8.2.140.0360.00917.17
8.2.130.0330.01417.58
8.2.120.0380.00617.20
8.2.110.0300.01517.46
8.2.100.0300.01017.20
8.2.90.0350.01017.61
8.2.80.0330.00717.20
8.2.70.0360.00917.14
8.2.60.0420.00717.38
8.2.50.0350.00817.30
8.2.40.0350.00917.15
8.2.30.0340.01017.28
8.2.20.0380.01417.32
8.2.10.0290.01017.39
8.2.00.0310.01317.11
8.1.340.0110.00821.61

preferences:
28.66 ms | 403 KiB | 5 Q