3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => null, 1 => null, 2 => null ); if (count(array_keys($users, null, true)) != count($users)) { echo 'true'; } /* if(array_filter($array)) { echo "true\n"; } else echo "false\n"; $array[1] = "test"; if (array_filter($array)) { echo "true\n"; } else echo "false\n"; */

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.0150.00616.75
8.3.50.0100.00617.51
8.3.40.0120.00618.59
8.3.30.0100.01018.83
8.3.20.0070.01118.78
8.3.10.0030.00520.60
8.3.00.0160.00319.38
8.2.180.0090.01216.63
8.2.170.0090.00622.96
8.2.160.0080.00818.73
8.2.150.0030.00524.18
8.2.140.0130.00624.66
8.2.130.0070.01026.16
8.2.120.0030.00617.78
8.2.110.0090.00020.26
8.2.100.0150.00017.72
8.2.90.0030.00619.07
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00517.80
8.2.50.0000.00818.10
8.2.40.0040.00417.96
8.2.30.0000.00817.88
8.2.20.0070.00017.66
8.2.10.0110.00417.73
8.2.00.0000.00817.71
8.1.280.0170.00325.92
8.1.270.0040.00424.66
8.1.260.0170.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0000.01117.77
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0090.00017.13
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0040.00418.89
8.1.160.0040.00418.86
8.1.150.0000.00718.53
8.1.140.0070.00017.30
8.1.130.0030.00317.77
8.1.120.0070.00017.29
8.1.110.0030.00417.41
8.1.100.0040.00417.32
8.1.90.0040.00417.28
8.1.80.0030.00417.32
8.1.70.0000.00717.41
8.1.60.0000.00717.54
8.1.50.0040.00417.38
8.1.40.0070.00017.55
8.1.30.0000.00817.64
8.1.20.0030.00617.57
8.1.10.0000.00717.47
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0000.00718.35
8.0.270.0040.00417.25
8.0.260.0070.00016.87
8.0.250.0080.00316.98
8.0.240.0070.00317.02
8.0.230.0040.00416.92
8.0.220.0070.00016.91
8.0.210.0000.00716.81
8.0.200.0030.00316.86
8.0.190.0000.00816.99
8.0.180.0000.00716.94
8.0.170.0060.00316.96
8.0.160.0040.00416.88
8.0.150.0040.00416.75
8.0.140.0040.00416.89
8.0.130.0040.00413.37
8.0.120.0050.00216.80
8.0.110.0040.00416.78
8.0.100.0040.00416.96
8.0.90.0030.00516.96
8.0.80.0040.01216.90
8.0.70.0070.00016.96
8.0.60.0000.00716.93
8.0.50.0040.00416.78
8.0.30.0090.01016.99
8.0.20.0100.01017.12
8.0.10.0000.00717.14
8.0.00.0090.01116.61
7.4.330.0030.00313.00
7.4.320.0000.00716.63
7.4.300.0000.00616.49
7.4.290.0030.00316.59
7.4.280.0030.00616.51
7.4.270.0070.00016.44
7.4.260.0050.00013.27
7.4.250.0000.00816.48
7.4.240.0050.00216.49
7.4.230.0050.00316.48
7.4.220.0090.00616.48
7.4.210.0080.00816.61
7.4.200.0050.00216.39
7.4.190.0070.00016.47
7.4.160.0080.00816.55
7.4.150.0040.01416.61
7.4.140.0140.00416.54
7.4.130.0100.00616.46
7.4.120.0130.00416.51
7.4.110.0080.00816.50
7.4.100.0100.00716.53
7.4.90.0140.00316.50
7.4.80.0030.01416.47
7.4.70.0070.01116.30
7.4.60.0140.00716.29
7.4.50.0050.00016.39
7.4.40.0100.00316.53
7.4.30.0100.00616.63
7.4.00.0030.01014.95
7.3.330.0000.00613.07
7.3.320.0000.00513.16
7.3.310.0000.00816.32
7.3.300.0040.00416.31
7.3.290.0080.00816.39
7.3.280.0090.00716.38
7.3.270.0120.01216.55
7.3.260.0060.01016.46
7.3.250.0070.01516.36
7.3.240.0070.01016.27
7.3.230.0170.00016.46
7.3.210.0100.01316.54
7.3.200.0100.00719.39
7.3.190.0120.01116.52
7.3.180.0150.00916.35
7.3.170.0070.01016.36
7.3.160.0100.00616.30
7.3.120.0000.01514.90
7.2.330.0110.00516.49
7.2.320.0100.00716.68
7.2.310.0080.01516.64
7.2.300.0080.00816.59
7.2.290.0060.01016.47
7.2.60.0080.00416.57
7.2.00.0000.01519.27
7.1.200.0070.00715.70
7.1.100.0030.00917.91
7.1.70.0040.00416.94
7.1.60.0060.00819.40
7.1.50.0120.00916.53
7.1.00.0070.06722.48
7.0.200.0040.00716.63
7.0.140.0070.07322.12
7.0.120.0000.08021.96
7.0.60.0100.06720.00
7.0.50.0030.04717.88
7.0.40.0000.04719.98
7.0.30.0200.05320.21
7.0.20.0230.07020.09
7.0.10.0000.05720.30
7.0.00.0070.08320.09
5.6.280.0030.07021.03
5.6.210.0070.07320.70
5.6.200.0000.04318.19
5.6.190.0030.04720.48
5.6.180.0200.03720.61
5.6.170.0330.07020.50
5.6.160.0070.03720.38
5.6.150.0000.04018.20
5.6.140.0070.04018.21
5.6.130.0170.07718.17
5.6.120.0100.08321.12
5.6.110.0230.07020.97
5.6.100.0070.05721.04
5.6.90.0030.08720.93
5.6.80.0130.04020.44
5.5.350.0070.07020.37
5.5.340.0070.05717.97
5.5.330.0070.07720.15
5.5.320.3600.04320.41
5.5.310.0300.07320.35
5.5.300.0000.04017.92
5.5.290.0130.08018.00
5.5.280.0230.05320.77
5.5.270.0170.07720.71
5.5.260.0170.07720.67
5.5.250.0070.06720.66
5.5.240.0030.04320.11
5.4.450.0070.05319.14
5.4.440.0170.04019.48
5.4.430.0130.04019.11
5.4.420.0130.06319.46
5.4.410.0070.07718.98
5.4.400.0030.08018.81
5.4.390.0030.08018.93
5.4.380.0100.05719.20
5.4.370.0070.07318.81
5.4.360.0000.07319.08
5.4.350.0100.05319.14
5.4.340.0130.07319.13
5.4.320.0030.05718.80
5.4.310.0000.04319.14
5.4.300.0100.06018.80
5.4.290.0100.06019.17
5.4.280.0070.07018.80
5.4.270.0030.08019.07
5.4.260.0030.04019.14
5.4.250.0000.04319.13
5.4.240.0100.07319.13
5.4.230.0100.07019.00
5.4.220.0130.05719.13
5.4.210.0030.08019.08
5.4.200.0030.08019.17
5.4.190.0030.07719.07
5.4.180.0030.07719.07
5.4.170.0030.03719.09
5.4.160.0030.04319.06
5.4.150.0100.03019.06
5.4.140.0030.03716.48
5.4.130.0000.03716.24
5.4.120.0030.03316.37
5.4.110.0000.04316.58
5.4.100.0030.03316.28
5.4.90.0030.03316.29
5.4.80.0000.03716.27
5.4.70.0070.03716.59
5.4.60.0000.04316.32
5.4.50.0030.03316.20
5.4.40.0030.03716.57
5.4.30.0000.03716.36
5.4.20.0030.03316.28
5.4.10.0000.04016.21
5.4.00.0070.03315.71
5.3.290.0070.03714.63
5.3.280.0070.07714.52
5.3.270.0130.04014.54
5.3.260.0000.04014.42
5.3.250.0070.04714.42
5.3.240.0000.04314.47
5.3.230.0070.03314.53
5.3.220.0100.03014.44
5.3.210.0000.04714.57
5.3.200.0000.03714.52
5.3.190.0070.03314.58
5.3.180.0030.03714.50
5.3.170.0030.03714.48
5.3.160.0030.03714.34
5.3.150.0000.03714.35
5.3.140.0070.03014.38
5.3.130.0000.04714.41
5.3.120.0100.03014.44
5.3.110.0030.03714.48
5.3.100.0000.03713.86
5.3.90.0000.04714.11
5.3.80.0000.03713.95
5.3.70.0070.03013.94
5.3.60.0070.03013.93
5.3.50.0070.03013.89
5.3.40.0070.03013.76
5.3.30.0000.03713.88
5.3.20.0000.04013.62
5.3.10.0170.03713.59
5.3.00.0030.03313.57
5.2.170.0000.03011.04
5.2.160.0030.02711.22
5.2.150.0000.03011.30
5.2.140.0030.02711.29
5.2.130.0000.03011.00
5.2.120.0030.02711.00
5.2.110.0100.02011.00
5.2.100.0070.02711.09
5.2.90.0070.03011.11
5.2.80.0000.03310.98
5.2.70.0030.02711.10
5.2.60.0070.02311.12
5.2.50.0000.03311.00
5.2.40.0030.03010.87
5.2.30.0070.02710.86
5.2.20.0030.03011.03
5.2.10.0030.02710.81
5.2.00.0030.02710.70
5.1.60.0030.02010.01
5.1.50.0000.0309.99
5.1.40.0030.0239.88
5.1.30.0000.05710.21
5.1.20.0070.05710.24
5.1.10.0070.03310.08
5.1.00.0000.02710.04
5.0.50.0070.0178.51
5.0.40.0000.0378.40
5.0.30.0030.0678.21
5.0.20.0070.0238.21
5.0.10.0000.0238.21
5.0.00.0070.0638.20
4.4.90.0000.0177.78
4.4.80.0030.0137.78
4.4.70.0030.0137.78
4.4.60.0000.0177.78
4.4.50.0030.0137.78
4.4.40.0030.0207.78
4.4.30.0000.0177.78
4.4.20.0000.0237.78
4.4.10.0000.0207.78
4.4.00.0000.0307.78
4.3.110.0030.0307.78
4.3.100.0100.0277.78
4.3.90.0000.0207.78
4.3.80.0030.0377.78
4.3.70.0030.0307.78
4.3.60.0030.0207.78
4.3.50.0070.0337.78
4.3.40.0030.0477.78
4.3.30.0030.0207.78
4.3.20.0030.0207.78
4.3.10.0070.0307.78
4.3.00.0000.0207.78

preferences:
45.22 ms | 401 KiB | 5 Q