3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_search_options($short_list_of_search = 1){ $return_string = "<option value=\"-1\">Any Text Field</option>"; $data = [1 => 'A']; foreach($data as $id => $user_frinedly_name){ // original code had this typo $return_string .= "<option value=\"". $id . "\">". $user_frinedly_name . "</option>"; } $return_string .= "<option value=\"50\">CPE</option>"; $return_string .= "<option value=\"100\">CVE</option>"; $return_string .= "<option value=\"150\">Minimum CVSS Score</option>"; $return_string .= "<option value=\"250\">CVE Summary Text</option>"; return $return_string; } ?> <script type="text/javascript"> function get_search_options(){ return <?php echo json_encode(get_search_options(1));?>;

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.0140.00718.71
8.3.30.0060.00920.31
8.3.20.0000.00918.69
8.3.10.0050.00321.09
8.3.00.0060.00322.39
8.2.170.0080.00622.96
8.2.160.0200.00022.12
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00821.06
8.2.110.0060.00319.36
8.2.100.0040.00817.97
8.2.90.0000.00719.22
8.2.80.0080.00019.21
8.2.70.0030.00717.50
8.2.60.0090.00017.92
8.2.50.0000.00818.07
8.2.40.0060.00318.11
8.2.30.0030.00519.51
8.2.20.0040.00417.59
8.2.10.0040.00417.67
8.2.00.0070.00317.76
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00322.59
8.1.230.0050.00520.84
8.1.220.0050.00318.77
8.1.210.0030.00518.89
8.1.200.0000.01017.35
8.1.190.0000.00917.53
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0050.00218.89
8.1.150.0000.00818.71
8.1.140.0000.00717.41
8.1.130.0030.00317.87
8.1.120.0070.00017.45
8.1.110.0070.00017.45
8.1.100.0000.00817.51
8.1.90.0030.00317.51
8.1.80.0000.00817.39
8.1.70.0000.00817.38
8.1.60.0030.00517.64
8.1.50.0040.00417.42
8.1.40.0050.00317.50
8.1.30.0040.00417.70
8.1.20.0040.00417.50
8.1.10.0000.00817.52
8.1.00.0000.00717.31
8.0.300.0070.00019.98
8.0.290.0030.00317.16
8.0.280.0000.00718.45
8.0.270.0040.00417.15
8.0.260.0000.00616.72
8.0.250.0060.00316.98
8.0.240.0040.00417.00
8.0.230.0070.00017.02
8.0.220.0030.00316.80
8.0.210.0040.00416.90
8.0.200.0040.00416.86
8.0.190.0070.00016.86
8.0.180.0000.00716.86
8.0.170.0020.00516.91
8.0.160.0000.00717.00
8.0.150.0070.00016.76
8.0.140.0000.00816.92
8.0.130.0060.00013.34
8.0.120.0040.00416.76
8.0.110.0000.00816.76
8.0.100.0000.00716.79
8.0.90.0050.00316.89
8.0.80.0080.00816.87
8.0.70.0000.00816.94
8.0.60.0000.00816.86
8.0.50.0050.00316.81
8.0.30.0100.01016.94
8.0.20.0120.00917.40
8.0.10.0050.00317.10
8.0.00.0110.00816.68
7.4.330.0000.00516.83
7.4.320.0070.00016.52
7.4.300.0000.00616.46
7.4.290.0000.00816.65
7.4.280.0000.00716.52
7.4.270.0030.00316.60
7.4.260.0030.00313.29
7.4.250.0000.00716.50
7.4.240.0070.00016.46
7.4.230.0030.00316.51
7.4.220.0100.01016.60
7.4.210.0100.00916.49
7.4.200.0030.00316.70
7.4.190.0070.00016.75
7.4.160.0100.00616.52
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0120.00816.42
7.4.120.0080.00916.52
7.4.110.0120.00616.50
7.4.100.0070.01016.52
7.4.90.0100.00716.48
7.4.80.0120.00619.39
7.4.70.0030.01316.37
7.4.60.0130.00316.40
7.4.50.0040.00416.47
7.4.40.0030.00722.77
7.4.30.0090.00916.63
7.4.10.0060.01315.01
7.4.00.0030.01115.04
7.3.330.0050.00013.09
7.3.320.0000.00513.29
7.3.310.0040.00316.34
7.3.300.0030.00316.36
7.3.290.0070.00716.31
7.3.280.0120.00716.29
7.3.270.0210.00317.40
7.3.260.0090.01018.24
7.3.250.0100.01016.33
7.3.240.0140.00316.45
7.3.230.0080.01016.64
7.3.210.0060.01016.55
7.3.200.0070.01019.39
7.3.190.0070.01016.36
7.3.180.0140.00716.59
7.3.170.0040.01216.56
7.3.160.0110.00616.62
7.3.130.0060.00914.79
7.3.120.0070.00914.85
7.3.110.0050.01014.81
7.3.100.0100.00514.83
7.3.90.0090.00514.94
7.3.80.0060.00814.91
7.3.70.0100.00314.80
7.3.60.0050.01014.82
7.3.50.0070.00214.79
7.3.40.0050.00914.68
7.3.30.0030.00814.82
7.3.20.0070.00616.53
7.3.10.0110.00616.66
7.3.00.0060.00716.46
7.2.330.0090.00916.43
7.2.320.0070.01016.53
7.2.310.0140.00416.44
7.2.300.0140.00616.50
7.2.290.0120.00616.80
7.2.260.0130.00615.04
7.2.250.0070.01015.09
7.2.240.0050.01215.12
7.2.230.0060.00715.11
7.2.220.0080.00615.12
7.2.210.0080.00815.18
7.2.200.0030.01014.99
7.2.190.0080.00615.19
7.2.180.0080.00814.95
7.2.170.0050.00714.88
7.2.160.0000.01215.09
7.2.150.0090.00616.98
7.2.140.0000.01216.89
7.2.130.0090.00716.79
7.2.120.0090.00716.86
7.2.110.0130.00816.85
7.2.100.0080.01016.62
7.2.90.0090.01216.65
7.2.80.0160.00516.91
7.2.70.0080.00716.48
7.2.60.0120.00916.64
7.2.50.0060.00816.65
7.2.40.0120.00716.67
7.2.30.0130.00516.83
7.2.20.0140.00416.85
7.2.10.0090.00916.81
7.2.00.0060.01217.63
7.1.330.0050.01115.66
7.1.320.0020.01115.89
7.1.310.0060.00515.68
7.1.300.0050.00815.85
7.1.290.0070.00515.73
7.1.280.0070.00715.80
7.1.270.0050.00815.81
7.1.260.0070.00815.68
7.1.250.0110.00815.40
7.1.240.0070.00715.61
7.1.230.0040.00415.67
7.1.220.0090.00315.55
7.1.210.0070.00715.99
7.1.200.0040.00715.84
7.1.190.0060.00615.81
7.1.180.0000.00915.82
7.1.170.0040.00715.95
7.1.160.0070.00715.87
7.1.150.0030.00715.80
7.1.140.0000.01115.84
7.1.130.0060.00615.83
7.1.120.0080.00015.77
7.1.110.0030.00615.79
7.1.100.0090.00316.86
7.1.90.0040.00915.55
7.1.80.0060.00315.98
7.1.70.0030.00616.40
7.1.60.0090.01117.36
7.1.50.0070.01316.05
7.1.40.0000.01215.59
7.1.30.0090.00415.89
7.1.20.0110.00315.88
7.1.10.0060.00915.71
7.1.00.0030.02118.96
7.0.330.0070.00715.43
7.0.320.0000.01015.52
7.0.310.0030.00615.54
7.0.300.0090.00315.42
7.0.290.0040.01415.48
7.0.280.0060.00315.46
7.0.270.0100.00315.31
7.0.260.0030.00915.50
7.0.250.0090.00015.38
7.0.240.0090.00315.48
7.0.230.0040.00815.57
7.0.220.0000.00815.54
7.0.210.0090.00315.48
7.0.200.0030.00916.20
7.0.190.0060.00615.25
7.0.180.0030.00715.55
7.0.170.0080.00415.52
7.0.160.0000.00915.53
7.0.150.0040.01115.38
7.0.140.0050.04118.86
7.0.130.0090.00315.16
7.0.120.0060.00615.62
7.0.110.0060.00615.54
7.0.100.0000.01315.59
7.0.90.0050.03017.64
7.0.80.0070.04017.66
7.0.70.0080.02517.53
7.0.60.0070.04417.61
7.0.50.0080.03117.82
7.0.40.0100.03716.78
7.0.30.0070.02116.86
7.0.20.0070.03816.62
7.0.10.0120.04216.82
7.0.00.0050.04716.81
5.6.400.0030.01014.62
5.6.390.0080.00414.66
5.6.380.0050.00314.57
5.6.370.0000.00914.19
5.6.360.0110.00714.43
5.6.350.0000.01414.31
5.6.340.0060.00314.59
5.6.330.0060.00914.57
5.6.320.0000.01014.35
5.6.310.0070.01014.52
5.6.300.0030.00914.35
5.6.290.0060.00314.19
5.6.280.0070.03817.57
5.6.270.0000.00914.40
5.6.260.0060.00614.10
5.6.250.0110.00414.52
5.6.240.0100.03617.50
5.6.230.0130.03617.44
5.6.220.0050.02317.47
5.6.210.0110.04217.45
5.6.200.0070.02717.63
5.6.190.0030.05017.75
5.6.180.0020.03317.82
5.6.170.0070.03417.70
5.6.160.0080.04317.79
5.6.150.0070.04717.71
5.6.140.0100.04017.78
5.6.130.0090.04517.65
5.6.120.0120.03917.74
5.6.110.0080.03817.87
5.6.100.0030.03217.55
5.6.90.0100.03217.70
5.6.80.0030.04817.29
5.6.70.0160.03417.56
5.6.60.0080.04217.32
5.6.50.0070.03317.44
5.6.40.0020.02717.20
5.6.30.0080.02517.27
5.6.20.0070.04017.36
5.6.10.0110.03817.45
5.6.00.0030.03517.29
5.5.380.0070.04517.29
5.5.370.0030.02817.40
5.5.360.0090.03717.41
5.5.350.0080.04217.29
5.5.340.0060.04317.48
5.5.330.0030.04217.65
5.5.320.0050.03617.77
5.5.310.0130.02517.52
5.5.300.0120.04417.70
5.5.290.0070.03917.65
5.5.280.0060.03517.73
5.5.270.0050.04017.63
5.5.260.0040.03617.70
5.5.250.0050.03517.23
5.5.240.0060.03817.25
5.5.230.0070.02317.21
5.5.220.0030.04217.23
5.5.210.0050.02517.17
5.5.200.0070.02317.29
5.5.190.0030.02817.30
5.5.180.0040.02917.29
5.5.170.0030.01214.43
5.5.160.0080.04317.08
5.5.150.0070.04417.29
5.5.140.0030.03617.30
5.5.130.0050.04317.35
5.5.120.0030.03017.15
5.5.110.0070.03217.15
5.5.100.0130.04217.22
5.5.90.0100.03317.19
5.5.80.0070.02517.08
5.5.70.0020.03017.03
5.5.60.0070.02317.06
5.5.50.0050.03217.26
5.5.40.0050.02917.16
5.5.30.0120.04217.17
5.5.20.0120.03316.95
5.5.10.0070.02017.20
5.5.00.0080.02117.15
5.4.450.0040.03716.01
5.4.440.0100.03215.95
5.4.430.0020.03815.86
5.4.420.0050.04415.96
5.4.410.0090.03515.89
5.4.400.0050.03015.75
5.4.390.0070.04115.74
5.4.380.0080.03915.80
5.4.370.0110.03315.80
5.4.360.0090.02815.70
5.4.350.0080.03815.72
5.4.340.0030.02815.84
5.4.330.0000.01212.56
5.4.320.0030.04215.79
5.4.310.0000.03415.85
5.4.300.0030.03815.84
5.4.290.0080.02715.75
5.4.280.0030.04015.84
5.4.270.0060.03515.84
5.4.260.0070.02315.79
5.4.250.0040.04415.82
5.4.240.0050.02515.87
5.4.230.0100.03815.71
5.4.220.0070.03015.85
5.4.210.0030.04215.82
5.4.200.0030.02615.84
5.4.190.0040.02615.84
5.4.180.0050.02815.86
5.4.170.0070.02715.69
5.4.160.0020.02415.72
5.4.150.0030.02315.69
5.4.140.0040.02114.36
5.4.130.0050.02314.46
5.4.120.0080.01814.47
5.4.110.0030.02314.41
5.4.100.0050.02214.51
5.4.90.0050.02214.41
5.4.80.0030.02014.54
5.4.70.0000.02614.43
5.4.60.0010.02314.51
5.4.50.0020.02414.47
5.4.40.0030.01614.49
5.4.30.0050.01714.47
5.4.20.0020.02014.51
5.4.10.0020.02114.48
5.4.00.0000.02214.21
5.3.290.0070.03913.67
5.3.280.0020.04213.64
5.3.270.0000.02813.60
5.3.260.0050.02013.59
5.3.250.0020.02313.55
5.3.240.0040.02213.55
5.3.230.0090.02013.57
5.3.220.0070.02013.57
5.3.210.0050.02113.62
5.3.200.0050.02213.55
5.3.190.0030.01813.54
5.3.180.0040.02113.56
5.3.170.0050.01513.53
5.3.160.0060.01613.55
5.3.150.0030.02213.58
5.3.140.0050.01513.53
5.3.130.0020.02013.54
5.3.120.0050.01813.53
5.3.110.0050.01813.59
5.3.100.0060.01613.33
5.3.90.0050.02113.27
5.3.80.0020.02513.28
5.3.70.0070.01813.30
5.3.60.0050.01813.27
5.3.50.0040.02213.27
5.3.40.0050.02113.25
5.3.30.0030.02213.26
5.3.20.0040.01813.11
5.3.10.0000.02013.07
5.3.00.0080.02113.12
5.2.170.0070.02311.05
5.2.160.0030.02311.24
5.2.150.0000.03011.05
5.2.140.0000.03011.02
5.2.130.0000.03711.00
5.2.120.0030.03310.98
5.2.110.0000.03011.21
5.2.100.0030.02710.98
5.2.90.0030.03011.19
5.2.80.0030.03011.02
5.2.70.0030.02311.08
5.2.60.0030.04011.18
5.2.50.0000.03311.03
5.2.40.0000.02711.02
5.2.30.0000.03010.88
5.2.20.0030.04011.03
5.2.10.0070.02310.82
5.2.00.0000.03010.74
5.1.60.0030.02310.55
5.1.50.0030.02310.55
5.1.40.0000.02710.55
5.1.30.0000.03710.55
5.1.20.0030.02310.55
5.1.10.0030.02710.55
5.1.00.0000.02310.55
5.0.50.0000.02010.55
5.0.40.0000.02010.55
5.0.30.0000.03310.55
5.0.20.0000.02010.55
5.0.10.0100.01010.55
5.0.00.0000.04710.55
4.4.90.0000.01710.55
4.4.80.0000.01310.55
4.4.70.0000.01710.55
4.4.60.0000.01310.55
4.4.50.0030.01710.55
4.4.40.0000.03310.55
4.4.30.0000.01710.55
4.4.20.0030.01310.55
4.4.10.0030.01310.55
4.4.00.0000.02310.55
4.3.110.0030.01310.55
4.3.100.0000.01710.55
4.3.90.0030.01310.55
4.3.80.0030.02010.55
4.3.70.0030.01710.55
4.3.60.0000.01310.55
4.3.50.0070.01010.55
4.3.40.0000.02310.55
4.3.30.0000.01710.55
4.3.20.0000.01710.55
4.3.10.0000.01310.55
4.3.00.0070.01010.55

preferences:
39.6 ms | 400 KiB | 5 Q