3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [ "Some key here" => 26542973, "generated key" => "John", "who knows what key" => 10 ], [ "Some key here" => "123", "generated key" => "", "who knows what key" => "" ], ]; $arr = array_filter($arr, function($val){ return implode("", $val) != ""; }); print_r($arr);

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.3.60.0150.00018.31
8.3.50.0070.00717.96
8.3.40.0120.00418.45
8.3.30.0040.01218.42
8.3.20.0070.00019.21
8.3.10.0080.00023.38
8.3.00.0000.00820.61
8.2.180.0070.01516.50
8.2.170.0110.00722.96
8.2.160.0160.00322.13
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.83
8.2.120.0040.00426.35
8.2.110.0100.00021.04
8.2.100.0000.01217.84
8.2.90.0000.00917.63
8.2.80.0040.00417.97
8.2.70.0000.00818.04
8.2.60.0060.00318.16
8.2.50.0050.00519.25
8.2.40.0050.00319.50
8.2.30.0070.00019.21
8.2.20.0080.00018.04
8.2.10.0040.00418.13
8.2.00.0030.00517.59
8.1.280.0090.00625.92
8.1.270.0000.00818.86
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0050.00521.28
8.1.230.0090.00317.52
8.1.220.0060.00317.79
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0040.00418.83
8.1.150.0040.00418.99
8.1.140.0000.00722.10
8.1.130.0000.00720.26
8.1.120.0000.00717.48
8.1.110.0040.00417.46
8.1.100.0070.00017.35
8.1.90.0080.00017.48
8.1.80.0030.00717.48
8.1.70.0040.00417.49
8.1.60.0040.00417.55
8.1.50.0000.00817.56
8.1.40.0000.00717.45
8.1.30.0050.00317.61
8.1.20.0040.00417.63
8.1.10.0080.00017.43
8.1.00.0050.00617.40
8.0.300.0040.00418.77
8.0.290.0100.00016.63
8.0.280.0040.00418.43
8.0.270.0030.00317.13
8.0.260.0030.00318.25
8.0.250.0090.00016.92
8.0.240.0030.00316.93
8.0.230.0030.00316.75
8.0.220.0040.00416.70
8.0.210.0070.00016.85
8.0.200.0030.00316.99
8.0.190.0120.00016.95
8.0.180.0040.00416.90
8.0.170.0080.00016.82
8.0.160.0000.00816.85
8.0.150.0030.00516.79
8.0.140.0030.00316.86
8.0.130.0050.00013.25
8.0.120.0050.00216.75
8.0.110.0050.00216.94
8.0.100.0050.00217.00
8.0.90.0070.00016.86
8.0.80.0090.00516.84
8.0.70.0000.00816.76
8.0.60.0040.00416.76
8.0.50.0040.00416.67
8.0.30.0100.01017.08
8.0.20.0060.01317.40
8.0.10.0070.00017.06
8.0.00.0100.00816.71
7.4.330.0030.00315.55
7.4.320.0070.00016.58
7.4.300.0030.00316.45
7.4.290.0000.00616.60
7.4.280.0090.00016.51
7.4.270.0080.00016.59
7.4.260.0040.00416.58
7.4.250.0020.00516.37
7.4.240.0070.00016.64
7.4.230.0000.00616.50
7.4.220.0000.00816.51
7.4.210.0060.01016.53
7.4.200.0030.00316.71
7.4.160.0080.00716.56
7.4.140.0100.01117.86
7.4.130.0120.00616.74
7.4.120.0070.01116.49
7.4.110.0150.00316.49
7.4.100.0170.00616.46
7.4.90.0070.01016.51
7.4.80.0160.00319.39
7.4.70.0060.01116.50
7.4.60.0060.01016.42
7.4.50.0070.01116.45
7.4.40.0120.00916.55
7.4.00.0030.00914.57
7.3.330.0020.00213.23
7.3.320.0050.00013.09
7.3.310.0000.00916.12
7.3.300.0000.00616.12
7.3.290.0030.00616.15
7.3.280.0050.01616.21
7.3.260.0130.00716.43
7.3.240.0120.00616.41
7.3.230.0030.01316.44
7.3.210.0130.00316.32
7.3.200.0120.00316.61
7.3.190.0070.01516.24
7.3.180.0140.00316.36
7.3.170.0090.00916.53
7.3.160.0110.00516.43
7.2.330.0060.01116.70
7.2.320.0140.00716.55
7.2.310.0160.00716.44
7.2.300.0070.01416.65
7.2.290.0060.01016.54
7.2.110.0340.00914.62
7.2.100.0430.02014.52
7.2.90.0550.00714.68
7.2.80.0430.00314.55
7.2.70.0560.00914.93
7.2.60.0380.01514.95
7.2.50.0430.00614.78
7.2.40.0410.01114.36
7.2.30.0470.00714.95
7.2.20.0510.00314.80
7.2.10.1210.00314.26
7.2.00.0510.00614.73
7.1.230.0440.00313.61
7.1.220.0400.00313.40
7.1.210.0300.01013.63
7.1.200.0310.01013.70
7.1.190.0480.00713.55
7.1.180.0470.00613.68
7.1.170.0650.00913.46
7.1.160.0450.00313.70
7.1.150.0430.00713.91
7.1.140.0510.00613.24
7.1.130.0380.00913.67
7.1.120.0610.00613.61
7.1.110.0500.00413.70
7.1.100.0580.00613.73
7.1.90.0540.01113.48
7.1.80.0500.00713.56
7.1.70.0580.00313.43
7.1.60.0740.00631.56
7.1.50.1180.01331.63
7.1.40.0900.01631.57
7.1.30.0860.01031.70
7.1.20.1150.00731.70
7.1.10.0880.01313.72
7.1.00.0580.01013.71
5.6.380.0030.01214.34

preferences:
43.6 ms | 401 KiB | 5 Q