3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'visitPoints'=>[ 20=>[2,5,6,8,10,11], 35=>[2,5,6], 57=>[1] ], 'islands'=>[ 20=>[5,10,11], 35=>[5,6] ], 'animals'=>[ 20=>[5,11], 35=>[] ] ]; $result = [ 20=>[5,11], 35=>[], 57=>[] ]; print_r($result);

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.00424.03
8.4.110.0090.01018.70
8.4.100.0090.01118.80
8.4.90.0120.00820.46
8.4.80.0070.00418.58
8.4.70.0100.00817.74
8.4.60.0150.00618.68
8.4.50.0090.01018.71
8.4.40.0140.00717.40
8.4.30.0100.00918.64
8.4.20.0100.01019.86
8.4.10.0030.00619.27
8.3.250.0140.00518.71
8.3.240.0070.00217.20
8.3.230.0060.00516.76
8.3.220.0100.00718.75
8.3.210.0070.00718.25
8.3.200.0050.00516.65
8.3.190.0100.00917.23
8.3.180.0070.00719.02
8.3.170.0160.00320.47
8.3.160.0040.01516.86
8.3.150.0110.00716.93
8.3.140.0070.01118.64
8.3.130.0000.00818.53
8.3.120.0030.00620.66
8.3.110.0060.00320.94
8.3.100.0070.00324.06
8.3.90.0140.00426.77
8.3.80.0080.00418.43
8.3.70.0110.00716.38
8.3.60.0040.01116.60
8.3.50.0030.01316.59
8.3.40.0040.01118.63
8.3.30.0130.00319.07
8.3.20.0110.00421.60
8.3.10.0160.00021.54
8.3.00.0080.00818.58
8.2.290.0070.00222.11
8.2.280.0110.00818.11
8.2.270.0030.01417.14
8.2.260.0040.00416.56
8.2.250.0040.00416.53
8.2.240.0040.00416.95
8.2.230.0120.00322.58
8.2.220.0050.00337.54
8.2.210.0130.00426.77
8.2.200.0090.00018.04
8.2.190.0040.01816.58
8.2.180.0090.00618.17
8.2.170.0060.00918.53
8.2.160.0040.01120.15
8.2.150.0120.00319.12
8.2.140.0080.00820.22
8.2.130.0060.00920.22
8.2.120.0070.01019.07
8.2.110.0070.01119.22
8.2.100.0140.00418.99
8.2.90.0090.00618.69
8.2.80.0110.00419.10
8.2.70.0060.00918.58
8.2.60.0060.00918.61
8.2.50.0090.00619.10
8.2.40.0000.01518.75
8.2.30.0090.00618.55
8.2.20.0090.00618.71
8.2.10.0080.00818.55
8.2.00.0090.00618.39
8.1.330.0090.00921.95
8.1.320.0140.00516.16
8.1.310.0000.00818.44
8.1.300.0050.00318.29
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0120.00422.14
8.1.260.0090.00622.00
8.1.250.0070.00722.14
8.1.240.0090.00618.52
8.1.230.0110.00418.48
8.1.220.0030.01218.54
8.1.210.0000.01518.43
8.1.200.0060.00918.56
8.1.190.0070.00718.59
8.1.180.0090.00618.32
8.1.170.0060.00918.62
8.1.160.0100.00718.52
8.1.150.0100.00718.71
8.1.140.0040.01118.57
8.1.130.0110.00418.63
8.1.120.0000.01518.52
8.1.110.0120.00618.23
8.1.100.0000.01819.60
8.1.90.0060.01218.54
8.1.80.0140.00319.62
8.1.70.0070.00718.61
8.1.60.0090.00618.55
8.1.50.0100.00618.34
8.1.40.0060.01018.34
8.1.30.0040.01118.72
8.1.20.0160.00019.73
8.1.10.0080.00818.48
8.1.00.0120.00318.38

preferences:
26.1 ms | 403 KiB | 5 Q