3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 1149 => 3, 4108 => 3, ]; var_export( array_map( fn($offer_id, $quantity) => get_defined_vars(), array_keys($array), $array ) );

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.10.0100.00816.82
8.5.00.0080.01320.05
8.4.150.0020.00014.05
8.4.140.0150.01217.35
8.4.130.0050.00618.70
8.4.120.0090.01123.95
8.4.110.0100.01018.82
8.4.100.0110.00419.00
8.4.90.0090.01220.51
8.4.80.0100.00518.75
8.4.70.0100.01118.87
8.4.60.0140.00618.66
8.4.50.0130.00720.20
8.4.40.0090.00317.50
8.4.30.0130.00718.68
8.4.20.0310.00917.55
8.4.10.0180.00617.75
8.3.280.0150.00918.39
8.3.270.0090.01016.80
8.3.260.0090.01016.50
8.3.250.0090.01018.57
8.3.240.0060.00216.99
8.3.230.0110.00916.62
8.3.220.0030.00519.00
8.3.210.0130.00516.48
8.3.200.0040.00416.70
8.3.190.0140.00517.30
8.3.180.0150.00619.09
8.3.170.0100.00717.07
8.3.160.0070.00717.09
8.3.150.0050.00317.34
8.3.140.0120.00616.30
8.3.130.0150.00416.28
8.3.120.0200.00016.44
8.3.110.0120.00616.43
8.3.100.0180.00316.51
8.3.90.0130.00716.35
8.3.80.0170.00316.47
8.3.70.0220.00016.53
8.3.60.0130.00716.68
8.3.50.0200.00016.44
8.3.40.0140.00517.20
8.3.30.0070.01117.28
8.3.20.0170.00017.14
8.3.10.0130.00417.25
8.3.00.0050.00517.22
8.2.290.0060.00420.50
8.2.280.0040.00418.49
8.2.270.0160.00316.56
8.2.260.0150.00216.35
8.2.250.0170.00016.32
8.2.240.0120.00416.32
8.2.230.0180.00016.26
8.2.220.0110.00716.11
8.2.210.0150.00316.21
8.2.200.0120.00316.16
8.2.190.0090.00916.06
8.2.180.0090.00616.30
8.2.170.0140.00517.54
8.2.160.0120.00617.49
8.2.150.0120.00817.39
8.2.140.0120.00717.08
8.2.130.0190.00017.43
8.2.120.0150.00417.09
8.2.110.0120.00817.28
8.2.100.0160.00317.40
8.2.90.0140.00317.34
8.2.80.0180.00017.28
8.2.70.0130.00517.23
8.2.60.0180.00017.49
8.2.50.0140.00317.34
8.2.40.0140.00316.98
8.2.30.0130.00416.98
8.2.20.0190.00017.03
8.2.10.0130.00417.29
8.2.00.0110.00617.46
8.1.320.0150.00316.30

preferences:
79.82 ms | 403 KiB | 5 Q