3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchdata = array("id" => 1, "name" => "", "type" => "foo"); foreach($searchdata AS $key => $value) $conditions['Question.' . $key] = $value; $conditions = array_filter($conditions); print_r($conditions);

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.40.0120.00618.66
8.3.30.0110.00418.58
8.3.20.0080.00018.60
8.3.10.0040.00418.60
8.3.00.0000.01019.25
8.2.170.0110.00422.96
8.2.160.0110.00419.04
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0020.00520.66
8.2.110.0070.00420.17
8.2.100.0070.00417.91
8.2.90.0030.00519.70
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0000.00918.03
8.2.50.0040.00418.05
8.2.40.0040.00420.07
8.2.30.0080.00017.73
8.2.20.0050.00417.68
8.2.10.0060.00317.60
8.2.00.0000.00717.60
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00021.79
8.1.230.0070.00420.66
8.1.220.0050.00317.77
8.1.210.0080.00018.86
8.1.200.0100.00017.23
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0080.00017.62
8.1.160.0050.00218.99
8.1.150.0060.00318.66
8.1.140.0000.00817.48
8.1.130.0000.00717.81
8.1.120.0050.00317.34
8.1.110.0070.00017.39
8.1.100.0030.00317.34
8.1.90.0040.00317.45
8.1.80.0000.00717.45
8.1.70.0030.00317.33
8.1.60.0080.00017.43
8.1.50.0050.00217.36
8.1.40.0040.00417.48
8.1.30.0040.00417.62
8.1.20.0040.00417.68
8.1.10.0000.00817.61
8.1.00.0000.00717.49
8.0.300.0000.00719.77
8.0.290.0000.00816.63
8.0.280.0000.00718.56
8.0.270.0000.00717.24
8.0.260.0040.00416.81
8.0.250.0000.00816.86
8.0.240.0030.00516.91
8.0.230.0080.00016.96
8.0.220.0000.00716.82
8.0.210.0000.00716.96
8.0.200.0030.00316.94
8.0.190.0030.00516.94
8.0.180.0050.00316.79
8.0.170.0040.00416.80
8.0.160.0070.00016.78
8.0.150.0060.00316.72
8.0.140.0030.00616.80
8.0.130.0030.00313.18
8.0.120.0000.00816.72
8.0.110.0040.00416.76
8.0.100.0060.00316.83
8.0.90.0000.00816.75
8.0.80.0090.00616.91
8.0.70.0020.00516.86
8.0.60.0020.00516.89
8.0.50.0050.00316.79
8.0.30.0130.00616.89
8.0.20.0110.00717.13
8.0.10.0050.00217.04
8.0.00.0100.01016.97
7.4.330.0030.00313.05
7.4.320.0030.00316.40
7.4.300.0000.00616.59
7.4.290.0000.00816.59
7.4.280.0000.00816.51
7.4.270.0030.00316.59
7.4.260.0090.00013.24
7.4.250.0000.00716.46
7.4.240.0050.00216.55
7.4.230.0080.00016.70
7.4.220.0100.01616.55
7.4.210.0030.01716.60
7.4.200.0000.00716.30
7.4.190.0070.00016.59
7.4.160.0060.00916.57
7.4.150.0140.00716.52
7.4.140.0120.00616.47
7.4.130.0100.00716.50
7.4.120.0100.00716.54
7.4.110.0120.00616.68
7.4.100.0170.00316.57
7.4.90.0080.01416.44
7.4.80.0070.01119.39
7.4.70.0060.00916.45
7.4.60.0060.00916.50
7.4.50.0060.00616.55
7.4.40.0090.00316.25
7.4.30.0080.00816.43
7.4.00.0000.01615.13
7.3.330.0000.00613.24
7.3.320.0060.00013.22
7.3.310.0080.00016.22
7.3.300.0000.00716.31
7.3.290.0050.00916.33
7.3.280.0090.01016.34
7.3.270.0070.01016.50
7.3.260.0100.00716.64
7.3.250.0080.01316.51
7.3.240.0110.00616.37
7.3.230.0050.01116.50
7.3.210.0180.00616.43
7.3.200.0030.01416.21
7.3.190.0160.00016.43
7.3.180.0090.01116.25
7.3.170.0080.01216.43
7.3.160.0100.01316.42
7.3.120.0130.00314.89
7.2.330.0150.00416.71
7.2.320.0150.00816.56
7.2.310.0120.00916.48
7.2.300.0000.01616.77
7.2.290.0160.00316.55
7.2.00.0060.00919.44
7.1.100.0040.00418.21
7.1.70.0070.00717.19
7.1.60.0070.01519.30
7.1.50.0070.01417.04
7.1.00.0000.05322.45
7.0.200.0160.00816.75
7.0.140.0030.07321.95
7.0.120.0100.05022.03
7.0.60.0170.07019.96
7.0.50.0030.06317.66
7.0.40.0100.06719.98
7.0.30.0100.04720.09
7.0.20.0330.07320.16
7.0.10.0000.04720.18
7.0.00.0100.08320.31
5.6.280.0030.07321.12
5.6.210.0130.07720.48
5.6.200.0000.08318.12
5.6.190.0100.04020.43
5.6.180.0300.03320.33
5.6.170.0130.05720.48
5.6.160.0000.04720.61
5.6.150.0100.07018.13
5.6.140.0100.06318.18
5.6.130.0000.06018.21
5.6.120.0070.08321.13
5.6.110.0000.09021.09
5.6.100.0130.07720.98
5.6.90.0030.09020.96
5.6.80.0070.07720.50
5.6.70.0070.07720.52
5.5.350.0130.08020.44
5.5.340.0070.07318.04
5.5.330.0030.04720.25
5.5.320.0170.08020.18
5.5.310.0330.07720.29
5.5.300.0030.06318.00
5.5.290.0100.06018.02
5.5.280.0030.06320.96
5.5.270.0100.08320.86
5.5.260.0130.07720.74
5.5.250.0230.07020.61
5.5.240.0170.04720.04
5.4.450.0100.08019.25
5.4.440.0130.06719.41
5.4.430.0170.06019.23
5.4.420.0130.07719.34
5.4.410.0070.03719.34
5.4.400.0130.07018.79
5.4.390.0030.05719.20
5.4.380.0000.04719.14
5.4.370.0030.04719.08
5.4.360.0100.07719.08
5.4.350.0100.03719.14
5.4.340.0130.07018.89
5.4.320.0230.06019.14
5.4.310.0170.06719.13
5.4.300.0100.07718.82
5.4.290.0000.04718.92
5.4.280.0130.04018.80
5.4.270.0070.07019.14
5.4.260.0030.08719.08
5.4.250.0070.08018.80
5.4.240.0100.06319.17
5.4.230.0070.07718.93
5.4.220.0100.06018.78
5.4.210.0030.04718.79
5.4.200.0100.07018.78
5.4.190.0130.07319.17
5.4.180.0070.08019.16
5.4.170.0100.07719.07
5.4.160.0100.05319.12
5.4.150.0130.06318.98
5.4.140.0070.07716.33
5.4.130.0070.04716.36
5.4.120.0130.05316.46
5.4.110.0030.05016.38
5.4.100.0070.07016.25
5.4.90.0070.04316.30
5.4.80.0070.05316.29
5.4.70.0030.04716.23
5.4.60.0000.04316.26
5.4.50.0100.04316.30
5.4.40.0070.05016.25
5.4.30.0100.07016.26
5.4.20.0070.07316.29
5.4.10.0070.03716.32
5.4.00.0100.07315.73
5.3.290.0070.07714.59
5.3.280.0100.07714.47
5.3.270.0070.08014.39
5.3.260.0000.08314.53
5.3.250.0030.07714.52
5.3.240.0030.06014.62
5.3.230.0130.07014.52
5.3.220.0070.07014.66
5.3.210.0030.07314.39
5.3.200.0070.04714.50
5.3.190.0100.06014.55
5.3.180.0030.04314.50
5.3.170.0100.06314.57
5.3.160.0070.06714.54
5.3.150.0100.07314.49
5.3.140.0070.07714.43
5.3.130.0130.07014.48
5.3.120.0030.08014.47
5.3.110.0070.07714.48
5.3.100.0030.05713.98
5.3.90.0070.06714.04
5.3.80.0070.07313.96
5.3.70.0070.07013.94
5.3.60.0100.03013.94
5.3.50.0030.04713.91
5.3.40.0070.06313.76
5.3.30.0100.04013.83
5.3.20.0100.07013.63
5.3.10.0030.06713.63
5.3.00.0070.03313.57
5.2.170.0030.03311.03
5.2.160.0070.02711.23
5.2.150.0100.03011.14
5.2.140.0000.03711.11
5.2.130.0030.05010.98
5.2.120.0130.05311.00
5.2.110.0070.04011.08
5.2.100.0030.03711.26
5.2.90.0070.03010.98
5.2.80.0000.03311.10
5.2.70.0000.03011.08
5.2.60.0000.03710.94
5.2.50.0030.02710.95
5.2.40.0030.02710.98
5.2.30.0000.03010.82
5.2.20.0000.03010.86
5.2.10.0070.02311.01
5.2.00.0070.03010.78
5.1.60.0000.02710.03
5.1.50.0030.02310.00
5.1.40.0030.02010.04
5.1.30.0000.02710.40
5.1.20.0030.02310.42
5.1.10.0030.02710.08
5.1.00.0000.02710.08
5.0.50.0030.0208.71
5.0.40.0000.0208.45
5.0.30.0000.0308.28
5.0.20.0030.0178.23
5.0.10.0000.0208.13
5.0.00.0000.0308.16
4.4.90.0000.0177.48
4.4.80.0000.0177.48
4.4.70.0000.0177.48
4.4.60.0000.0177.48
4.4.50.0070.0107.48
4.4.40.0000.0237.48
4.4.30.0030.0207.48
4.4.20.0000.0177.48
4.4.10.0000.0177.48
4.4.00.0000.0237.48
4.3.110.0030.0137.48
4.3.100.0000.0137.48
4.3.90.0000.0137.48
4.3.80.0000.0237.48
4.3.70.0000.0137.48
4.3.60.0000.0137.48
4.3.50.0000.0177.48
4.3.40.0030.0237.48
4.3.30.0000.0137.48
4.3.20.0000.0177.48
4.3.10.0000.0177.48
4.3.00.0000.0177.48

preferences:
41.33 ms | 400 KiB | 5 Q