3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $array[0] = 'Los%20Angeles,%20CA,%20United%20States%20(LAX-Los%20Angeles%20Intl.)'; $array[1] = "Miami,%20FL,%20United%20States%20(MIA-Miami%20Intl.)"; $array[2] = "Nassau,%20Bahamas%20(NAS-Nassau%20Intl.)"; $array[3] = "Honolulu,%20HI,%20United%20States%20(HNL-Honolulu%20Intl.)"; $array[4] = "Mexico%20City,%20Distrito%20Federal,%20Mexico%20(MEX-Mexico%20City%20Intl.)"; $array[5] = "George%20Town,%20Cayman%20Islands%20(GCM-Owen%20Roberts%20Intl.)"; if ( $_SESSION['pack'] == "FL PACKAGE - 3DAY" ) { $dest = $array[1]; $exp = explode('- ', $_SESSION['pack']); $pack_days = str_replace('DAY', '', $exp); } //JAN - 1 //FEB - 2 //MAR - 3 //APR - 4 //MAY - 5 //JUN - 6 //JUL - 7 //AUG - 8 //SEP - 9 //OCT - 10 //NOV - 11 //DEC - 12 $explode = explode('/', $_POST['date_dep']); $day = $explode[1] + $pack_days; $month = $explode[0]; $year = $explode[2]; if ( ($explode[0] == 1 OR $explode[0] == 3 OR $explode[0] == 5 OR $explode[0] == 7 OR $explode[0] == 8 OR $explode[0] == 10 OR $explode[0] == 12) && $day > 31 ) { $day -= 31; $month += 1; } if ( ($explode[0] == 4 OR $explode[0] == 6 OR $explode[0] == 9 OR $explode[0] == 11) && $day > 30 ) { $day -= 30; $month += 1; } if ( $explode[0] == 2 && $day > 28 ) { $day -= 28; $month += 1; } if ( $month == 13 ) { $month -= 12; $year += 1; } $date = $month.'/'.$day.'/'.$year; $from = "from:FLL"; //leg1 $from2 = ",to:".$dest; //leg1.2 $datefrom = ",departure:".$_POST['date_dep']."TANYT"; //leg1.3 $to = "from:".$dest; //leg2 $to2 = ",to:FLL"; //leg2.1 $dateto = ",departure:".$date."TANYT"; //leg 2.3 $children_ages = array(); $num = $_POST['children']; if ( $num == 0 ) { $children_imp = null; } else { for ($i = 0; $i <= $num - 2; $i++) { $children_ages[] = '15;'; } $children_ages[$i] = '15'; $children_imp = '['.implode($children_ages).']'; } $children = "children:".$_POST['children'].$children_imp; $adults = ",adults:".$_POST['adults']; $seniors = ",seniors:0"; $infant_in = ",infantinlap:Y"; $url_formatted = "http://www.travelocity.com/Flights-Search?trip=roundtrip&leg1=".$from.$from2.$datefrom."&leg2=".$to.$to2.$dateto."&passengers=".$children.$adults.$seniors.$infant_in."&mode=search"; header('Location: '.$url_formatted);

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.0090.00918.68
8.3.50.0040.01117.93
8.3.40.0160.00319.02
8.3.30.0070.01019.07
8.3.20.0050.00320.19
8.3.10.0040.00421.81
8.3.00.0080.00019.38
8.2.180.0070.01416.88
8.2.170.0060.00922.96
8.2.160.0070.00720.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0070.00022.31
8.2.110.0030.00622.10
8.2.100.0060.00718.00
8.2.90.0040.00419.33
8.2.80.0080.00017.97
8.2.70.0060.00617.75
8.2.60.0040.00418.29
8.2.50.0040.00418.07
8.2.40.0050.00320.03
8.2.30.0040.00418.28
8.2.20.0000.00717.95
8.2.10.0000.00718.27
8.2.00.0040.00417.96
8.1.280.0110.00725.92
8.1.270.0060.00322.19
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0030.00623.96
8.1.230.0080.00419.13
8.1.220.0050.00317.80
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0000.00917.47
8.1.180.0030.00518.10
8.1.170.0000.00818.69
8.1.160.0000.00822.15
8.1.150.0070.00018.93
8.1.140.0000.00817.47
8.1.130.0030.00317.95
8.1.120.0080.00017.59
8.1.110.0050.00317.57
8.1.100.0040.00417.54
8.1.90.0040.00417.51
8.1.80.0080.00017.57
8.1.70.0030.00317.48
8.1.60.0040.00417.71
8.1.50.0000.00817.54
8.1.40.0040.00417.59
8.1.30.0030.00617.64
8.1.20.0060.00317.80
8.1.10.0050.00317.72
8.1.00.0040.00417.52
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0070.00018.46
8.0.270.0030.00317.28
8.0.260.0000.00817.39
8.0.250.0000.00717.07
8.0.240.0030.00617.09
8.0.230.0000.00716.96
8.0.220.0030.00716.94
8.0.210.0000.00717.05
8.0.200.0030.00317.14
8.0.190.0070.00317.04
8.0.180.0040.00417.10
8.0.170.0080.00017.11
8.0.160.0000.00717.06
8.0.150.0000.00716.89
8.0.140.0050.00217.05
8.0.130.0070.00013.37
8.0.120.0000.00717.01
8.0.110.0080.00017.00
8.0.100.0050.00317.00
8.0.90.0050.00216.84
8.0.80.0060.01017.07
8.0.70.0030.00517.09
8.0.60.0040.00416.82
8.0.50.0040.00417.03
8.0.30.0210.00417.05
8.0.20.0110.01117.40
8.0.10.0000.00817.28
8.0.00.0100.01216.78
7.4.330.0000.00515.00
7.4.320.0000.00616.50
7.4.300.0070.00016.60
7.4.290.0030.00416.60
7.4.280.0050.00316.59
7.4.270.0000.00716.54
7.4.260.0000.00716.59
7.4.250.0070.00016.57
7.4.240.0030.00316.65
7.4.230.0050.00216.77
7.4.220.0110.00816.54
7.4.210.0090.00616.80
7.4.200.0080.00016.59
7.4.160.0110.00616.66
7.4.150.0070.01117.40
7.4.140.0090.01017.86
7.4.130.0100.00816.57
7.4.120.0090.01016.65
7.4.110.0100.01316.75
7.4.100.0090.00916.71
7.4.90.0120.00616.87
7.4.80.0060.01519.39
7.4.70.0060.01016.54
7.4.60.0070.01016.51
7.4.50.0060.00316.44
7.4.40.0060.01116.65
7.4.30.0090.00816.50
7.4.10.0090.00915.01
7.4.00.0070.01114.91
7.3.330.0030.00313.45
7.3.320.0020.00213.44
7.3.310.0040.00416.34
7.3.300.0060.00316.50
7.3.290.0130.00416.43
7.3.280.0080.00916.50
7.3.270.0110.00717.40
7.3.260.0030.01416.46
7.3.250.0070.01416.66
7.3.240.0130.00616.81
7.3.230.0120.01216.52
7.3.210.0100.00716.46
7.3.200.0100.00619.39
7.3.190.0120.01016.74
7.3.180.0000.01916.54
7.3.170.0000.01816.73
7.3.160.0030.01316.49
7.3.130.0060.00614.95
7.3.120.0030.01414.90
7.3.110.0070.01014.83
7.3.100.0090.00814.99
7.3.90.0060.00514.98
7.3.80.0090.00615.04
7.3.70.0080.00514.93
7.3.60.0070.00914.92
7.3.50.0050.00614.94
7.3.40.0030.01014.96
7.3.30.0080.00615.03
7.3.20.0060.00816.77
7.3.10.0060.00616.72
7.3.00.0060.00616.76
7.2.330.0140.00416.92
7.2.320.0060.01216.76
7.2.310.0070.01016.84
7.2.300.0080.00917.03
7.2.290.0110.00716.68
7.2.260.0030.01715.23
7.2.250.0050.01515.19
7.2.240.0090.00915.08
7.2.230.0060.01015.19
7.2.220.0050.00815.14
7.2.210.0040.01115.11
7.2.200.0020.01215.01
7.2.190.0060.00915.16
7.2.180.0030.00915.24
7.2.170.0040.01115.17
7.2.160.0060.01215.36
7.2.150.0100.00616.81
7.2.140.0000.01117.11
7.2.130.0060.00917.02
7.2.120.0090.00616.72
7.2.110.0060.01317.12
7.2.100.0040.01517.16
7.2.90.0070.01117.18
7.2.80.0110.00416.88
7.2.70.0070.00717.18
7.2.60.0050.00716.88
7.2.50.0030.00817.05
7.2.40.0070.00316.64
7.2.30.0070.01017.09
7.2.20.0060.00316.79
7.2.10.0080.00816.70
7.2.00.0030.01118.32
7.1.330.0040.01116.00
7.1.320.0050.00815.92
7.1.310.0050.00915.84
7.1.300.0050.00715.76
7.1.290.0050.00815.83
7.1.280.0030.00915.73
7.1.270.0080.00515.84
7.1.260.0060.00715.81
7.1.250.0060.00615.92
7.1.240.0060.00915.91
7.1.230.0120.00315.89
7.1.220.0030.00615.57
7.1.210.0060.00315.96
7.1.200.0090.00915.63
7.1.190.0030.00515.86
7.1.180.0060.00615.91
7.1.170.0000.01115.96
7.1.160.0060.00315.89
7.1.150.0050.00315.92
7.1.140.0000.01116.02
7.1.130.0030.01015.89
7.1.120.0030.01315.74
7.1.110.0040.00415.97
7.1.100.0060.00516.97
7.1.90.0090.00615.72
7.1.80.0030.01015.95
7.1.70.0050.00516.29
7.1.60.0080.00817.50
7.1.50.0120.00716.49
7.1.40.0060.00915.68
7.1.30.0060.00615.47
7.1.20.0060.00615.90
7.1.10.0040.00415.82
7.1.00.0080.03919.11
7.0.330.0070.00715.18
7.0.320.0060.00615.51
7.0.310.0090.00615.63
7.0.300.0030.00715.39
7.0.290.0070.00715.52
7.0.280.0000.01115.45
7.0.270.0060.00915.41
7.0.260.0030.01315.54
7.0.250.0000.00915.61
7.0.240.0040.00415.36
7.0.230.0000.01215.62
7.0.220.0090.00315.51
7.0.210.0100.00315.45
7.0.200.0030.00715.96
7.0.190.0040.00715.51
7.0.180.0080.00415.42
7.0.170.0030.00515.49
7.0.160.0030.00915.32
7.0.150.0070.00315.23
7.0.140.0030.03718.73
7.0.130.0070.00715.60
7.0.120.0060.00615.38
7.0.110.0060.00915.11
7.0.100.0100.03817.79
7.0.90.0130.02517.69
7.0.80.0070.03817.65
7.0.70.0040.04117.69
7.0.60.0050.04817.79
7.0.50.0130.04217.84
7.0.40.0040.04016.83
7.0.30.0030.04716.68
7.0.20.0070.04316.84
7.0.10.0020.04016.85
7.0.00.0040.02616.79
5.6.400.0030.01014.43
5.6.390.0120.00414.51
5.6.380.0070.00414.64
5.6.370.0090.00614.19
5.6.360.0090.00614.80
5.6.350.0070.00714.61
5.6.340.0030.01014.55
5.6.330.0150.00314.21
5.6.320.0000.00914.20
5.6.310.0030.01014.54
5.6.300.0070.00714.51
5.6.290.0060.00614.40
5.6.280.0050.03817.77
5.6.270.0100.00714.35
5.6.260.0000.01214.65
5.6.250.0090.03217.62
5.6.240.0050.02917.59
5.6.230.0100.04317.56
5.6.220.0110.04417.43
5.6.210.0080.02717.55
5.6.200.0110.02017.78
5.6.190.0080.02617.77
5.6.180.0060.02617.76
5.6.170.0050.04017.85
5.6.160.0050.03217.58
5.6.150.0050.04217.80
5.6.140.0120.03917.63
5.6.130.0000.03917.75
5.6.120.0070.04617.75
5.6.110.0070.03217.64
5.6.100.0070.04017.67
5.6.90.0110.03517.97
5.6.80.0080.02117.48
5.6.70.0100.03517.36
5.6.60.0030.02417.40
5.6.50.0030.02817.25
5.6.40.0050.03517.27
5.6.30.0030.02517.32
5.6.20.0050.04217.31
5.6.10.0030.02417.37
5.6.00.0100.04117.37
5.5.380.0080.02817.51
5.5.370.0070.02517.57
5.5.360.0100.04317.60
5.5.350.0120.03717.54
5.5.340.0030.03317.65
5.5.330.0080.04217.66
5.5.320.0020.02817.67
5.5.310.0110.03517.54
5.5.300.0120.02217.69
5.5.290.0090.03717.66
5.5.280.0100.03517.58
5.5.270.0080.04317.71
5.5.260.0070.04117.67
5.5.250.0050.02817.52
5.5.240.0030.03517.22
5.5.230.0040.02617.40
5.5.220.0130.03517.21
5.5.210.0050.02817.27
5.5.200.0040.02717.29
5.5.190.0050.04517.29
5.5.180.0090.03917.17
5.5.170.0060.00614.49
5.5.160.0030.04717.26
5.5.150.0120.03717.34
5.5.140.0040.04117.28
5.5.130.0080.03117.31
5.5.120.0070.03017.45
5.5.110.0050.04517.39
5.5.100.0070.04317.30
5.5.90.0050.02617.20
5.5.80.0070.04317.38
5.5.70.0120.03817.06
5.5.60.0060.04417.13
5.5.50.0050.04217.31
5.5.40.0080.02317.29
5.5.30.0080.02317.33
5.5.20.0020.02817.07
5.5.10.0040.02717.16
5.5.00.0090.02017.17
5.4.450.0120.03515.78
5.4.440.0000.04015.80
5.4.430.0060.03315.78
5.4.420.0050.04315.90
5.4.410.0100.03515.81
5.4.400.0100.03915.64
5.4.390.0030.03615.72
5.4.380.0030.02215.71
5.4.370.0020.04215.65
5.4.360.0050.04015.71
5.4.350.0070.02015.62
5.4.340.0050.03815.72
5.4.330.0030.00312.33
5.4.320.0070.03715.72
5.4.310.0050.04115.69
5.4.300.0120.03515.78
5.4.290.0080.03615.71
5.4.280.0030.03715.78
5.4.270.0030.03415.78
5.4.260.0020.02715.63
5.4.250.0050.04015.64
5.4.240.0030.02315.68
5.4.230.0060.02015.57
5.4.220.0080.03515.70
5.4.210.0090.02215.72
5.4.200.0030.03015.64
5.4.190.0070.02415.68
5.4.180.0080.02015.65
5.4.170.0030.02415.69
5.4.160.0020.02415.57
5.4.150.0030.02115.57
5.4.140.0000.02814.31
5.4.130.0030.02114.30
5.4.120.0020.02214.31
5.4.110.0000.02114.36
5.4.100.0040.02214.28
5.4.90.0060.02014.38
5.4.80.0050.02014.35
5.4.70.0110.02314.27
5.4.60.0030.02414.37
5.4.50.0030.02414.33
5.4.40.0040.02114.28
5.4.30.0030.02214.31
5.4.20.0030.02014.26
5.4.10.0050.02614.33
5.4.00.0000.02514.08
5.3.290.0070.04714.63
5.3.280.0030.05714.60
5.3.270.0100.03714.48
5.3.260.0270.03014.63
5.3.250.0030.03714.64
5.3.240.0030.04014.62
5.3.230.0030.03714.44
5.3.220.0000.04014.55
5.3.210.0000.04014.55
5.3.200.0000.04014.60
5.3.190.0030.03314.53
5.3.180.0000.03714.41
5.3.170.0000.04314.55
5.3.160.0070.03314.56
5.3.150.0100.03014.56
5.3.140.0000.04014.54
5.3.130.0000.04014.43
5.3.120.0000.04014.44
5.3.110.0070.04314.39
5.3.100.0000.04313.98
5.3.90.0070.03314.05
5.3.80.0030.04314.04
5.3.70.0000.04313.99
5.3.60.0030.03714.02
5.3.50.0030.03713.98
5.3.40.0000.04013.82
5.3.30.0000.03713.80
5.3.20.0000.04013.71
5.3.10.0070.03313.64
5.3.00.0070.03313.62
5.2.170.0000.03011.63
5.2.160.0000.04311.63
5.2.150.0030.03011.63
5.2.140.0030.03011.63
5.2.130.0000.03311.63
5.2.120.0030.02711.63
5.2.110.0000.03011.63
5.2.100.0030.02711.63
5.2.90.0030.02711.63
5.2.80.0000.03011.63
5.2.70.0000.03011.63
5.2.60.0000.04311.63
5.2.50.0000.03711.63
5.2.40.0000.03011.63
5.2.30.0000.03011.63
5.2.20.0030.03011.63
5.2.10.0000.03311.63
5.2.00.0030.04011.63
5.1.60.0070.02011.63
5.1.50.0070.01711.63
5.1.40.0000.02311.63
5.1.30.0030.02711.63
5.1.20.0070.02011.63
5.1.10.0000.02711.63
5.1.00.0030.02711.63
5.0.50.0030.01711.63
5.0.40.0070.04011.63
5.0.30.0070.05711.63
5.0.20.0000.02311.63
5.0.10.0030.03311.63
5.0.00.0030.06711.63
4.4.90.0000.01711.63
4.4.80.0030.01311.63
4.4.70.0030.01311.63
4.4.60.0000.01311.63
4.4.50.0030.01311.63
4.4.40.0000.04311.63
4.4.30.0000.01311.63
4.4.20.0000.01311.63
4.4.10.0000.01711.63
4.4.00.0000.05011.63
4.3.110.0000.02711.63
4.3.100.0030.02711.63
4.3.90.0030.03311.63
4.3.80.0000.03011.63
4.3.70.0070.01311.63
4.3.60.0000.03011.63
4.3.50.0030.03711.63
4.3.40.0000.04311.63
4.3.30.0000.03311.63
4.3.20.0030.01711.63
4.3.10.0000.03311.63
4.3.00.0000.04011.63

preferences:
47.08 ms | 400 KiB | 5 Q