3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; define('C', static fn (array $bar): array => [$foo, $bar]); var_dump((C)(['bar'])); #[SomeAttr(C)] function baz() {}

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.4.120.0060.00420.40
8.4.110.0060.01319.05
8.4.100.0050.00717.77
8.4.90.0130.00817.69
8.4.80.0060.00417.67
8.4.70.0120.00817.59
8.4.60.0030.00517.56
8.4.50.0100.01020.70
8.4.40.0130.00717.53
8.4.30.0070.01020.45
8.4.20.0170.00321.25
8.4.10.0040.00419.63
8.3.250.0100.00818.72
8.3.240.0090.01016.57
8.3.230.0060.01316.37
8.3.220.0080.00718.79
8.3.210.0100.01016.79
8.3.200.0130.00716.35
8.3.190.0130.00516.79
8.3.180.0100.01018.66
8.3.170.0030.01017.26
8.3.160.0110.00718.44
8.3.150.0040.01417.10
8.3.140.0160.00316.55
8.3.130.0150.00916.18
8.3.120.0090.00616.18
8.3.110.0050.00516.23
8.3.100.0070.00416.25
8.3.90.0050.00516.41
8.3.80.0030.00716.18
8.3.70.0100.00016.31
8.3.60.0100.00016.23
8.3.50.0030.00716.25
8.3.40.0070.00417.10
8.3.30.0000.00917.23
8.3.20.0030.00917.48
8.3.10.0080.00417.47
8.3.00.0070.00417.26
8.2.290.0120.00620.56
8.2.280.0070.00316.48
8.2.270.0130.00316.72
8.2.260.0050.00317.39
8.2.250.0060.00316.30
8.2.240.0070.00316.36
8.2.230.0060.00316.39
8.2.220.0060.00316.21
8.2.210.0000.00916.18
8.2.200.0090.00316.18
8.2.190.0120.00216.22
8.2.180.0120.00016.18
8.2.170.0110.00317.07
8.2.160.0150.00017.05
8.2.150.0050.01016.86
8.2.140.0100.00517.10
8.2.130.0140.00517.05
8.2.120.0160.00017.18
8.2.110.0200.00016.99
8.2.100.0140.00417.24
8.2.90.0170.00017.18
8.2.80.0130.00416.67
8.2.70.0090.00517.25
8.2.60.0070.00717.21
8.2.50.0110.00517.12
8.2.40.0120.00417.23
8.2.30.0160.00017.26
8.2.20.0100.00516.88
8.2.10.0180.00017.16
8.2.00.0160.00016.63
8.1.330.0100.00816.49
8.1.320.0100.00815.92
8.1.310.0160.00318.20
8.1.300.0170.00016.18
8.1.290.0090.00616.21
8.1.280.0100.00316.18
8.1.270.0150.00017.16
8.1.260.0090.00517.11
8.1.250.0170.00016.74
8.1.240.0090.00616.73
8.1.230.0120.00016.98
8.1.220.0150.00016.99
8.1.210.0090.00416.98
8.1.200.0150.00016.69
8.1.190.0100.00316.80
8.1.180.0110.00316.98
8.1.170.0120.00316.90
8.1.160.0140.00017.21
8.1.150.0090.00317.02
8.1.140.0110.00416.80
8.1.130.0090.00616.99
8.1.120.0140.00017.18
8.1.110.0120.00316.79
8.1.100.0110.00317.15
8.1.90.0110.00416.89
8.1.80.0060.00917.10
8.1.70.0140.00017.03
8.1.60.0110.00417.23
8.1.50.0140.00017.23
8.1.40.0140.00016.96
8.1.30.0100.00816.33
8.1.20.0170.00017.09
8.1.10.0130.00316.74
8.1.00.0050.01017.22

preferences:
27.27 ms | 403 KiB | 5 Q