3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; $c = static fn (array $bar): array => [$foo, $bar]; var_dump(($c)(['bar']));

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.0100.00920.35
8.4.110.0090.01020.76
8.4.100.0150.00617.73
8.4.90.0040.00517.73
8.4.80.0110.00622.18
8.4.70.0130.00717.65
8.4.60.0110.00918.68
8.4.50.0070.00418.52
8.4.40.0080.00017.77
8.4.30.0120.00820.38
8.4.20.0030.01721.08
8.4.10.0080.00019.43
8.3.250.0100.00918.80
8.3.240.0100.00916.56
8.3.230.0100.00916.56
8.3.220.0030.00419.10
8.3.210.0080.01116.64
8.3.200.0050.00316.38
8.3.190.0110.00817.22
8.3.180.0110.00816.55
8.3.170.0150.00417.39
8.3.160.0120.00617.18
8.3.150.0040.01117.11
8.3.140.0040.00416.58
8.3.130.0330.01016.44
8.3.120.0420.00016.46
8.3.110.0440.00816.35
8.3.100.0380.00616.52
8.3.90.0400.00616.45
8.3.80.0360.01116.20
8.3.70.0360.01016.30
8.3.60.0350.01116.25
8.3.50.0350.00916.45
8.3.40.0280.00817.65
8.3.30.0240.00717.41
8.3.20.0400.00617.00
8.3.10.0300.00317.56
8.3.00.0240.01217.38
8.2.290.0100.00918.75
8.2.280.0090.00518.30
8.2.270.0070.01117.04
8.2.260.0120.00316.89
8.2.250.0260.01316.67
8.2.240.0290.00616.59
8.2.230.0340.00316.37
8.2.220.0320.00616.37
8.2.210.0350.00316.43
8.2.200.0280.01216.52
8.2.190.0330.00716.40
8.2.180.0280.01016.43
8.2.170.0360.00417.71
8.2.160.0310.00917.77
8.2.150.0300.01117.25
8.2.140.0330.00917.28
8.2.130.0340.00917.33
8.2.120.0320.01017.40
8.2.110.0360.00417.71
8.2.100.0390.00417.60
8.2.90.0240.01217.61
8.2.80.0350.00417.29
8.2.70.0260.01317.46
8.2.60.0290.01217.58
8.2.50.0310.01017.57
8.2.40.0340.01117.37
8.2.30.0280.01117.46
8.2.20.0400.00017.48
8.2.10.0250.01217.39
8.2.00.0390.00417.09
8.1.330.0110.00816.05
8.1.320.0090.00916.20
8.1.310.0140.00318.57
8.1.300.0370.00416.18
8.1.290.0200.00716.18
8.1.280.0340.00316.18
8.1.270.0300.01617.54
8.1.260.0270.00717.50
8.1.250.0280.00717.43
8.1.240.0270.00317.00
8.1.230.0290.00417.13
8.1.220.0230.01317.39
8.1.210.0310.01117.17
8.1.200.0300.00717.18
8.1.190.0310.00617.07
8.1.180.0330.00317.27
8.1.170.0300.00517.19
8.1.160.0260.01017.19
8.1.150.0290.00717.25
8.1.140.0270.01316.77
8.1.130.0260.00417.02
8.1.120.0250.00917.16
8.1.110.0230.00617.16
8.1.100.0330.00317.15
8.1.90.0250.01117.35
8.1.80.0310.00517.35
8.1.70.0360.00017.08
8.1.60.0390.00017.44
8.1.50.0320.00917.13
8.1.40.0310.01017.16
8.1.30.0260.01017.48
8.1.20.0380.00317.46
8.1.10.0390.01117.23
8.1.00.0330.00917.26

preferences:
30.03 ms | 403 KiB | 5 Q