3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _arte_cms_tracking_og_are_settings_null($settings) { // If it is an array, browse it: if (is_array($settings)) { if (empty($settings)) { return TRUE; } else { foreach($settings as $value) { if (!_arte_cms_tracking_og_are_settings_null($value)) { return FALSE; } } return TRUE; } } else { $current_trimmed_value = trim((string)$settings); return $current_trimmed_value == ''; } } $t = array( 'yo' => array(0), 'ya' => '', ); if (_arte_cms_tracking_og_are_settings_null($t)) { echo "EMPTY"; }else { echo "NOT EMPTY!"; }

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.0120.00318.43
8.3.50.0140.00521.14
8.3.40.0150.00018.60
8.3.30.0040.00920.33
8.3.20.0040.00420.21
8.3.10.0080.00022.10
8.3.00.0040.00422.37
8.2.180.0140.00016.88
8.2.170.0110.01122.96
8.2.160.0100.01020.35
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.00419.66
8.2.110.0060.00322.30
8.2.100.0120.00019.40
8.2.90.0000.00719.05
8.2.80.0050.00319.39
8.2.70.0030.00617.25
8.2.60.0040.00417.90
8.2.50.0030.00518.07
8.2.40.0000.00818.16
8.2.30.0040.00418.03
8.2.20.0000.00817.78
8.2.10.0040.00417.77
8.2.00.0080.00017.67
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00023.96
8.1.230.0040.00819.17
8.1.220.0060.00317.74
8.1.210.0060.00618.77
8.1.200.0030.00917.35
8.1.190.0000.00817.53
8.1.180.0040.00420.29
8.1.170.0080.00318.69
8.1.160.0070.00022.07
8.1.150.0000.00818.76
8.1.140.0040.00417.46
8.1.130.0030.00317.72
8.1.120.0040.00417.48
8.1.110.0040.00417.46
8.1.100.0050.00317.47
8.1.90.0030.00317.43
8.1.80.0000.00717.46
8.1.70.0070.00017.38
8.1.60.0000.01017.58
8.1.50.0020.00517.43
8.1.40.0000.00917.43
8.1.30.0030.00617.53
8.1.20.0040.00417.51
8.1.10.0030.00517.46
8.1.00.0030.00617.52
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0000.00818.54
8.0.270.0040.00417.26
8.0.260.0030.00316.83
8.0.250.0030.00316.99
8.0.240.0040.00417.00
8.0.230.0030.00316.98
8.0.220.0040.00416.87
8.0.210.0070.00016.88
8.0.200.0000.00616.81
8.0.190.0050.00316.99
8.0.180.0000.00716.82
8.0.170.0060.00316.93
8.0.160.0040.00416.85
8.0.150.0030.00316.80
8.0.140.0050.00316.90
8.0.130.0030.00313.33
8.0.120.0080.00016.90
8.0.110.0040.00416.77
8.0.100.0040.00416.77
8.0.90.0020.00516.90
8.0.80.0000.02116.88
8.0.70.0040.00416.81
8.0.60.0000.00716.82
8.0.50.0030.00516.85
8.0.30.0160.00917.06
8.0.20.0090.00817.40
8.0.10.0040.00416.95
8.0.00.0090.00916.80
7.4.330.0000.00515.00
7.4.320.0060.00016.60
7.4.300.0070.00016.53
7.4.290.0000.00716.50
7.4.280.0030.00316.65
7.4.270.0070.00016.53
7.4.260.0070.00016.50
7.4.250.0000.00816.57
7.4.240.0030.00516.57
7.4.230.0070.00016.36
7.4.220.0110.01416.70
7.4.210.0090.00616.53
7.4.200.0080.00016.64
7.4.190.0000.00816.56
7.4.160.0100.01316.61
7.4.150.0070.01117.40
7.4.140.0120.01017.86
7.4.130.0100.00916.43
7.4.120.0070.01016.50
7.4.110.0110.00716.40
7.4.100.0130.01016.45
7.4.90.0070.01116.31
7.4.80.0090.00819.39
7.4.70.0190.00316.55
7.4.60.0090.00616.38
7.4.50.0040.00016.35
7.4.40.0060.00922.77
7.4.30.0100.00716.51
7.4.00.0030.01015.09
7.3.330.0000.00513.09
7.3.320.0020.00213.11
7.3.310.0070.00016.36
7.3.300.0030.00316.30
7.3.290.0130.00316.38
7.3.280.0060.00916.31
7.3.270.0070.01017.40
7.3.260.0090.00616.32
7.3.250.0120.00916.52
7.3.240.0170.00016.60
7.3.230.0060.01116.39
7.3.210.0140.00316.40
7.3.200.0070.01019.39
7.3.190.0090.00916.54
7.3.180.0080.00816.65
7.3.170.0090.00916.29
7.3.160.0100.00616.36
7.3.120.0000.01514.86
7.2.330.0120.00616.69
7.2.320.0110.01116.46
7.2.310.0140.00416.60
7.2.300.0060.01016.59
7.2.290.0140.00316.52
7.2.00.0040.01519.36
7.1.100.0000.01118.27
7.1.70.0000.00717.19
7.1.60.0100.01319.21
7.1.50.0120.01216.70
7.1.00.0000.03722.30
7.0.200.0300.00714.60
7.0.140.0000.07022.09
7.0.60.0170.07320.02
7.0.50.0030.08317.88
7.0.40.0130.07020.22
7.0.30.0330.05020.17
7.0.20.0300.07320.20
7.0.10.0170.04720.30
7.0.00.0030.09020.25
5.6.280.0070.07021.02
5.6.210.0070.05020.73
5.6.200.0000.08018.27
5.6.190.0000.07020.66
5.6.180.0270.07720.39
5.6.170.0230.04020.54
5.6.160.0030.05020.55
5.6.150.0100.07018.18
5.6.140.0000.04318.21
5.6.130.0100.04718.18
5.6.120.0070.08321.02
5.6.110.0100.03720.96
5.6.100.0130.06021.14
5.6.90.0100.07720.98
5.6.80.0100.04720.39
5.6.70.0200.07320.28
5.5.350.0000.08320.50
5.5.340.0100.03718.04
5.5.330.0030.05320.27
5.5.320.0270.07720.35
5.5.310.0200.08020.35
5.5.300.0100.06717.94
5.5.290.0070.08017.97
5.5.280.0100.08020.89
5.5.270.0100.04720.84
5.5.260.0000.04320.94
5.5.250.0170.07020.78
5.5.240.0070.07020.13
5.4.450.0830.05319.39
5.4.440.0770.05019.34
5.4.430.0570.06719.63
5.4.420.0300.06019.30
5.4.410.0830.06319.57
5.4.400.0300.07018.54
5.4.390.0400.06318.57
5.4.380.0170.06018.74
5.4.370.0030.06018.57
5.4.360.0100.05318.79
5.4.350.0060.03712.02
5.4.340.0060.04712.02
5.4.320.0050.03712.50
5.4.310.0060.03712.50
5.4.300.0030.03912.50
5.4.290.0050.04112.50
5.4.280.0050.03612.40
5.4.270.0040.04612.39
5.4.260.0030.04812.40
5.4.250.0000.08018.96
5.4.240.0030.07018.89
5.4.230.0070.08018.93
5.4.220.0070.05718.63
5.4.210.0070.05018.95
5.4.200.0070.05718.84
5.4.190.0100.06318.84
5.4.180.0130.06018.83
5.4.170.0070.08018.77
5.4.160.0100.05719.08
5.4.150.0070.06018.95
5.4.140.0130.05016.57
5.4.130.0100.05716.43
5.4.120.0130.06716.29
5.4.110.0070.05016.29
5.4.100.0070.05016.35
5.4.90.0130.06016.41
5.4.80.0070.05016.60
5.4.70.0030.05016.34
5.4.60.0030.05016.52
5.4.50.0100.04716.26
5.4.40.0070.05016.46
5.4.30.0070.06016.43
5.4.20.0030.05316.51
5.4.10.0030.05316.41
5.4.00.0070.06015.85
5.3.290.0050.03912.80
5.3.280.0030.07014.57
5.3.270.0070.05714.68
5.3.260.0100.06014.69
5.3.250.0130.04314.71
5.3.240.0130.07014.67
5.3.230.0170.06014.59
5.3.220.0030.05714.57
5.3.210.0200.05714.58
5.3.200.0070.04714.75
5.3.190.0100.05314.71
5.3.180.0100.04714.56
5.3.170.0030.05314.62
5.3.160.0070.07314.54
5.3.150.0130.07314.64
5.3.140.0100.04714.38
5.3.130.0130.05314.54
5.3.120.0130.06714.63
5.3.110.0030.07314.54
5.3.100.0030.05714.25
5.3.90.0000.05714.15
5.3.80.0130.06014.11
5.3.70.0030.05014.00
5.3.60.0170.03713.90
5.3.50.0030.07013.80
5.3.40.0100.05313.86
5.3.30.0070.04713.99
5.3.20.0100.04313.68
5.3.10.0100.05013.73
5.3.00.0030.06013.64
5.2.170.0070.04011.21
5.2.160.0100.04711.13
5.2.150.0130.03311.31
5.2.140.0030.06311.22
5.2.130.0070.04011.17
5.2.120.0000.04711.18
5.2.110.0230.02711.28
5.2.100.0100.03711.18
5.2.90.0070.03711.00
5.2.80.0070.03711.09
5.2.70.0030.04011.27
5.2.60.0100.03311.14
5.2.50.0070.03710.93
5.2.40.0000.04310.99
5.2.30.0130.03011.05
5.2.20.0070.04311.18
5.2.10.0070.03310.81
5.2.00.0030.04310.71
5.1.60.0030.03310.08
5.1.50.0100.0279.84
5.1.40.0030.03310.04
5.1.30.0030.03710.55
5.1.20.0070.03310.25
5.1.10.0030.03710.22
5.1.00.0000.03710.31
5.0.50.0030.0378.46
5.0.40.0070.0238.38
5.0.30.0100.0408.27
5.0.20.0070.0238.16
5.0.10.0000.0308.27
5.0.00.0030.0408.09
4.4.90.0030.0206.17
4.4.80.0100.0136.17
4.4.70.0000.0236.17
4.4.60.0070.0176.17
4.4.50.0030.0206.17
4.4.40.0070.0306.17
4.4.30.0030.0206.17
4.4.20.0000.0236.17
4.4.10.0030.0206.17
4.4.00.0070.0306.17
4.3.110.0000.0236.17
4.3.100.0030.0206.17
4.3.90.0000.0236.17
4.3.80.0030.0436.17
4.3.70.0100.0206.17
4.3.60.0000.0236.17
4.3.50.0100.0176.17
4.3.40.0000.0336.17
4.3.30.0000.0236.17
4.3.20.0070.0236.17
4.3.10.0100.0206.17
4.3.00.0000.0236.61

preferences:
38.58 ms | 401 KiB | 5 Q