3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(callable $prop): array|callable { return fn () => true; }

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.14
8.5.10.0110.00619.35
8.5.00.0120.01119.72
8.4.170.0100.01220.50
8.4.160.0100.01123.79
8.4.150.0030.00014.05
8.4.140.0140.00717.54
8.4.130.0090.01217.50
8.4.120.0110.00520.43
8.4.110.0090.00822.34
8.4.100.0050.00417.50
8.4.90.0050.00717.53
8.4.80.0130.00717.70
8.4.70.0060.00217.64
8.4.60.0110.00917.59
8.4.50.0130.00818.45
8.4.40.0160.00317.56
8.4.30.0180.00018.72
8.4.20.0060.00319.71
8.4.10.0080.00319.14
8.3.300.0110.00920.71
8.3.290.0130.00720.81
8.3.280.0110.00918.35
8.3.270.0100.00916.31
8.3.260.0120.00716.48
8.3.250.0140.00518.68
8.3.240.0080.00316.41
8.3.230.0080.00316.79
8.3.220.0030.00517.29
8.3.210.0120.00816.73
8.3.200.0080.01016.51
8.3.190.0080.01016.96
8.3.180.0130.00618.76
8.3.170.0110.00717.20
8.3.160.0030.01616.21
8.3.150.0100.01017.07
8.3.140.0140.00018.78
8.3.130.0040.00418.22
8.3.120.0070.01118.94
8.3.110.0270.01416.49
8.3.100.0450.01016.16
8.3.90.0370.01216.18
8.3.80.0340.01616.38
8.3.70.0420.00816.47
8.3.60.0370.01116.00
8.3.50.0380.01016.12
8.3.40.0340.01217.13
8.3.30.0350.00017.25
8.3.20.0380.00017.25
8.3.10.0280.00916.98
8.3.00.0100.01416.88
8.2.300.0100.01022.05
8.2.290.0120.00620.21
8.2.280.0080.00816.38
8.2.270.0030.00516.67
8.2.260.0130.00616.25
8.2.250.0080.00316.30
8.2.240.0110.00418.82
8.2.230.0260.01316.35
8.2.220.0340.00316.39
8.2.210.0270.00416.43
8.2.200.0240.00316.50
8.2.190.0270.00316.25
8.2.180.0320.00416.03
8.2.170.0360.01217.48
8.2.160.0370.00717.38
8.2.150.0330.01117.48
8.2.140.0310.01217.25
8.2.130.0370.00617.38
8.2.120.0370.00717.38
8.2.110.0280.01617.35
8.2.100.0300.01317.24
8.2.90.0300.01317.38
8.2.80.0290.01417.13
8.2.70.0330.00917.25
8.2.60.0320.01017.13
8.2.50.0300.01717.22
8.2.40.0420.00617.35
8.2.30.0300.01017.13
8.2.20.0300.00917.34
8.2.10.0330.00717.13
8.2.00.0230.01717.38
8.1.340.0090.01117.48
8.1.330.0120.00516.34
8.1.320.0080.00416.06
8.1.310.0030.00516.55
8.1.300.0100.00017.63
8.1.290.0370.00515.88
8.1.280.0370.00915.62
8.1.270.0180.00416.76
8.1.260.0130.01917.00
8.1.250.0260.00017.00
8.1.240.0280.00916.75
8.1.230.0240.01217.00
8.1.220.0310.00817.23
8.1.210.0310.00716.88
8.1.200.0250.01316.97
8.1.190.0250.01416.88
8.1.180.0270.00817.00
8.1.170.0270.01316.88
8.1.160.0370.00316.98
8.1.150.0230.01616.98
8.1.140.0320.00716.88
8.1.130.0320.00717.00
8.1.120.0310.00717.21
8.1.110.0280.00617.00
8.1.100.0220.01316.98
8.1.90.0250.01417.13
8.1.80.0340.00017.10
8.1.70.0300.00617.00
8.1.60.0320.01017.00
8.1.50.0340.00817.22
8.1.40.0380.00816.88
8.1.30.0380.00417.35
8.1.20.0390.00317.38
8.1.10.0320.01017.13
8.1.00.0400.00316.88

preferences:
30.42 ms | 403 KiB | 5 Q