3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isEmpty = function($row) { return 0 === count(array_filter($row)); } $array = ['', '', '', '', '']; var_dump($isEmpty($array)); $array = ['', '', null, '', 0]; var_dump($isEmpty($array));

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)
5.4.390.0700.05319.22
5.4.380.0200.05718.84
5.4.370.0230.05318.55
5.4.360.0200.05318.61
5.4.350.0200.06018.68
5.4.340.0170.05718.77
5.4.320.0200.05718.83
5.4.310.0300.05718.72
5.4.300.0270.07318.50
5.4.290.0370.06318.80
5.4.280.0200.05318.51
5.4.270.0230.05018.63
5.4.260.0100.06318.73
5.4.250.0330.05318.78
5.4.240.0200.05718.50
5.4.230.0230.05318.79
5.4.220.0230.05718.57
5.4.210.0230.05318.79
5.4.200.0130.06016.51
5.4.190.0230.06018.61
5.4.180.0300.04318.73
5.4.170.0270.05018.45
5.4.160.0230.05318.82
5.4.150.0370.06718.57
5.4.140.0300.04716.30
5.4.130.0270.06316.32
5.4.120.0200.06016.28
5.4.110.0130.07716.33
5.4.100.0230.07016.25
5.4.90.0200.07016.23
5.4.80.0230.05016.28
5.4.70.0270.05016.30
5.4.60.0270.04016.26
5.4.50.0170.05016.17
5.4.40.0200.05016.30
5.4.30.0170.05316.16
5.4.20.0130.05716.40
5.4.10.0230.05316.25
5.4.00.0300.05015.79
5.3.290.0170.06014.66
5.3.280.0270.04714.77
5.3.270.0070.06714.79
5.3.260.0100.06014.76
5.3.250.0170.06014.59
5.3.240.0270.05014.59
5.3.230.0200.07014.70
5.3.220.0230.07014.75
5.3.210.0030.07314.61
5.3.200.0270.05014.58
5.3.190.0170.06014.56
5.3.180.0230.05714.66
5.3.170.0270.04714.61
5.3.160.0400.04714.67
5.3.150.0200.05714.60
5.3.140.0200.06314.55
5.3.130.0270.06714.77
5.3.120.0170.06714.64
5.3.110.0370.05714.61
5.3.100.0500.05014.14
5.3.90.0430.05314.13
5.3.80.0330.05014.11
5.3.70.0300.04714.13
5.3.60.0230.05713.99
5.3.50.0230.07014.02
5.3.40.0370.05314.05
5.3.30.0230.06713.96
5.3.20.0400.05013.79
5.3.10.0200.05013.84
5.3.00.0270.04313.65
5.2.170.0300.03711.12
5.2.160.0300.04711.18
5.2.150.0200.04711.18
5.2.140.0200.05311.29
5.2.130.0170.04311.18
5.2.120.0270.03711.06
5.2.110.0130.04311.09
5.2.100.0170.04011.03
5.2.90.0130.04711.05
5.2.80.0270.04011.10
5.2.70.0270.05011.05
5.2.60.0170.05311.20
5.2.50.0100.05311.00
5.2.40.0200.04011.00
5.2.30.0130.04311.03
5.2.20.0130.05010.89
5.2.10.0130.04010.92
5.2.00.0170.04310.71
5.1.60.0100.04010.06
5.1.50.0070.0409.97
5.1.40.0130.03310.08
5.1.30.0170.03310.39
5.1.20.0170.03310.36
5.1.10.0170.03310.19
5.1.00.0130.03710.10
5.0.50.0130.0238.53
5.0.40.0070.0278.50
5.0.30.0130.0408.26
5.0.20.0100.0308.28
5.0.10.0030.0338.18
5.0.00.0070.0478.27
4.4.90.0070.0275.87
4.4.80.0100.0205.81
4.4.70.0100.0205.87
4.4.60.0130.0175.86
4.4.50.0130.0205.95
4.4.40.0100.0335.91
4.4.30.0100.0205.89
4.4.20.0100.0205.96
4.4.10.0130.0175.97
4.4.00.0100.0335.96
4.3.110.0030.0275.88
4.3.100.0070.0205.79
4.3.90.0070.0305.82
4.3.80.0100.0435.80
4.3.70.0100.0305.86
4.3.60.0130.0235.87
4.3.50.0200.0105.78
4.3.40.0070.0335.79
4.3.30.0070.0204.75
4.3.20.0030.0234.75
4.3.10.0030.0274.75
4.3.00.0000.0237.60

preferences:
149.24 ms | 1394 KiB | 7 Q