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); } var_dump(count($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.00918.36
8.3.50.0130.01318.05
8.3.40.0120.00318.58
8.3.30.0070.00718.43
8.3.20.0040.00419.27
8.3.10.0040.00423.49
8.3.00.0040.00420.55
8.2.180.0110.00418.16
8.2.170.0080.00822.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.41
8.2.120.0070.00026.35
8.2.110.0040.00721.18
8.2.100.0080.00317.77
8.2.90.0000.00817.63
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0070.00018.22
8.2.50.0100.00018.10
8.2.40.0040.00419.38
8.2.30.0020.00819.24
8.2.20.0040.00418.09
8.2.10.0040.00418.05
8.2.00.0080.00017.61
8.1.280.0070.01125.92
8.1.270.0070.00722.20
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00321.34
8.1.230.0030.00719.22
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00418.79
8.1.150.0070.00018.83
8.1.140.0070.00022.18
8.1.130.0030.00320.32
8.1.120.0000.00717.38
8.1.110.0080.00017.43
8.1.100.0040.00417.48
8.1.90.0000.00717.36
8.1.80.0040.00417.47
8.1.70.0030.00317.35
8.1.60.0060.00317.54
8.1.50.0000.00817.39
8.1.40.0000.00717.39
8.1.30.0000.00817.48
8.1.20.0000.00817.62
8.1.10.0040.00417.42
8.1.00.0030.00717.34
8.0.300.0080.00018.77
8.0.290.0060.00316.58
8.0.280.0000.00718.41
8.0.270.0030.00317.19
8.0.260.0030.00318.48
8.0.250.0000.00716.85
8.0.240.0000.00716.79
8.0.230.0070.00416.85
8.0.220.0040.00416.80
8.0.210.0000.00716.71
8.0.200.0030.00316.76
8.0.190.0070.00016.77
8.0.180.0060.00316.84
8.0.170.0030.00616.89
8.0.160.0060.00316.95
8.0.150.0060.00316.80
8.0.140.0000.00716.73
8.0.130.0050.00013.26
8.0.120.0000.00716.83
8.0.110.0040.00416.82
8.0.100.0040.00416.86
8.0.90.0040.00416.78
8.0.80.0060.00916.84
8.0.70.0000.00716.82
8.0.60.0040.00416.77
8.0.50.0030.00516.77
8.0.30.0100.00916.98
8.0.20.0160.00617.40
8.0.10.0040.00417.01
8.0.00.0090.00916.61
7.4.330.0060.00015.55
7.4.320.0070.00016.48
7.4.300.0070.00016.55
7.4.290.0000.00716.41
7.4.280.0000.00816.61
7.4.270.0040.00816.63
7.4.260.0050.00216.57
7.4.250.0050.00216.45
7.4.240.0000.00716.50
7.4.230.0030.00316.52
7.4.220.0040.00416.58
7.4.210.0080.00816.50
7.4.200.0040.00416.58
7.4.160.0120.00716.50
7.4.140.0100.01017.86
7.4.130.0060.01316.61
7.4.120.0080.00916.45
7.4.110.0030.01716.55
7.4.100.0120.01216.38
7.4.90.0100.00716.44
7.4.80.0120.00619.39
7.4.70.0090.00916.45
7.4.60.0050.01216.43
7.4.50.0080.00816.59
7.4.40.0080.01616.53
7.4.00.0090.00814.92
7.3.330.0030.00313.30
7.3.320.0030.00313.21
7.3.310.0030.00616.23
7.3.300.0030.00316.23
7.3.290.0000.00616.09
7.3.280.0100.00816.22
7.3.260.0060.01216.40
7.3.240.0090.00816.42
7.3.230.0080.01116.24
7.3.210.0100.00716.40
7.3.200.0070.01116.37
7.3.190.0050.01316.28
7.3.180.0130.00316.20
7.3.170.0060.01216.26
7.3.160.0070.01016.15
7.3.120.0060.00614.87
7.3.110.0060.01214.85
7.3.100.0050.00514.76
7.3.90.0070.01114.95
7.3.80.0090.00914.73
7.3.70.0070.01014.65
7.3.60.0030.01014.57
7.3.50.0060.00914.57
7.3.40.0040.01414.55
7.3.30.0040.01014.46
7.3.20.0080.00816.50
7.3.10.0030.01016.49
7.3.00.0060.00516.55
7.2.330.0030.01316.54
7.2.320.0090.00916.58
7.2.310.0060.01116.43
7.2.300.0030.01316.47
7.2.290.0040.01316.39
7.2.250.0100.01014.83
7.2.240.0080.01214.94
7.2.230.0110.00815.00
7.2.220.0000.01314.58
7.2.210.0090.00914.96
7.2.200.0030.00714.82
7.2.190.0060.00314.91
7.2.180.0000.02014.77
7.2.170.0070.01314.96
7.2.130.0040.00716.49
7.2.120.0040.00716.91
7.2.110.0290.00815.71
7.2.100.0330.00815.46
7.2.90.0390.00315.53
7.2.80.0340.00915.40
7.2.70.0260.01015.87
7.2.60.0320.00315.84
7.2.50.0250.01015.81
7.2.40.0390.00715.60
7.2.30.0340.00515.81
7.2.20.0290.00515.72
7.2.10.0100.00715.88
7.2.00.0070.00915.69
7.1.330.0000.01015.64
7.1.320.0070.01115.62
7.1.310.0090.00915.67
7.1.300.0080.00815.57
7.1.290.0040.01115.79
7.1.280.0000.01115.78
7.1.270.0050.00515.76
7.1.260.0030.01515.66
7.1.250.0000.01215.90
7.1.230.0550.01013.74
7.1.220.0560.00813.75
7.1.210.0680.00613.80
7.1.200.0640.00613.59
7.1.190.0520.00313.57
7.1.180.0690.00713.69
7.1.170.0520.01013.73
7.1.160.0530.00613.80
7.1.150.0520.00613.87
7.1.140.0380.01213.88
7.1.130.0100.00713.88
7.1.120.0890.00313.68
7.1.110.0540.01313.66
7.1.100.0520.01013.76
7.1.90.0490.01313.76
7.1.80.0500.00913.88
7.1.70.0520.00613.62
7.1.60.0910.00031.84
7.1.50.1640.01331.77
7.1.40.0980.01031.79
7.1.30.0980.01731.55
7.1.20.0960.01231.61
7.1.10.1280.00613.45
7.1.00.0690.00913.41
5.6.380.0030.01014.30

preferences:
64.9 ms | 400 KiB | 5 Q