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.0110.00418.43
8.3.50.0110.00321.09
8.3.40.0030.01418.42
8.3.30.0040.01118.41
8.3.20.0050.00518.35
8.3.10.0030.00520.23
8.3.00.0090.00319.13
8.2.180.0030.01416.32
8.2.170.0090.00922.96
8.2.160.0070.00722.26
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0050.00319.64
8.2.110.0100.00021.07
8.2.100.0030.00917.59
8.2.90.0000.00819.05
8.2.80.0000.00717.97
8.2.70.0080.00017.50
8.2.60.0060.00317.68
8.2.50.0030.00718.07
8.2.40.0060.00318.22
8.2.30.0050.00319.77
8.2.20.0000.00817.61
8.2.10.0030.00517.57
8.2.00.0080.00017.48
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00320.47
8.1.230.0000.01120.97
8.1.220.0030.00618.77
8.1.210.0030.00518.91
8.1.200.0060.00317.25
8.1.190.0000.00717.40
8.1.180.0000.00718.10
8.1.170.0040.00418.84
8.1.160.0000.00818.69
8.1.150.0040.00418.53
8.1.140.0040.00417.29
8.1.130.0030.00317.81
8.1.120.0080.00017.34
8.1.110.0050.00317.21
8.1.100.0050.00317.36
8.1.90.0040.00417.41
8.1.80.0040.00417.23
8.1.70.0030.00317.32
8.1.60.0030.00617.50
8.1.50.0000.00917.36
8.1.40.0000.00917.29
8.1.30.0000.00717.48
8.1.20.0000.00817.45
8.1.10.0000.00717.46
8.1.00.0000.00817.21
8.0.300.0040.00419.90
8.0.290.0000.00816.63
8.0.280.0040.00418.32
8.0.270.0040.00417.18
8.0.260.0000.00716.71
8.0.250.0040.00416.82
8.0.240.0000.00716.74
8.0.230.0030.00316.70
8.0.220.0050.00316.66
8.0.210.0050.00216.66
8.0.200.0030.00616.79
8.0.190.0040.00416.78
8.0.180.0040.00416.68
8.0.170.0040.00416.68
8.0.160.0030.00516.68
8.0.150.0080.00016.65
8.0.140.0040.00416.75
8.0.130.0000.00613.23
8.0.120.0030.00516.60
8.0.110.0040.00416.72
8.0.100.0040.00416.65
8.0.90.0040.00416.71
8.0.80.0080.00616.72
8.0.70.0080.00016.88
8.0.60.0000.00716.83
8.0.50.0040.00416.57
8.0.30.0120.00617.00
8.0.20.0080.01017.40
8.0.10.0040.00416.86
8.0.00.0120.01216.65
7.4.330.0050.00013.43
7.4.320.0030.00316.33
7.4.300.0000.00616.32
7.4.290.0000.00616.54
7.4.280.0040.00316.37
7.4.270.0040.00416.31
7.4.260.0000.00513.26
7.4.250.0030.00616.33
7.4.240.0070.00016.36
7.4.230.0070.00016.27
7.4.220.0120.00616.42
7.4.210.0060.00816.46
7.4.200.0000.00716.29
7.4.190.0000.00816.58
7.4.160.0100.00616.29
7.4.150.0030.01317.40
7.4.140.0100.00817.12
7.4.130.0080.00816.42
7.4.120.0130.00616.32
7.4.110.0060.01116.40
7.4.100.0170.00716.30
7.4.90.0130.01016.39
7.4.80.0080.00819.03
7.4.70.0090.01216.44
7.4.60.0100.00616.45
7.4.50.0040.00416.14
7.4.40.0040.01122.27
7.4.30.0100.00616.38
7.4.10.0160.00314.94
7.4.00.0080.00914.88
7.3.330.0050.00013.17
7.3.320.0030.00313.14
7.3.310.0040.00416.23
7.3.300.0040.00416.05
7.3.290.0060.01316.21
7.3.280.0070.01016.16
7.3.270.0090.00817.40
7.3.260.0140.00718.24
7.3.250.0090.01016.31
7.3.240.0040.01316.49
7.3.230.0070.01016.39
7.3.210.0100.01016.11
7.3.200.0130.00919.39
7.3.190.0070.01016.40
7.3.180.0120.00316.41
7.3.170.0080.00916.27
7.3.160.0090.00616.12
7.3.130.0070.01114.77
7.3.120.0080.00714.50
7.3.110.0100.00714.71
7.3.100.0090.00314.91
7.3.90.0000.01414.78
7.3.80.0060.00914.57
7.3.70.0040.01114.81
7.3.60.0060.00914.45
7.3.50.0120.00314.80
7.3.40.0070.00714.70
7.3.30.0070.00714.70
7.3.20.0060.00316.71
7.3.10.0130.00316.69
7.3.00.0120.00616.66
7.2.330.0160.00916.45
7.2.320.0130.00916.49
7.2.310.0130.00316.54
7.2.300.0150.00616.54
7.2.290.0110.00916.14
7.2.260.0030.01614.68
7.2.250.0070.01014.91
7.2.240.0120.00314.94
7.2.230.0060.00914.83
7.2.220.0060.00914.71
7.2.210.0110.00414.75
7.2.200.0060.00914.69
7.2.190.0100.00314.93
7.2.180.0060.01314.48
7.2.170.0070.00714.84
7.2.160.0110.00314.77
7.2.150.0080.00616.59
7.2.140.0030.01516.77
7.2.130.0080.01116.41
7.2.120.0090.00316.52
7.2.110.0060.00616.86
7.2.100.0070.00316.78
7.2.90.0050.00516.80
7.2.80.0080.00816.49
7.2.70.0040.01316.82
7.2.60.0070.00416.74
7.2.50.0060.01316.63
7.2.40.0000.01316.75
7.2.30.0070.00716.86
7.2.20.0070.00316.34
7.2.10.0000.01516.64
7.2.00.0050.01117.88
7.1.330.0040.01115.62
7.1.320.0050.00515.50
7.1.310.0040.01215.39
7.1.300.0060.00615.70
7.1.290.0080.00815.65
7.1.280.0090.00315.29
7.1.270.0080.00615.71
7.1.260.0080.00415.54
7.1.250.0100.00715.38
7.1.240.0000.01315.61
7.1.230.0040.01115.45
7.1.220.0140.00015.63
7.1.210.0000.01015.52
7.1.200.0120.00315.68
7.1.190.0120.00015.52
7.1.180.0030.01215.47
7.1.170.0000.01215.55
7.1.160.0030.00615.70
7.1.150.0030.01315.55
7.1.140.0000.01215.62
7.1.130.0060.00915.46
7.1.120.0000.00915.52
7.1.110.0000.01715.72
7.1.100.0030.00816.62
7.1.90.0090.00315.75
7.1.80.0080.00615.68
7.1.70.0030.00716.19
7.1.60.0070.01317.43
7.1.50.0030.01116.23
7.1.40.0050.00515.23
7.1.30.0070.01015.59
7.1.20.0090.00615.28
7.1.10.0030.01015.59
7.1.00.0050.03519.07
7.0.330.0090.00915.19
7.0.320.0090.00615.28
7.0.310.0060.01315.03
7.0.300.0000.01315.24
7.0.290.0000.01415.09
7.0.280.0080.00415.38
7.0.270.0110.00415.31
7.0.260.0060.00315.19
7.0.250.0000.01415.29
7.0.240.0000.01215.16
7.0.230.0070.00715.16
7.0.220.0000.01115.45
7.0.210.0110.00415.07
7.0.200.0040.00515.80
7.0.190.0030.01015.26
7.0.180.0140.00015.40
7.0.170.0000.01415.17
7.0.160.0000.01315.26
7.0.150.0070.01015.24
7.0.140.0030.04018.72
7.0.130.0110.00315.21
7.0.120.0000.01515.05
7.0.110.0040.00715.26
7.0.100.0040.01115.43
7.0.90.0070.01015.07
7.0.80.0030.01015.30
7.0.70.0030.01015.11
7.0.60.0020.02917.71
7.0.50.0130.03116.65
7.0.40.0070.02715.59
7.0.30.0020.03215.60
7.0.20.0050.02515.56
7.0.10.0050.02515.57
7.0.00.0000.02915.55
5.6.400.0000.01514.34
5.6.390.0060.01114.19
5.6.380.0030.01314.33
5.6.370.0040.01114.29
5.6.360.0070.01114.13
5.6.350.0090.00314.25
5.6.340.0030.00714.43
5.6.330.0100.00313.68
5.6.320.0030.00714.22
5.6.310.0030.01014.25
5.6.300.0070.01014.16
5.6.290.0040.01114.13
5.6.280.0040.04217.69
5.6.270.0040.00414.20
5.6.260.0090.00614.27
5.6.250.0040.01114.34
5.6.240.0060.00913.91
5.6.230.0060.00314.03
5.6.220.0070.01014.03
5.6.210.0070.02217.29
5.6.200.0020.03416.23
5.6.190.0080.02716.08
5.6.180.0070.04416.13
5.6.170.0050.02916.17
5.6.160.0030.02416.00
5.6.150.0060.04116.02
5.6.140.0070.04016.23
5.6.130.0030.02716.04
5.6.120.0030.04916.03
5.6.110.0040.02416.29
5.6.100.0030.02716.20
5.6.90.0030.04516.15
5.6.80.0050.02815.85
5.6.70.0030.02715.73
5.6.60.0070.03715.85
5.6.50.0060.02515.79
5.6.40.0050.03215.63
5.6.30.0080.04615.75
5.6.20.0060.03415.66
5.6.10.0110.03615.76
5.6.00.0060.02815.80
5.5.380.0040.01113.89
5.5.370.0110.00014.13
5.5.360.0120.00414.16
5.5.350.0100.04417.29
5.5.340.0080.02016.08
5.5.330.0030.03316.04
5.5.320.0050.04616.16
5.5.310.0070.02315.92
5.5.300.0080.02516.09
5.5.290.0030.04516.07
5.5.280.0070.02515.97
5.5.270.0000.03215.98
5.5.260.0070.02116.04
5.5.250.0050.03215.95
5.5.240.0030.04715.71
5.5.230.0060.04615.69
5.5.220.0050.03515.61
5.5.210.0070.02415.56
5.5.200.0080.03615.67
5.5.190.0030.04715.51
5.5.180.0050.02315.61
5.5.170.0000.01213.44
5.5.160.0050.02515.73
5.5.150.0070.02015.66
5.5.140.0090.02715.63
5.5.130.0060.02015.73
5.5.120.0040.02315.64
5.5.110.0100.04015.62
5.5.100.0050.03315.58
5.5.90.0020.02315.63
5.5.80.0030.02715.81
5.5.70.0150.02015.78
5.5.60.0080.03515.68
5.5.50.0030.04315.71
5.5.40.0050.03515.64
5.5.30.0050.02715.75
5.5.20.0070.02615.57
5.5.10.0020.02415.44
5.5.00.0100.02515.41
5.4.450.0070.03215.08
5.4.440.0070.03315.11
5.4.430.0020.04215.04
5.4.420.0070.03515.01
5.4.410.0020.02315.13
5.4.400.0020.04114.93
5.4.390.0050.03814.86
5.4.380.0060.04114.79
5.4.370.0070.04214.98
5.4.360.0030.03014.81
5.4.350.0080.03815.11
5.4.340.0110.03114.79
5.4.330.0040.00810.62
5.4.320.0100.03915.05
5.4.310.0130.02314.77
5.4.300.0060.02414.90
5.4.290.0090.03314.88
5.4.280.0020.04014.85
5.4.270.0050.02114.81
5.4.260.0070.02214.92
5.4.250.0020.02314.92
5.4.240.0050.02014.91
5.4.230.0070.03814.88
5.4.220.0050.02214.65
5.4.210.0040.02614.93
5.4.200.0020.04314.81
5.4.190.0020.03614.97
5.4.180.0050.02014.88
5.4.170.0070.04014.98
5.4.160.0020.03415.00
5.4.150.0080.03514.86
5.4.140.0080.03013.53
5.4.130.0050.04013.73
5.4.120.0050.03913.48
5.4.110.0070.03813.54
5.4.100.0030.03913.59
5.4.90.0020.02513.52
5.4.80.0070.03013.56
5.4.70.0060.03013.52
5.4.60.0050.04013.61
5.4.50.0050.01813.44
5.4.40.0060.02913.63
5.4.30.0110.03713.51
5.4.20.0050.02213.52
5.4.10.0060.04013.56
5.4.00.0030.03413.19
5.3.290.0050.03212.51
5.3.280.0030.03812.45
5.3.270.0090.04112.48
5.3.260.0030.03212.54
5.3.250.0070.02212.49
5.3.240.0030.04012.52
5.3.230.0050.03812.47
5.3.220.0060.04112.54
5.3.210.0050.04512.46
5.3.200.0050.03812.43
5.3.190.0070.03212.44
5.3.180.0050.03712.43
5.3.170.0050.02312.45
5.3.160.0030.03112.47
5.3.150.0050.03612.51
5.3.140.0020.04012.51
5.3.130.0080.03812.43
5.3.120.0020.02812.46
5.3.110.0030.03012.47
5.3.100.0050.03812.19
5.3.90.0050.02212.24
5.3.80.0080.03312.16
5.3.70.0020.02312.19
5.3.60.0050.02312.10
5.3.50.0080.02212.15
5.3.40.0020.02312.25
5.3.30.0060.03012.13
5.3.20.0050.03912.01
5.3.10.0030.02111.98
5.3.00.0020.03211.99
5.2.170.0030.06311.16
5.2.160.0030.05311.20
5.2.150.0030.03711.15
5.2.140.0000.03711.19
5.2.130.0000.03311.15
5.2.120.0000.05011.00
5.2.110.0070.04011.11
5.2.100.0030.06711.15
5.2.90.0030.06711.10
5.2.80.0030.05011.11
5.2.70.0070.03011.09
5.2.60.0000.05011.16
5.2.50.0030.06711.03
5.2.40.0070.04011.05
5.2.30.0030.04010.88
5.2.20.0030.03711.03
5.2.10.0000.04310.91
5.2.00.0030.06310.73
5.1.60.0030.05310.00
5.1.50.0070.02710.05
5.1.40.0030.03010.20
5.1.30.0000.06310.38
5.1.20.0070.03710.43
5.1.10.0070.05310.05
5.1.00.0100.05310.02
5.0.50.0000.0438.54
5.0.40.0070.0408.38
5.0.30.0030.0308.18
5.0.20.0000.0208.18
5.0.10.0000.0208.24
5.0.00.0100.0238.22
4.4.90.0030.0337.40
4.4.80.0000.0377.40
4.4.70.0030.0337.40
4.4.60.0030.0237.40
4.4.50.0000.0207.40
4.4.40.0000.0537.40
4.4.30.0030.0277.40
4.4.20.0030.0337.40
4.4.10.0030.0207.40
4.4.00.0000.0507.40
4.3.110.0000.0377.40
4.3.100.0000.0307.40
4.3.90.0000.0177.40
4.3.80.0000.0277.40
4.3.70.0000.0137.40
4.3.60.0000.0137.40
4.3.50.0000.0137.40
4.3.40.0000.0237.40
4.3.30.0000.0137.40
4.3.20.0000.0177.40
4.3.10.0000.0137.40
4.3.00.0000.0177.40

preferences:
43.09 ms | 401 KiB | 5 Q