3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array ( 0 => array ( 'norm_value' => 2.5, ), 1 => array ( 'norm_value' => 7.01, ), 2 => array ( 'norm_value' => 0.0, ), 3 => array ( 'norm_value' => 4.167, ), 4 => array ( 'norm_value' => 0.0, ), ), array ( 0 => array ( 'norm_value' => 0.0, ), 1 => array ( 'norm_value' => 0.0, ), 2 => array ( 'norm_value' => 0.0, ), 3 => array ( 'norm_value' => 1.267, ), 4 => array ( 'norm_value' => 0.0, ), ), array ( 0 => array ( 'norm_value' => 0.0, ), 1 => array ( 'norm_value' => 0.0, ), 2 => array ( 'norm_value' => 0.0, ), 3 => array ( 'norm_value' => 0.0, ), 4 => array ( 'norm_value' => 0.0, ), ), array ( 0 => array ( 'norm_value' => 3.54, ), 1 => array ( 'norm_value' => 2.04, ), 2 => array ( 'norm_value' => 0.673, ), 3 => array ( 'norm_value' => 8.546, ), 4 => array ( 'norm_value' => 0.0, ), ) ); $epsilon = 0.00001; foreach($arr as $index => $subarray){ $count = 0; foreach($subarray as $norm_data){ if(abs($norm_data['norm_value'] - 0.0) < $epsilon) $count++; } if($count === count($subarray) || $count == count($subarray)-1){ unset($arr[$index]); } } print_r($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.5.10.0080.01018.92
8.5.00.0130.00819.79
8.4.150.0030.00014.05
8.4.140.0150.00617.44
8.4.130.0140.00618.67
8.4.120.0140.00524.07
8.4.110.0130.00722.42
8.4.100.0120.00817.65
8.4.90.0090.01120.52
8.4.80.0110.00518.75
8.4.70.0120.01018.84
8.4.60.0150.00618.77
8.4.50.0110.01018.59
8.4.40.0080.00017.66
8.4.30.0100.01018.50
8.4.20.0140.00720.66
8.4.10.0040.00419.50
8.3.280.0090.01118.40
8.3.270.0090.01016.48
8.3.260.0110.00916.73
8.3.250.0140.00619.10
8.3.240.0120.00618.81
8.3.230.0120.00816.33
8.3.220.0100.01119.10
8.3.210.0050.00418.51
8.3.200.0080.00116.76
8.3.190.0070.00816.78
8.3.180.0080.01116.56
8.3.170.0160.00318.99
8.3.160.0040.00420.13
8.3.150.0040.00416.71
8.3.140.0090.00618.80
8.3.130.0070.00316.54
8.3.120.0090.00020.63
8.3.110.0040.00416.75
8.3.100.0070.01124.06
8.3.90.0130.00726.77
8.3.80.0090.00316.63
8.3.70.0040.01816.50
8.3.60.0140.00718.55
8.3.50.0120.00523.78
8.3.40.0090.00618.55
8.3.30.0090.00918.75
8.3.20.0000.00822.61
8.3.10.0080.00020.22
8.3.00.0040.00422.57
8.2.290.0100.00920.46
8.2.280.0090.00918.32
8.2.270.0030.01119.01
8.2.260.0150.00318.09
8.2.250.0030.00716.81
8.2.240.0050.00317.05
8.2.230.0000.00820.94
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0000.00916.75
8.2.190.0090.00616.58
8.2.180.0070.01418.06
8.2.170.0040.01122.96
8.2.160.0100.00722.09
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0090.00022.14
8.2.100.0040.00817.91
8.2.90.0000.00918.03
8.2.80.0040.00419.11
8.2.70.0080.00017.63
8.2.60.0000.00918.22
8.2.50.0060.00618.10
8.2.40.0080.00418.34
8.2.30.0000.00719.44
8.2.20.0040.00418.20
8.2.10.0040.00419.29
8.2.00.0040.00419.30
8.1.330.0110.00816.91
8.1.320.0130.00616.31
8.1.310.0050.00318.47
8.1.300.0040.00816.37
8.1.290.0060.00318.88
8.1.280.0080.00625.92
8.1.270.0040.00422.08
8.1.260.0050.00226.35
8.1.250.0030.00528.09
8.1.240.0000.00922.14
8.1.230.0070.00420.95
8.1.220.0000.00917.74
8.1.210.0090.00018.77
8.1.200.0080.00017.23
8.1.190.0070.00317.51
8.1.180.0070.00418.10
8.1.170.0030.00618.65
8.1.160.0040.00418.84
8.1.150.0000.00718.78
8.1.140.0000.00718.93
8.1.130.0000.00721.92
8.1.120.0000.00717.42
8.1.110.0040.00417.34
8.1.100.0040.00417.37
8.1.90.0040.00417.45
8.1.80.0040.00417.45
8.1.70.0050.00217.43
8.1.60.0030.00717.58
8.1.50.0030.00517.42
8.1.40.0080.00017.51
8.1.30.0060.00317.57
8.1.20.0040.00417.60
8.1.10.0030.00517.45
8.1.00.0040.00417.57
8.0.300.0050.00520.04
8.0.290.0040.00416.75
8.0.280.0070.00018.40
8.0.270.0030.00317.92
8.0.260.0000.00719.96
8.0.250.0060.00016.94
8.0.240.0030.00316.97
8.0.230.0000.00717.00
8.0.220.0000.00716.85
8.0.210.0030.00316.87
8.0.200.0030.00316.91
8.0.190.0000.00816.83
8.0.180.0000.00716.90
8.0.170.0040.00416.86
8.0.160.0070.00016.90
8.0.150.0030.00616.80
8.0.140.0000.01216.80
8.0.130.0000.00513.24
8.0.120.0000.00716.81
8.0.110.0000.00716.93
8.0.100.0040.00416.88
8.0.90.0040.00416.90
8.0.80.0090.00616.87
8.0.70.0040.00416.84
8.0.60.0040.00416.91
8.0.50.0070.00016.76
8.0.30.0170.00017.06
8.0.20.0100.01017.20
8.0.10.0070.00016.86
8.0.00.0140.00316.87
7.4.330.0050.00015.55
7.4.320.0070.00016.50
7.4.300.0030.00316.56
7.4.290.0050.00316.49
7.4.280.0000.00816.41
7.4.270.0030.00616.39
7.4.260.0030.00313.16
7.4.250.0030.00316.59
7.4.240.0070.00016.49
7.4.230.0030.00316.39
7.4.220.0040.00316.63
7.4.210.0130.00616.62
7.4.200.0000.00716.49
7.4.130.0050.01316.52
7.4.120.0130.01016.64
7.4.110.0060.01016.43
7.4.100.0070.01016.59
7.4.90.0030.01716.40
7.4.80.0060.01219.39
7.4.70.0110.00516.43
7.4.60.0030.01216.51
7.4.50.0090.00616.50
7.4.40.0060.01216.58
7.4.30.0100.00916.48
7.4.20.0120.00916.38
7.4.10.0100.01316.40
7.4.00.0090.01216.46
7.3.330.0000.00716.20
7.3.320.0000.00613.23
7.3.310.0000.00716.28
7.3.300.0000.00716.19
7.3.290.0060.00916.32
7.3.260.0130.00316.35
7.3.240.0080.01016.50
7.3.230.0060.01116.59
7.3.210.0060.01216.52
7.3.200.0030.01316.38
7.3.190.0040.01616.39
7.3.180.0090.00616.43
7.3.170.0030.01316.30
7.3.160.0080.01216.49
7.3.150.0100.00616.16
7.3.140.0150.00616.27
7.3.130.0060.01316.27
7.3.120.0110.00716.29
7.3.110.0130.00316.33
7.3.100.0110.00716.43
7.3.90.0100.00816.23
7.3.80.0000.02216.33
7.3.70.0000.01716.41
7.3.60.0150.00616.40
7.3.50.0130.00816.24
7.3.40.0220.00016.26
7.3.30.0150.00416.36
7.3.20.0260.01016.44
7.3.10.0130.00616.35
7.3.00.0060.01216.32
7.2.330.0030.01516.78
7.2.320.0030.01416.66
7.2.310.0130.00316.74
7.2.300.0030.01616.65
7.2.290.0100.00716.75
7.2.280.0140.00916.61
7.2.270.0190.00016.46
7.2.260.0060.01516.61
7.2.250.0220.00616.42
7.2.240.0070.01116.50
7.2.230.0030.01916.68
7.2.220.0040.01416.32
7.2.210.0040.01316.53
7.2.200.0130.00716.62
7.2.190.0130.00616.62
7.2.180.0170.00616.58
7.2.170.0090.00916.39
7.2.160.0180.00416.65
7.2.150.0140.01116.60
7.2.140.0210.00416.60
7.2.130.0150.00316.75
7.2.120.0060.01216.67
7.2.110.0060.01116.62
7.2.100.0180.00016.46
7.2.90.0080.01116.59
7.2.80.0110.01116.67
7.2.70.0160.00616.79
7.2.60.0130.00616.61
7.2.50.0060.01216.64
7.2.40.0030.01716.65
7.2.30.0100.00916.77
7.2.20.0030.01616.62
7.2.10.0090.01516.51
7.2.00.0080.01616.68

preferences:
253.59 ms | 403 KiB | 5 Q