3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_multi($array) { return (count($array) != count($array, 1)); } var_export(is_multi([[]])); echo "\n---\n"; var_export(is_multi([[], []])); echo "\n---\n"; var_export(is_multi([1])); echo "\n---\n"; var_export(is_multi([[1], []])); echo "\n---\n";

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.01616.38
8.3.50.0110.00620.35
8.3.40.0100.00721.84
8.3.30.0070.00718.38
8.3.20.0050.00224.18
8.3.10.0060.00324.66
8.3.00.0070.00026.16
8.2.180.0040.01125.92
8.2.170.0110.01118.79
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0040.00721.11
8.2.100.0080.00417.72
8.2.90.0030.00522.22
8.2.80.0000.00720.52
8.2.70.0040.00417.79
8.2.60.0100.00017.93
8.2.50.0080.00018.07
8.2.40.0000.00818.22
8.2.30.0030.00617.99
8.2.20.0040.00420.31
8.2.10.0000.00817.89
8.2.00.0070.00019.11
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.77
8.1.230.0050.00820.95
8.1.220.0000.00717.74
8.1.210.0040.00419.04
8.1.200.0030.00617.11
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0050.00218.83
8.1.150.0000.00718.58
8.1.140.0070.00017.50
8.1.130.0040.00417.36
8.1.120.0050.00317.30
8.1.110.0070.00017.38
8.1.100.0040.00417.32
8.1.90.0000.00717.41
8.1.80.0000.01417.31
8.1.70.0080.00817.26
8.1.60.0110.00717.41
8.1.50.0110.00617.30
8.1.40.0140.00317.45
8.1.30.0130.00417.57
8.1.20.0110.00617.36
8.1.10.0180.00017.26
8.1.00.0170.00017.38
8.0.300.0040.00419.82
8.0.290.0060.00316.63
8.0.280.0070.00018.39
8.0.270.0000.00716.84
8.0.260.0000.00716.76
8.0.250.0030.00316.74
8.0.240.0030.00316.79
8.0.230.0040.00416.87
8.0.220.0030.00316.81
8.0.210.0090.00616.71
8.0.200.0060.00916.84
8.0.190.0110.00316.73
8.0.180.0110.00316.78
8.0.170.0040.00916.89
8.0.160.0140.00016.75
8.0.150.0080.00516.70
8.0.140.0100.00316.65
8.0.130.0110.00416.79
8.0.120.0100.00516.82
8.0.110.0090.00416.82
8.0.100.0080.00616.82
8.0.90.0100.00716.67
8.0.80.0140.00016.70
8.0.70.0110.00316.81
8.0.60.0030.01216.82
8.0.50.0110.00016.81
8.0.30.0030.00816.68
8.0.20.0000.01416.75
8.0.10.0000.00916.83
7.4.330.0060.00015.55
7.4.320.0030.00316.45
7.4.300.0060.00016.40
7.4.290.0130.00016.39
7.4.280.0120.00216.39
7.4.270.0120.00316.49
7.4.260.0110.00016.36
7.4.250.0030.01016.55
7.4.240.0130.00016.54
7.4.230.0070.00516.42
7.4.220.0090.00316.27
7.4.210.0090.00316.54
7.4.200.0120.00016.46
7.4.190.0110.00316.38
7.4.180.0120.00016.33
7.4.160.0080.00616.41
7.4.150.0100.00316.48
7.4.140.0140.00016.29
7.4.130.0100.00316.36
7.4.120.0100.00416.26
7.4.110.0050.01016.45
7.4.100.0080.00516.31
7.4.90.0090.00516.46
7.4.80.0070.00716.38
7.4.70.0060.00616.40
7.4.60.0110.00316.43
7.4.50.0100.00516.39
7.4.40.0110.00316.31
7.4.30.0130.00016.36
7.4.20.0070.00716.38
7.4.10.0100.00516.46
7.4.00.0100.00316.42

preferences:
55.1 ms | 401 KiB | 5 Q