3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Won Code Library * PRNDL Development Studios, LLC * 11/17/2012 * v1.0.0 */ /* * Get shortname for a day of the week using the day number */ function getDayShortName($dayNum){ $dayNames = array("sun","mon","tue","wed","thur","fri","sat"); return $dayNames[$dayNum]; } /* * Get longname for a day of the week using the day number */ function getDayLongName($dayNum){ $dayNames = array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); return $dayNames[$dayNum]; } /* * Get Full Filter Name from Abbreviation */ function getFilterName ($filterAbbreviation) { $filters = array( "R" => "Restuarant", "B" => "Bar", "S" => "Store", "L" => "Lodging", "Q" => "Recreation", "G" => "Gas Station", "E" => "Entertainment", "C" => "Club" ); return $filters[$filterAbbreviation]; } /* * Parse Filterstring and return Where Clause for SQL Queries */ function parseFilterString($filterString) { /*$returnVal = ""; $filterLetters = str_split($filterString, 1);    for($x = 0; $x < strlen($filterString); $x++) {        $returnVal .= "(type <=> '" . getFilterName($filterLetters[$x]) . "') OR ";    }     if (strlen($returnVal) > 0) $returnVal =  substr($returnVal,0,-4); //remove final " OR " from filterstring   else $returnVal = "type = 'VOID'"; //if everything is filtered, make sure to set type to something not available return $returnVal;*/ } ?>

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.0040.01116.63
8.3.50.0130.00717.18
8.3.40.0100.01018.30
8.3.30.0040.01118.48
8.3.20.0080.00018.41
8.3.10.0060.00320.40
8.3.00.0080.00019.25
8.2.180.0040.01118.29
8.2.170.0080.00822.96
8.2.160.0120.00318.84
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0060.00321.13
8.2.110.0060.00319.29
8.2.100.0090.00317.66
8.2.90.0040.00419.09
8.2.80.0090.00019.28
8.2.70.0050.00317.38
8.2.60.0000.00817.66
8.2.50.0060.00318.07
8.2.40.0060.00318.09
8.2.30.0060.00317.93
8.2.20.0000.01117.56
8.2.10.0040.00417.67
8.2.00.0000.00817.62
8.1.280.0100.00325.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0030.01028.09
8.1.240.0090.00023.82
8.1.230.0030.00920.74
8.1.220.0030.00618.77
8.1.210.0000.00719.16
8.1.200.0030.00617.23
8.1.190.0000.00817.41
8.1.180.0000.00918.10
8.1.170.0040.00418.79
8.1.160.0000.00818.64
8.1.150.0000.00818.46
8.1.140.0000.00717.38
8.1.130.0030.00317.77
8.1.120.0000.00717.26
8.1.110.0030.00717.29
8.1.100.0050.00217.30
8.1.90.0070.00017.36
8.1.80.0070.00017.32
8.1.70.0050.00317.31
8.1.60.0050.00217.48
8.1.50.0000.00817.34
8.1.40.0000.00817.37
8.1.30.0030.00517.43
8.1.20.0040.00417.58
8.1.10.0000.00717.36
8.1.00.0000.00717.18
8.0.300.0000.00719.91
8.0.290.0030.00316.58
8.0.280.0030.00318.34
8.0.270.0030.00317.01
8.0.260.0030.00316.69
8.0.250.0000.00916.84
8.0.240.0080.00016.71
8.0.230.0000.00616.72
8.0.220.0000.00716.64
8.0.210.0000.00716.79
8.0.200.0050.00216.81
8.0.190.0050.00316.88
8.0.180.0000.00816.85
8.0.170.0040.00416.56
8.0.160.0030.00516.76
8.0.150.0040.00416.71
8.0.140.0100.00016.77
8.0.130.0030.00313.16
8.0.120.0060.00316.76
8.0.110.0030.00316.76
8.0.100.0080.00016.82
8.0.90.0000.00716.77
8.0.80.0030.01116.82
8.0.70.0070.00016.77
8.0.60.0000.00716.86
8.0.50.0050.00216.79
8.0.30.0070.01016.98
8.0.20.0230.01416.92
8.0.10.0030.00516.75
8.0.00.0080.01416.64
7.4.330.0000.00512.80
7.4.320.0040.00416.43
7.4.300.0000.00616.37
7.4.290.0000.00616.24
7.4.280.0080.00016.44
7.4.270.0030.00316.46
7.4.260.0050.00013.08
7.4.250.0040.00416.39
7.4.240.0070.00016.28
7.4.230.0070.00016.55
7.4.220.0090.01016.55
7.4.210.0050.01016.54
7.4.200.0030.00316.28
7.4.190.0030.00316.61
7.4.160.0100.00716.47
7.4.150.0140.00516.33
7.4.140.0160.00016.43
7.4.130.0090.00916.34
7.4.120.0090.01316.14
7.4.110.0070.01016.25
7.4.100.0030.01216.20
7.4.90.0100.00716.28
7.4.80.0090.01319.39
7.4.70.0120.00516.45
7.4.60.0060.00916.40
7.4.50.0030.00616.51
7.4.40.0040.00916.47
7.4.30.0060.00916.28
7.4.00.0060.01014.87
7.3.330.0030.00313.14
7.3.320.0040.00413.17
7.3.310.0030.00316.19
7.3.300.0030.00316.17
7.3.290.0080.00816.12
7.3.280.0100.01016.10
7.3.270.0120.01216.15
7.3.260.0110.01116.22
7.3.250.0090.00916.35
7.3.240.0070.01016.38
7.3.230.0060.01216.22
7.3.210.0100.00616.46
7.3.200.0090.00916.32
7.3.190.0090.01216.38
7.3.180.0090.00615.97
7.3.170.0140.00316.17
7.3.160.0030.01416.32
7.3.120.0140.00414.70
7.2.330.0090.01316.40
7.2.320.0130.00316.50
7.2.310.0060.01016.18
7.2.300.0070.01016.22
7.2.290.0150.00616.31
7.2.00.0000.01519.13
7.1.100.0060.00817.81
7.1.70.0100.00316.88
7.1.60.0030.01517.02
7.1.50.0180.00316.83
7.1.00.0000.05322.25
7.0.200.0130.00316.51
7.0.140.0030.07321.99
7.0.120.0100.06722.09
7.0.60.0030.06019.78
7.0.50.0030.04017.91
7.0.40.0100.09020.16
7.0.30.0530.05020.16
7.0.20.0270.08020.30
7.0.10.0200.06320.20
7.0.00.0000.05320.10
5.6.280.0100.06721.11
5.6.210.0100.06020.68
5.6.200.0100.07018.25
5.6.190.0070.04020.63
5.6.180.0430.07020.60
5.6.170.0500.07320.48
5.6.160.0030.05720.39
5.6.150.0070.08318.19
5.6.140.0030.07718.15
5.6.130.0100.04318.19
5.6.120.0130.07320.98
5.6.110.0100.07721.13
5.6.100.0170.08320.98
5.6.90.0170.06320.99
5.6.80.0070.03720.39
5.6.70.0330.07020.41
5.5.350.0370.07020.45
5.5.340.0030.04717.99
5.5.330.0030.04320.40
5.5.320.0000.09020.26
5.5.310.0100.05020.30
5.5.300.0030.04318.09
5.5.290.0030.04017.95
5.5.280.0070.05720.89
5.5.270.0030.04020.97
5.5.260.0070.07320.83
5.5.250.0100.08320.67
5.5.240.0030.08020.38
5.4.450.0100.05019.48
5.4.440.0130.04019.18
5.4.430.0100.06319.40
5.4.420.0070.07319.52
5.4.410.0130.04019.34
5.4.400.0100.06719.25
5.4.390.0030.04018.85
5.4.380.0070.04019.24
5.4.370.0070.04019.21
5.4.360.0070.05018.86
5.4.350.0100.05019.14
5.4.340.0070.07319.24
5.4.320.0030.08319.24
5.4.310.0000.05318.86
5.4.300.0070.03719.14
5.4.290.0070.04018.85
5.4.280.0030.04718.85
5.4.270.0070.05019.24
5.4.260.0100.04319.11
5.4.250.0100.05019.15
5.4.240.0100.07719.14
5.4.230.0030.04018.99
5.4.220.0100.07019.14
5.4.210.0030.04319.14
5.4.200.0070.07718.99
5.4.190.0100.03719.13
5.4.180.0030.04019.15
5.4.170.0130.06718.86
5.4.160.0100.04019.03
5.4.150.0000.04018.83
5.4.140.0030.04716.46
5.4.130.0030.07016.42
5.4.120.0170.05716.54
5.4.110.0070.08016.52
5.4.100.0030.07016.45
5.4.90.0100.06716.52
5.4.80.0070.04016.49
5.4.70.0030.07016.34
5.4.60.0070.07016.37
5.4.50.0100.06316.26
5.4.40.0030.04016.41
5.4.30.0070.07016.29
5.4.20.0000.07016.46
5.4.10.0030.03716.66
5.4.00.0000.05315.74
5.3.290.0030.04014.72
5.3.280.0030.06014.62
5.3.270.0000.07714.67
5.3.260.0030.05014.77
5.3.250.0030.04014.61
5.3.240.0030.03714.69
5.3.230.0030.04014.63
5.3.220.0030.04314.59
5.3.210.0100.05714.57
5.3.200.0170.06714.57
5.3.190.0000.05714.63
5.3.180.0000.08014.46
5.3.170.0070.07014.71
5.3.160.0070.05314.72
5.3.150.0070.06714.58
5.3.140.0100.06014.55
5.3.130.0070.04714.61
5.3.120.0130.06714.70
5.3.110.0070.03314.59
5.3.100.0100.08014.05
5.3.90.0030.04014.04
5.3.80.0030.07314.04
5.3.70.0030.07013.91
5.3.60.0000.04714.07
5.3.50.0000.05014.11
5.3.40.0070.07313.88
5.3.30.0000.04713.87
5.3.20.0000.04713.65
5.3.10.0070.07013.66
5.3.00.0030.07713.65
5.2.170.0030.06711.23
5.2.160.0070.02711.31
5.2.150.0070.06011.21
5.2.140.0030.03311.32
5.2.130.0130.04011.07
5.2.120.0000.05711.18
5.2.110.0000.05311.18
5.2.100.0070.05311.07
5.2.90.0030.03011.11
5.2.80.0030.04011.18
5.2.70.0100.03010.99
5.2.60.0100.06011.14
5.2.50.0100.05711.01
5.2.40.0030.04710.90
5.2.30.0030.06010.99
5.2.20.0030.04310.97
5.2.10.0070.04710.85
5.2.00.0030.06310.79
5.1.60.0070.0339.95
5.1.50.0070.05710.14
5.1.40.0070.0279.89
5.1.30.0030.05710.24
5.1.20.0030.05710.36
5.1.10.0070.05310.23
5.1.00.0100.04010.14
5.0.50.0100.0278.46
5.0.40.0000.0508.42
5.0.30.0030.0408.41
5.0.20.0100.0478.17
5.0.10.0070.0438.15
5.0.00.0000.0508.18
4.4.90.0000.0337.73
4.4.80.0030.0337.73
4.4.70.0030.0277.73
4.4.60.0030.0377.73
4.4.50.0000.0207.73
4.4.40.0000.0637.73
4.4.30.0030.0377.73
4.4.20.0000.0407.73
4.4.10.0030.0337.73
4.4.00.0000.0507.73
4.3.110.0030.0277.73
4.3.100.0000.0207.73
4.3.90.0030.0337.73
4.3.80.0030.0337.73
4.3.70.0030.0337.73
4.3.60.0070.0307.73
4.3.50.0070.0307.73
4.3.40.0000.0437.73
4.3.30.0030.0377.73
4.3.20.0000.0307.73
4.3.10.0000.0307.73
4.3.00.0030.0377.73

preferences:
49.07 ms | 401 KiB | 5 Q