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" => 26542973, "generated key" => "", "who knows what key" => "" ], [ "Some key here" => "", "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.0060.01218.27
8.3.50.0110.00417.91
8.3.40.0070.00718.50
8.3.30.0150.00018.66
8.3.20.0000.00719.12
8.3.10.0050.00523.48
8.3.00.0070.00020.45
8.2.180.0120.00318.41
8.2.170.0170.00322.96
8.2.160.0110.00422.21
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00418.03
8.2.120.0060.00326.35
8.2.110.0090.00021.06
8.2.100.0090.00617.84
8.2.90.0060.00319.57
8.2.80.0030.00618.03
8.2.70.0040.00417.92
8.2.60.0040.00418.16
8.2.50.0070.00718.10
8.2.40.0040.00419.30
8.2.30.0000.00719.26
8.2.20.0070.00018.04
8.2.10.0030.00518.18
8.2.00.0030.00517.83
8.1.280.0070.01025.92
8.1.270.0040.00418.70
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0090.00023.96
8.1.230.0110.00020.97
8.1.220.0000.00817.74
8.1.210.0000.00819.03
8.1.200.0030.00617.35
8.1.190.0040.00419.31
8.1.180.0040.00418.10
8.1.170.0040.00418.51
8.1.160.0040.00418.77
8.1.150.0050.00320.66
8.1.140.0000.00721.99
8.1.130.0000.00719.15
8.1.120.0050.00317.41
8.1.110.0040.00417.42
8.1.100.0030.00317.39
8.1.90.0040.00417.45
8.1.80.0000.00817.48
8.1.70.0070.00017.36
8.1.60.0040.00417.57
8.1.50.0000.00817.43
8.1.40.0000.00817.54
8.1.30.0040.00417.59
8.1.20.0080.00017.55
8.1.10.0040.00417.38
8.1.00.0000.01017.40
8.0.300.0040.00419.72
8.0.290.0040.00416.63
8.0.280.0030.00318.24
8.0.270.0000.00717.12
8.0.260.0030.00316.65
8.0.250.0030.00616.85
8.0.240.0000.00816.76
8.0.230.0030.00316.75
8.0.220.0000.00716.79
8.0.210.0050.00216.92
8.0.200.0040.00416.94
8.0.190.0030.00716.95
8.0.180.0080.00016.91
8.0.170.0030.00516.84
8.0.160.0050.00316.85
8.0.150.0040.00416.81
8.0.140.0000.00716.86
8.0.130.0000.00613.36
8.0.120.0070.00016.82
8.0.110.0000.00716.80
8.0.100.0000.00716.88
8.0.90.0040.00416.77
8.0.80.0080.00916.82
8.0.70.0040.00416.96
8.0.60.0040.00416.93
8.0.50.0040.00416.70
8.0.30.0000.01817.00
8.0.20.0120.00617.40
8.0.10.0040.00417.00
8.0.00.0100.00916.61
7.4.330.0000.00515.55
7.4.320.0060.00016.45
7.4.300.0040.00416.60
7.4.290.0040.00416.64
7.4.280.0080.00016.45
7.4.270.0030.00616.51
7.4.260.0060.00016.48
7.4.250.0040.00416.49
7.4.240.0030.00316.63
7.4.230.0040.00416.62
7.4.220.0060.00316.38
7.4.210.0090.00916.56
7.4.200.0040.00416.40
7.4.160.0090.00816.48
7.4.140.0090.00917.86
7.4.130.0130.00916.43
7.4.120.0080.00916.47
7.4.110.0130.00616.53
7.4.100.0040.01916.41
7.4.90.0100.00716.53
7.4.80.0030.01319.39
7.4.70.0100.00616.37
7.4.60.0100.00616.22
7.4.50.0000.01116.67
7.4.40.0100.00716.50
7.4.10.0070.00714.71
7.4.00.0070.00914.78
7.3.330.0020.00213.16
7.3.320.0000.00613.16
7.3.310.0030.00616.25
7.3.300.0030.00316.12
7.3.290.0030.00316.12
7.3.280.0100.00716.24
7.3.260.0090.00916.33
7.3.240.0090.00916.25
7.3.230.0100.00716.29
7.3.210.0100.00616.29
7.3.200.0050.01316.23
7.3.190.0060.01216.11
7.3.180.0080.01516.40
7.3.170.0060.01216.30
7.3.160.0120.00616.58
7.3.130.0040.01514.89
7.3.120.0080.00814.69
7.3.110.0150.00314.48
7.3.100.0060.00914.86
7.3.90.0060.00914.88
7.3.80.0030.01014.71
7.3.70.0030.01014.66
7.3.60.0090.00614.88
7.3.50.0070.00714.66
7.3.40.0040.00814.73
7.3.30.0050.00314.58
7.3.20.0090.00616.27
7.3.10.0050.00916.59
7.3.00.0080.00316.64
7.2.330.0070.01016.58
7.2.320.0120.00616.63
7.2.310.0040.01416.66
7.2.300.0060.00916.23
7.2.290.0080.00916.52
7.2.260.0090.00915.05
7.2.250.0060.01014.89
7.2.240.0030.01214.84
7.2.230.0100.00615.24
7.2.220.0110.00715.17
7.2.210.0060.00915.19
7.2.200.0030.01315.16
7.2.190.0060.00914.88
7.2.180.0040.00414.61
7.2.170.0090.00614.68
7.2.160.0030.00914.91
7.2.150.0050.00516.90
7.2.140.0040.00816.86
7.2.130.0080.00516.93
7.2.120.0000.01316.81
7.2.110.0270.00815.97
7.2.100.0290.00716.01
7.2.90.0320.00616.08
7.2.80.0230.00816.18
7.2.70.0290.00516.05
7.2.60.0300.00716.11
7.2.50.0060.00916.10
7.2.40.0070.00916.03
7.2.30.0110.00716.05
7.2.20.0090.00816.07
7.2.10.0110.00816.00
7.2.00.0370.00816.12
7.1.330.0100.00315.78
7.1.320.0110.00715.66
7.1.310.0070.00715.65
7.1.300.0060.00315.66
7.1.290.0060.00315.78
7.1.280.0000.01415.63
7.1.270.0080.00015.82
7.1.260.0070.00715.63
7.1.250.0070.00515.62
7.1.240.0000.00815.77
7.1.230.0450.00814.75
7.1.220.0390.00514.65
7.1.210.0310.00814.65
7.1.200.0310.00714.57
7.1.190.0340.00314.56
7.1.180.0280.00714.74
7.1.170.0440.00714.57
7.1.160.0430.01014.73
7.1.150.0490.00614.88
7.1.140.0590.00714.58
7.1.130.0100.00914.53
7.1.120.0060.01114.41
7.1.110.0100.00714.79
7.1.100.0090.01314.76
7.1.90.0060.00914.65
7.1.80.0070.01114.72
7.1.70.0240.00614.78
7.1.60.0150.00923.63
7.1.50.0690.00923.75
7.1.40.0140.01123.77
7.1.30.0480.01423.67
7.1.20.0410.01223.61
7.1.10.0080.00914.46
7.1.00.0280.00714.60
7.0.330.0000.01315.58
7.0.320.0060.00615.33
7.0.310.0060.00615.32
7.0.300.0000.01315.31
7.0.290.0060.00615.30
7.0.280.0090.00015.51
7.0.270.0030.01115.02
7.0.260.0000.00915.31
7.0.250.0030.00815.38
7.0.240.0030.01315.38
7.0.230.0050.00515.34
7.0.220.0000.01415.23
7.0.210.0070.00715.30
7.0.200.0000.01715.32
7.0.190.0000.01415.39
7.0.180.0000.00815.34
7.0.170.0060.00315.47
7.0.160.0030.01015.45
7.0.150.0090.00015.46
7.0.140.0070.00315.39
7.0.130.0060.00615.35
7.0.120.0030.01015.40
7.0.110.0090.00615.41
7.0.100.0040.00815.38
7.0.90.0070.00715.47
7.0.80.0060.00615.34
7.0.70.0110.00415.27
7.0.60.0030.00715.82
7.0.50.0070.01015.91
7.0.40.0110.00313.50
7.0.30.0100.00013.88
7.0.20.0030.01013.83
7.0.10.0030.01213.59
7.0.00.0040.01113.82
5.6.400.0000.01513.71
5.6.390.0060.00614.51
5.6.380.0110.00514.11
5.6.370.0060.00314.35
5.6.360.0030.00613.89
5.6.350.0040.00814.29
5.6.340.0040.01113.98
5.6.330.0040.01114.49
5.6.320.0040.00814.29
5.6.310.0030.00714.00
5.6.300.0130.00314.13
5.6.290.0030.00713.86
5.6.280.0080.00813.93
5.6.270.0090.00614.23
5.6.260.0040.01214.18
5.6.250.0090.00014.09
5.6.240.0000.01114.57
5.6.230.0100.00314.32
5.6.220.0070.01014.39
5.6.210.0000.01314.20
5.6.200.0100.00714.50
5.6.190.0090.00614.25
5.6.180.0090.00614.60
5.6.170.0070.00714.13
5.6.160.0060.00914.16
5.6.150.0140.00014.11
5.6.140.0000.01014.30
5.6.130.0130.00314.13
5.6.120.0090.00614.12
5.6.110.0040.00714.10
5.6.100.0070.00314.27
5.6.90.0030.01414.46
5.6.80.0000.00814.32
5.6.70.0030.00914.16
5.6.60.0030.01414.15
5.6.50.0070.00714.18
5.6.40.0060.01014.28
5.6.30.0000.00914.26
5.6.20.0040.00714.39
5.6.10.0040.00814.20
5.6.00.0030.00914.35

preferences:
52.4 ms | 400 KiB | 5 Q