3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(\array $array) {} foo([]); //TypeError: foo(): Argument #1 ($array) must be of type array, array given, function goo(\callable $callable) {} goo(strlen(...)); //TypeError: foo(): Argument #1 ($array) must be of type callable, array Colsure, function hoo(\int $int) {} hoo(1); //Type declaration 'int' must be unqualifid

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.80.0100.01119.46
8.4.70.0090.00817.61
8.4.60.0410.00817.47
8.4.50.0390.00817.82
8.4.40.0260.00517.48
8.4.30.0400.00917.67
8.4.20.0450.00717.44
8.4.10.0330.01317.41
8.3.220.0160.00816.97
8.3.210.0100.00416.97
8.3.200.0370.00916.97
8.3.190.0330.00816.97
8.3.180.0170.00416.97
8.3.170.0410.00816.97
8.3.160.0400.00716.97
8.3.150.0400.00916.97
8.3.140.0370.01416.97
8.3.130.0350.00516.97
8.3.120.0360.00816.97
8.3.110.0300.00516.97
8.3.100.0360.00716.97
8.3.90.0440.00516.97
8.3.80.0430.00916.97
8.3.70.0440.00716.97
8.3.60.0360.00816.97
8.3.50.0190.00416.97
8.3.40.0160.00617.38
8.3.30.0180.00117.57
8.3.20.0310.01017.43
8.3.10.0230.01117.47
8.3.00.0200.00517.61
8.2.280.0320.00816.97
8.2.270.0320.00816.97
8.2.260.0360.00616.97
8.2.250.0340.00716.97
8.2.240.0350.00516.97
8.2.230.0300.01216.97
8.2.220.0310.01016.97
8.2.210.0400.00616.97
8.2.200.0310.01116.97
8.2.190.0380.00416.97
8.2.180.0140.00916.97
8.2.170.0170.00417.68
8.2.160.0150.00417.72
8.2.150.0340.00917.34
8.2.140.0350.00917.54
8.2.130.0370.00817.31
8.2.120.0330.01117.50
8.2.110.0360.00817.62
8.2.100.0340.00917.32
8.2.90.0330.00817.41
8.2.80.0260.00817.31
8.2.70.0530.01117.19
8.2.60.0350.01217.52
8.2.50.0310.00917.29
8.2.40.0350.00517.29
8.2.30.0370.01017.44
8.2.20.0330.00817.53
8.2.10.0350.00517.22
8.2.00.0300.00917.52

preferences:
49.03 ms | 724 KiB | 4 Q