3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("", "", "", "", "", "", ""); function arrayIsEmpty ($arr) { $emptyCount = 0; foreach ($arr as $item) { if (empty($item)) { $emptyCount++; } } return $emptyCount === count($arr) + 1; } var_dump(arrayIsEmpty($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.00618.43
8.3.50.0100.01018.14
8.3.40.0130.00318.84
8.3.30.0140.00018.47
8.3.20.0050.00319.16
8.3.10.0000.00823.61
8.3.00.0140.00020.59
8.2.180.0090.00618.04
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0080.00019.84
8.2.120.0080.00026.35
8.2.110.0100.00021.18
8.2.100.0060.00617.72
8.2.90.0060.00317.72
8.2.80.0080.00017.97
8.2.70.0040.00717.75
8.2.60.0000.00817.90
8.2.50.0030.00718.10
8.2.40.0040.00419.23
8.2.30.0030.00619.16
8.2.20.0060.00318.04
8.2.10.0000.00718.06
8.2.00.0000.00817.63
8.1.280.0100.01025.92
8.1.270.0030.00622.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0070.00420.88
8.1.220.0000.00817.74
8.1.210.0050.00318.94
8.1.200.0110.00017.35
8.1.190.0030.00517.39
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0080.00018.86
8.1.150.0000.00718.86
8.1.140.0030.00322.05
8.1.130.0070.00020.19
8.1.120.0020.00517.45
8.1.110.0000.00817.34
8.1.100.0000.00717.33
8.1.90.0050.00217.47
8.1.80.0040.00417.28
8.1.70.0000.00817.48
8.1.60.0050.00317.58
8.1.50.0040.00417.51
8.1.40.0020.00517.39
8.1.30.0040.00417.54
8.1.20.0040.00417.62
8.1.10.0030.00517.43
8.1.00.0040.00417.43
8.0.300.0040.00419.62
8.0.290.0040.00416.58
8.0.280.0000.00718.35
8.0.270.0000.00717.24
8.0.260.0000.00718.44
8.0.250.0000.00716.86
8.0.240.0040.00416.82
8.0.230.0000.00916.84
8.0.220.0020.00516.88
8.0.210.0000.00716.88
8.0.200.0000.00716.98
8.0.190.0040.00416.95
8.0.180.0070.00016.90
8.0.170.0000.00916.96
8.0.160.0060.00316.86
8.0.150.0070.00316.71
8.0.140.0040.00416.86
8.0.130.0030.00313.30
8.0.120.0000.00716.83
8.0.110.0040.00416.84
8.0.100.0040.00416.92
8.0.90.0040.00416.70
8.0.80.0050.00916.90
8.0.70.0080.00016.77
8.0.60.0050.00216.87
8.0.50.0070.00016.90
8.0.30.0070.01117.10
8.0.20.0130.00617.40
8.0.10.0000.00716.86
8.0.00.0150.00316.86
7.4.330.0000.00415.55
7.4.320.0030.00316.58
7.4.300.0000.00716.49
7.4.290.0030.00316.57
7.4.280.0040.00416.62
7.4.270.0000.00916.51
7.4.260.0030.00316.57
7.4.250.0070.00016.59
7.4.240.0070.00016.48
7.4.230.0000.00716.59
7.4.220.0040.00416.64
7.4.210.0070.00916.55
7.4.200.0030.00316.67
7.4.160.0090.00916.39
7.4.140.0110.00917.86
7.4.130.0190.00616.40
7.4.120.0120.00716.55
7.4.110.0150.00616.47
7.4.100.0070.01116.54
7.4.90.0100.00716.37
7.4.80.0110.01119.39
7.4.70.0070.01016.55
7.4.60.0100.00816.38
7.4.50.0090.00616.55
7.4.40.0070.01416.39
7.4.00.0100.00715.01
7.3.330.0050.00013.20
7.3.320.0000.00513.43
7.3.310.0030.00616.18
7.3.300.0030.00316.31
7.3.290.0000.00716.23
7.3.280.0120.00816.35
7.3.260.0090.00716.52
7.3.240.0090.00916.44
7.3.230.0100.00716.56
7.3.210.0060.00916.61
7.3.200.0100.00716.48
7.3.190.0150.00416.39
7.3.180.0060.00916.52
7.3.170.0120.00916.46
7.3.160.0120.00316.37
7.3.120.0070.01114.97
7.3.110.0090.00914.97
7.3.100.0070.00714.82
7.3.90.0040.01114.59
7.3.80.0060.00614.84
7.3.70.0040.00414.83
7.3.60.0070.00714.70
7.3.50.0090.00614.74
7.3.40.0070.00714.81
7.3.30.0050.00514.97
7.3.20.0000.01416.60
7.3.10.0070.00716.45
7.3.00.0100.00816.46
7.2.330.0030.01316.66
7.2.320.0070.01516.76
7.2.310.0110.00716.69
7.2.300.0060.00916.71
7.2.290.0130.01016.74
7.2.250.0070.01314.53
7.2.240.0070.01015.20
7.2.230.0080.00815.17
7.2.220.0040.01114.90
7.2.210.0070.00714.76
7.2.200.0090.00615.07
7.2.190.0000.01615.09
7.2.180.0030.01414.89
7.2.170.0060.00914.99
7.2.130.0130.00516.37
7.2.120.0080.00716.77
7.2.110.0310.00716.09
7.2.100.0280.00716.05
7.2.90.0260.00816.23
7.2.80.0110.00715.94
7.2.70.0160.00916.31
7.2.60.0220.00416.18
7.2.50.0480.00516.07
7.2.40.0200.00816.09
7.2.30.0130.00916.29
7.2.20.0150.00816.19
7.2.10.0170.01116.04
7.2.00.0220.00616.19
7.1.330.0030.01415.80
7.1.320.0130.00015.62
7.1.310.0140.00015.84
7.1.300.0100.00615.96
7.1.290.0000.01115.83
7.1.280.0100.00315.63
7.1.270.0130.00015.91
7.1.260.0070.00315.62
7.1.250.0120.00915.49
7.1.230.0290.01013.70
7.1.220.0190.00913.56
7.1.210.0270.00713.85
7.1.200.0160.01013.88
7.1.190.0220.00713.93
7.1.180.0320.00613.58
7.1.170.0400.00014.10
7.1.160.0300.00013.96
7.1.150.0140.01013.88
7.1.140.0250.00613.95
7.1.130.0290.01313.91
7.1.120.0230.01313.88
7.1.110.0370.00313.73
7.1.100.0270.00713.92
7.1.90.0280.00313.87
7.1.80.0250.00614.01
7.1.70.0250.00313.91
7.1.60.0440.00732.02
7.1.50.0430.01031.59
7.1.40.0430.00731.66
7.1.30.0330.01231.69
7.1.20.0380.01331.98
7.1.10.0190.00613.77
7.1.00.0200.00713.62
5.6.380.0080.00614.50

preferences:
76.18 ms | 400 KiB | 5 Q