3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [[], [], []]; $res = array_reduce(array_values($array), function ($isArray, $in) { $isArray &= is_array($in) ? 0 : 1; return $isArray; }, count($array) !== 0 ? 1 : 0); var_dump($res);

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.0110.01116.75
8.3.50.0120.00318.19
8.3.40.0070.01518.48
8.3.30.0140.00018.60
8.3.20.0060.00320.13
8.3.10.0050.00322.08
8.3.00.0040.00423.59
8.2.180.0160.00318.25
8.2.170.0060.00922.96
8.2.160.0070.00719.30
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00021.12
8.2.120.0050.00226.35
8.2.110.0030.00621.01
8.2.100.0060.00617.91
8.2.90.0030.00519.18
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0020.00518.16
8.2.40.0060.00320.57
8.2.30.0040.00419.37
8.2.20.0020.00518.13
8.2.10.0000.00818.06
8.2.00.0030.00518.06
8.1.280.0030.01025.92
8.1.270.0040.00420.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.96
8.1.230.0040.00820.31
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0050.00318.71
8.1.160.0000.00718.90
8.1.150.0070.00020.05
8.1.140.0000.00719.59
8.1.130.0000.00718.90
8.1.120.0000.00817.52
8.1.110.0040.00417.46
8.1.100.0000.00817.36
8.1.90.0040.00417.50
8.1.80.0000.00717.42
8.1.70.0000.00717.44
8.1.60.0030.00617.64
8.1.50.0080.00017.58
8.1.40.0090.00017.53
8.1.30.0040.00417.48
8.1.20.0040.00417.66
8.1.10.0060.00317.48
8.1.00.0060.00317.46
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.37
8.0.270.0040.00417.24
8.0.260.0000.00918.82
8.0.250.0000.00716.95
8.0.240.0050.00316.89
8.0.230.0000.00916.90
8.0.220.0070.00016.81
8.0.210.0000.00716.82
8.0.200.0030.00316.96
8.0.190.0040.00416.89
8.0.180.0040.00416.80
8.0.170.0070.00016.93
8.0.160.0050.00316.89
8.0.150.0030.00616.72
8.0.140.0050.00216.86
8.0.130.0000.00613.37
8.0.120.0050.00216.91
8.0.110.0080.00016.83
8.0.100.0040.00416.92
8.0.90.0040.00416.96
8.0.80.0040.01116.93
8.0.70.0040.00416.77
8.0.60.0040.00416.96
8.0.50.0080.00016.93
8.0.30.0130.00517.13
8.0.20.0090.01417.40
8.0.10.0000.00717.04
8.0.00.0120.00616.72
7.4.330.0050.00015.55
7.4.320.0020.00516.58
7.4.300.0030.00316.42
7.4.290.0050.00516.50
7.4.280.0030.00316.50
7.4.270.0030.00816.41
7.4.260.0030.00316.51
7.4.250.0040.00416.37
7.4.240.0040.00416.61
7.4.230.0070.00016.48
7.4.220.0110.00716.43
7.4.210.0130.00516.61
7.4.200.0030.00316.68
7.4.160.0080.00816.47
7.4.150.0110.00617.40
7.4.140.0100.00917.86
7.4.130.0100.01316.64
7.4.120.0100.00816.60
7.4.110.0060.01616.38
7.4.100.0130.00516.57
7.4.90.0180.00616.39
7.4.80.0120.00619.39
7.4.70.0090.01316.55
7.4.60.0100.00716.29
7.4.50.0060.00316.29
7.4.40.0100.00616.28
7.4.30.0060.01016.40
7.4.00.0000.01415.11
7.3.330.0050.00013.38
7.3.320.0030.00213.17
7.3.310.0000.00716.34
7.3.300.0050.00316.32
7.3.290.0000.00716.30
7.3.280.0090.00816.29
7.3.270.0140.00617.40
7.3.260.0110.00616.36
7.3.250.0100.01116.41
7.3.240.0070.00916.46
7.3.230.0090.00916.60
7.3.210.0120.00416.47
7.3.200.0080.00816.66
7.3.190.0040.01416.54
7.3.180.0130.00316.26
7.3.170.0130.00316.31
7.3.160.0150.00916.30
7.3.120.0030.01014.73
7.3.110.0030.01414.68
7.3.100.0060.00914.86
7.3.90.0070.01015.03
7.3.80.0030.00914.76
7.3.70.0070.01014.81
7.3.60.0100.00314.95
7.3.50.0030.01214.74
7.3.40.0070.00714.59
7.3.30.0110.00014.77
7.3.20.0000.01616.82
7.3.10.0070.00716.66
7.3.00.0070.01016.61
7.2.330.0030.01316.72
7.2.320.0090.00916.64
7.2.310.0090.00916.61
7.2.300.0130.00316.68
7.2.290.0170.00016.69
7.2.240.0000.01814.98
7.2.230.0030.01315.12
7.2.220.0070.00715.16
7.2.210.0040.01114.66
7.2.200.0100.00315.13
7.2.190.0040.01115.15
7.2.180.0060.01014.82
7.2.170.0040.01114.90
7.2.160.0040.01115.18
7.2.150.0070.01116.83
7.2.140.0120.00016.71
7.2.130.0070.01116.79
7.2.120.0030.01416.92
7.2.110.0140.00716.60
7.2.100.0000.01216.93
7.2.90.0060.00316.92
7.2.80.0090.00917.11
7.2.70.0130.00317.09
7.2.60.0030.01116.98
7.2.50.0080.00617.08
7.2.40.0040.01117.04
7.2.30.0080.00417.16
7.2.20.0000.01516.97
7.2.10.0090.00616.64
7.2.00.0060.00916.71
7.1.330.0040.01215.52
7.1.320.0070.01115.62
7.1.310.0040.01115.88
7.1.300.0070.00315.83
7.1.290.0000.01215.56
7.1.280.0040.01115.88
7.1.270.0000.01215.60
7.1.260.0070.00715.87
7.1.250.0040.01115.88
7.1.200.0060.00615.54
7.1.90.0100.00318.18
7.1.80.0030.00917.98
7.1.70.0070.00417.13
7.1.60.0170.00735.18
7.1.50.0210.00335.00
7.1.40.0160.01234.43
7.1.30.0110.01434.40
7.1.20.0140.01034.48
7.1.10.0060.00616.73
7.1.00.0060.00616.62
7.0.230.0040.00717.75
7.0.220.0030.01017.51
7.0.210.0040.00816.80
7.0.200.0110.00016.69
7.0.190.0060.00616.48
7.0.180.0040.00816.43
7.0.170.0050.00716.30
7.0.160.0060.00616.43
7.0.150.0000.01216.06
7.0.140.0000.01216.25
7.0.130.0060.00616.77
7.0.120.0040.00716.52
7.0.110.0090.00316.22
7.0.100.0060.00616.28
7.0.90.0060.00616.51
7.0.80.0000.01116.66
7.0.70.0070.00716.31
7.0.60.0000.01116.23
7.0.50.0060.00616.45
7.0.40.0030.01016.45
7.0.30.0000.01216.54
7.0.20.0030.00916.38
7.0.10.0060.00616.36
7.0.00.0060.00916.63

preferences:
66.02 ms | 401 KiB | 5 Q