3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( isset($_POST['submit']) ) { $array[0] = ',to:Los%20Angeles,%20CA,%20United%20States%20(LAX-Los%20Angeles%20Intl.)'; $array[1] = ",to:Miami,%20FL,%20United%20States%20(MIA-Miami%20Intl.)"; $array[2] = ",to:Nassau,%20Bahamas%20(NAS-Nassau%20Intl.)"; $lower_trim = trim(strtoupper($_POST['dest'])); if ( $lower_trim == "MIAMI" || $lower_trim == "MIAMI,FL" || $lower_trim == "MIAMI,FLORIDA" || $lower_trim == "FL" ) { $dest = $array[1]; } if ( $lower_trim == "LOSANGELES" || $lower_trim == "LA" || $lower_trim == "LOSANGELES,CALIFORNIA" || $lower_trim == "ANAHEIM" || $lower_trim == "ANAHEIM,CALIFORNIA" || $lower_trim == "ANAHEIM,CA" || $lower_trim == "LOSANGELES,CA" || $lower_trim == "LA,CA" || $lower_trim == "CA" ) { $dest = $array[0]; } if ( $lower_trim == "NASSAU" || $lower_trim == "NEW PROVIDENCE" || $lower_trim == "NASSAU,BAHAMAS" || $lower_trim == "NASSSAU,THEBAHAMAS" || $lower_trim == "THEBAHAMAS" || $lower_trim == "NASSAU,NEWPROVIDENCE" || $lower_trim == "NASSAU,NEWPROVIDENCE,THEBAHAMAS" ) { $dest = $array[2]; } $from = "from:FLL"; //leg1 $from2 = $dest; //leg1.2 $datefrom = ",departure:10/23/2014TANYT"; //leg1.3 $to = "from:Miami,%20FL,%20United%20States%20(MIA-Miami%20Intl.)"; //leg2 $to2 = ",to:FLL"; //leg2.1 $dateto = ",departure:11/07/2014TANYT"; //leg 2.3 $children = "children:0"; $adults = ",adults:1"; $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"; var_dump($url_formatted); } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <h1>ENTER</h1> <input type="text" name="dest"> <input type="button" name="submit"> </form> <?php } ?>

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.70.0150.00318.18
8.3.60.0070.01018.32
8.3.50.0120.01121.88
8.3.40.0120.00318.76
8.3.30.0120.00319.04
8.3.20.0140.00320.33
8.3.10.0090.00023.39
8.3.00.0040.00419.26
8.2.180.0130.00316.49
8.2.170.0210.00022.96
8.2.160.0080.00620.39
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00022.22
8.2.110.0110.00022.08
8.2.100.0060.00617.91
8.2.90.0080.00017.50
8.2.80.0030.00518.82
8.2.70.0000.00917.50
8.2.60.0000.00817.50
8.2.50.0030.00517.93
8.2.40.0000.00819.35
8.2.30.0040.00420.89
8.2.20.0030.00617.63
8.2.10.0040.00418.15
8.2.00.0050.00517.69
8.1.280.0060.01325.92
8.1.270.0070.01123.92
8.1.260.0120.00626.35
8.1.250.0070.00028.09
8.1.240.0070.00319.57
8.1.230.0070.00420.88
8.1.220.0040.00718.53
8.1.210.0100.00018.77
8.1.200.0030.00517.35
8.1.190.0050.00517.00
8.1.180.0080.00018.10
8.1.170.0000.00917.62
8.1.160.0040.00418.85
8.1.150.0000.00718.90
8.1.140.0000.00817.41
8.1.130.0060.00317.66
8.1.120.0020.00517.40
8.1.110.0040.00417.42
8.1.100.0030.00417.30
8.1.90.0000.00717.40
8.1.80.0070.00017.32
8.1.70.0000.00717.36
8.1.60.0040.00417.56
8.1.50.0040.00417.50
8.1.40.0070.00017.44
8.1.30.0000.00917.52
8.1.20.0040.00417.61
8.1.10.0050.00317.57
8.1.00.0060.00317.56
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0000.00718.33
8.0.270.0040.00417.25
8.0.260.0040.00417.19
8.0.250.0000.00716.84
8.0.240.0000.00816.93
8.0.230.0070.00016.75
8.0.220.0000.00816.75
8.0.210.0040.00416.84
8.0.200.0000.00716.95
8.0.190.0050.00316.91
8.0.180.0030.00516.77
8.0.170.0000.00816.73
8.0.160.0030.00316.92
8.0.150.0080.00016.73
8.0.140.0070.00016.81
8.0.130.0030.00313.35
8.0.120.0000.00716.79
8.0.110.0000.00716.79
8.0.100.0040.00416.80
8.0.90.0050.00316.89
8.0.80.0150.00016.82
8.0.70.0050.00216.86
8.0.60.0070.00016.87
8.0.50.0000.00816.86
8.0.30.0130.00717.02
8.0.20.0120.00817.40
8.0.10.0000.00716.86
8.0.00.0090.00816.77
7.4.330.0050.00015.00
7.4.320.0070.00016.48
7.4.300.0030.00316.59
7.4.290.0040.00416.45
7.4.280.0060.00316.36
7.4.270.0070.00016.58
7.4.260.0000.00716.38
7.4.250.0050.00216.53
7.4.240.0030.00316.46
7.4.230.0030.00316.36
7.4.220.0090.00916.51
7.4.210.0030.01016.52
7.4.200.0000.00716.44
7.4.160.0100.00716.35
7.4.150.0070.01117.40
7.4.140.0110.01317.86
7.4.130.0130.00616.52
7.4.120.0090.00916.46
7.4.110.0040.01816.44
7.4.100.0110.00516.48
7.4.90.0100.00716.52
7.4.80.0060.01219.39
7.4.70.0160.00316.35
7.4.60.0070.01016.50
7.4.50.0040.00416.51
7.4.40.0070.01016.68
7.4.30.0100.00616.36
7.4.00.0030.01014.79
7.3.330.0050.00013.06
7.3.320.0000.00613.15
7.3.310.0030.00316.35
7.3.300.0000.00716.16
7.3.290.0060.01316.26
7.3.280.0070.01116.31
7.3.270.0100.01017.40
7.3.260.0110.01416.48
7.3.240.0090.00916.36
7.3.230.0030.01416.41
7.3.210.0100.00616.36
7.3.200.0090.01219.39
7.3.190.0130.00316.60
7.3.180.0050.01016.57
7.3.170.0160.00016.45
7.3.160.0060.01016.35
7.2.330.0070.01116.73
7.2.320.0070.01016.60
7.2.310.0100.01116.77
7.2.300.0040.01316.60
7.2.290.0170.00616.33
7.1.70.0000.01017.04
7.1.60.0140.01119.32
7.1.50.0030.01716.86
7.1.00.0030.09322.33
7.0.200.0030.00716.61
7.0.140.0070.07021.95
7.0.60.0130.08020.07
7.0.50.0030.04717.92
7.0.40.0130.08020.40
7.0.30.0230.06020.13
7.0.20.0300.07320.32
7.0.10.0230.07320.17
7.0.00.0100.06320.21
5.6.280.0000.07720.83
5.6.210.0130.07020.52
5.6.200.0030.09018.21
5.6.190.0030.09320.56
5.6.180.0030.04320.60
5.6.170.0200.03720.71
5.6.160.0100.05320.50
5.6.150.0130.07318.04
5.6.140.0100.03718.18
5.6.130.0030.04018.07
5.6.120.0070.03721.04
5.6.110.0070.08321.15
5.6.100.0170.07021.14
5.6.90.0030.08720.99
5.6.80.0030.04320.39
5.6.70.0270.03720.54
5.5.350.0000.03320.34
5.5.340.0130.07317.96
5.5.330.0100.05020.20
5.5.320.0100.06720.32
5.5.310.0300.03320.29
5.5.300.0230.06317.91
5.5.290.0070.08017.92
5.5.280.0100.08320.78
5.5.270.0070.06320.83
5.5.260.0100.08320.88
5.5.250.0070.03720.79
5.5.240.0030.04020.16
5.4.450.0870.05719.47
5.4.440.0870.05319.58
5.4.430.0200.05019.09
5.4.420.0630.00019.68
5.4.410.0670.00019.19
5.4.400.0600.00018.85
5.4.390.0600.00019.13
5.4.380.0670.00019.05
5.4.370.0630.00019.15
5.4.360.0600.00019.06
5.4.350.0630.00018.95
5.4.340.0040.03511.98
5.4.320.0060.03512.46
5.4.310.0050.03812.46
5.4.300.0070.03912.46
5.4.290.0070.03712.46
5.4.280.0070.04212.36
5.4.270.0040.03812.36
5.4.260.0050.03712.36
5.4.250.0030.03912.36
5.4.240.0080.04012.36
5.4.230.0060.03612.36
5.4.220.0070.03412.35
5.4.210.0100.03112.35
5.4.200.0090.04012.36
5.4.190.0040.03712.34
5.4.180.0050.03512.35
5.4.170.0050.03612.36
5.4.160.0050.03612.36
5.4.150.0030.03712.35
5.4.140.0060.03512.04
5.4.130.0060.03312.02
5.4.120.0060.03311.98
5.4.110.0070.03811.98
5.4.100.0040.03711.98
5.4.90.0060.03711.98
5.4.80.0060.03611.98
5.4.70.0060.04311.97
5.4.60.0090.03911.98
5.4.50.0080.05011.98
5.4.40.0080.03311.96
5.4.30.0060.03511.96
5.4.20.0040.03611.96
5.4.10.0070.03811.96
5.4.00.0050.03611.45
5.3.290.0050.04012.80
5.3.280.0020.03912.71
5.3.270.0040.03912.72
5.3.260.0090.04412.72
5.3.250.0030.03912.72
5.3.240.0050.04312.72
5.3.230.0070.03512.70
5.3.220.0020.04012.68
5.3.210.0040.03912.68
5.3.200.0050.03612.68
5.3.190.0040.03812.68
5.3.180.0030.03812.67
5.3.170.0090.03212.67
5.3.160.0060.03512.68
5.3.150.0050.03612.67
5.3.140.0040.03912.66
5.3.130.0070.04612.66
5.3.120.0060.04212.66
5.3.110.0050.03812.66
5.3.100.0070.03412.12
5.3.90.0060.03512.09
5.3.80.0070.03312.07
5.3.70.0070.03812.07
5.3.60.0060.03512.07
5.3.50.0040.04312.00
5.3.40.0070.03312.00
5.3.30.0060.03311.96
5.3.20.0110.03311.75
5.3.10.0050.03811.70
5.3.00.0080.03811.70
5.2.170.0040.0359.20
5.2.160.0060.0339.20
5.2.150.0060.0359.20
5.2.140.0060.0299.20
5.2.130.0070.0309.16
5.2.120.0080.0299.16
5.2.110.0050.0339.16
5.2.100.0070.0279.16
5.2.90.0080.0279.16
5.2.80.0050.0289.15
5.2.70.0050.0289.15
5.2.60.0040.0299.11
5.2.50.0040.0309.07
5.2.40.0020.0439.05
5.2.30.0070.0309.03
5.2.20.0060.0369.01
5.2.10.0070.0278.94
5.2.00.0050.0288.80
5.1.60.0050.0228.09
5.1.50.0030.0258.08
5.1.40.0020.0288.06
5.1.30.0020.0278.41
5.1.20.0050.0258.43
5.1.10.0030.0268.16
5.1.00.0040.0258.16
5.0.50.0040.0206.64
5.0.40.0040.0196.50
5.0.30.0050.0296.31
5.0.20.0010.0216.28
5.0.10.0010.0226.27
5.0.00.0030.0316.26
4.4.90.0050.0134.78
4.4.80.0020.0154.75
4.4.70.0020.0154.75
4.4.60.0010.0174.76
4.4.50.0040.0144.77
4.4.40.0040.0244.71
4.4.30.0000.0184.76
4.4.20.0060.0124.85
4.4.10.0040.0214.84
4.4.00.0010.0274.75
4.3.110.0040.0214.67
4.3.100.0030.0144.66
4.3.90.0000.0174.63
4.3.80.0050.0294.58
4.3.70.0020.0144.63
4.3.60.0040.0204.62
4.3.50.0040.0204.63
4.3.40.0010.0254.54
4.3.30.0010.0183.31
4.3.20.0010.0193.28
4.3.10.0020.0153.24
4.3.00.0000.0237.43

preferences:
52.36 ms | 401 KiB | 5 Q