3v4l.org

run code in 300+ PHP versions simultaneously
<?php $adep = $_GET['adep']; $ades = $_GET['ades']; $postdata = http_build_query( array( 'adep' => $adep, 'ades' => $ades ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://www.cgna.gov.br/sistemas/harpia/rotas.php', false, $context); preg_match_all("'<tr><td>".$adep." </td><td>".$ades." </td>(.*?)<\/tr>'si", $result, $match1); preg_match_all("'<tr><td class=\'alt\'>".$adep." </td><td class=\'alt\'>".$ades." </td>(.*?)<\/tr>'si", $result, $match2); foreach($match1[1] as $rota) { preg_match("'<td>(.*?)<\/td>'si", $rota, $match_rota1); echo $match_rota1[1]; } foreach($match2[1] as $rota) { preg_match("'<td class=\'alt\'>(.*?)<\/td>'si", $rota, $match_rota2); echo $match_rota2[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.60.0180.00319.05
8.3.50.0100.01021.33
8.3.40.0040.01119.55
8.3.30.0040.01120.67
8.3.20.0040.00420.50
8.3.10.0040.00422.32
8.3.00.0040.00422.81
8.2.180.0130.01017.38
8.2.170.0040.01122.96
8.2.160.0090.00922.51
8.2.150.0090.00024.18
8.2.140.0070.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.23
8.2.110.0060.00319.36
8.2.100.0090.00318.28
8.2.90.0000.00719.29
8.2.80.0000.00819.50
8.2.70.0030.00518.00
8.2.60.0040.00418.05
8.2.50.0040.00418.13
8.2.40.0030.00620.26
8.2.30.0100.00019.64
8.2.20.0040.00418.01
8.2.10.0080.00018.07
8.2.00.0040.00418.09
8.1.280.0090.00625.92
8.1.270.0080.00024.14
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0150.00324.09
8.1.230.0090.00321.22
8.1.220.0000.00818.77
8.1.210.0120.00019.03
8.1.200.0000.01317.72
8.1.190.0000.00817.66
8.1.180.0090.00018.10
8.1.170.0090.00019.09
8.1.160.0040.00419.12
8.1.150.0080.00019.05
8.1.140.0050.00317.88
8.1.130.0000.00718.06
8.1.120.0000.00717.77
8.1.110.0040.00417.90
8.1.100.0040.00417.76
8.1.90.0000.00817.68
8.1.80.0030.00517.77
8.1.70.0030.00317.66
8.1.60.0040.00417.89
8.1.50.0040.00417.82
8.1.40.0040.00417.92
8.1.30.0030.00517.91
8.1.20.0080.00018.03
8.1.10.0070.00017.82
8.1.00.0000.00817.82
8.0.300.0040.00420.02
8.0.290.0050.00317.43
8.0.280.0050.00218.76
8.0.270.0040.00417.61
8.0.260.0030.00317.31
8.0.250.0000.00717.38
8.0.240.0060.00617.37
8.0.230.0030.00517.43
8.0.220.0000.00717.38
8.0.210.0000.00817.32
8.0.200.0040.00417.34
8.0.190.0050.00317.36
8.0.180.0040.00417.38
8.0.170.0040.00417.34
8.0.160.0020.00517.27
8.0.150.0050.00317.32
8.0.140.0040.00417.34
8.0.130.0060.00013.79
8.0.120.0000.00817.34
8.0.110.0000.00817.39
8.0.100.0000.00717.34
8.0.90.0000.00817.54
8.0.80.0030.01317.41
8.0.70.0000.00817.40
8.0.60.0080.00017.46
8.0.50.0040.00417.43
8.0.30.0080.01317.65
8.0.20.0070.01317.42
8.0.10.0000.00817.37
8.0.00.0110.01317.26
7.4.330.0000.00715.00
7.4.320.0030.00316.80
7.4.300.0030.00316.97
7.4.290.0030.00516.98
7.4.280.0000.00716.88
7.4.270.0000.00816.97
7.4.260.0030.00313.68
7.4.250.0050.00317.07
7.4.240.0060.00216.99
7.4.230.0050.00216.88
7.4.220.0180.00017.02
7.4.210.0090.00817.05
7.4.200.0040.00417.01
7.4.190.0040.00317.03
7.4.160.0070.01017.09
7.4.150.0130.00617.40
7.4.140.0120.01317.86
7.4.130.0070.01317.05
7.4.120.0150.00717.11
7.4.110.0160.00617.05
7.4.100.0070.01117.14
7.4.90.0040.01517.02
7.4.80.0130.00719.39
7.4.70.0040.01417.04
7.4.60.0180.00616.84
7.4.50.0080.00017.00
7.4.40.0090.00922.77
7.4.30.0180.00017.03
7.4.00.0000.01315.33
7.3.330.0060.00013.62
7.3.320.0000.00513.85
7.3.310.0000.00816.99
7.3.300.0000.00816.89
7.3.290.0070.01016.80
7.3.280.0050.01416.89
7.3.270.0100.00917.40
7.3.260.0090.00917.01
7.3.250.0090.01416.83
7.3.240.0060.01217.05
7.3.230.0180.00617.01
7.3.210.0110.00716.89
7.3.200.0080.01119.39
7.3.190.0090.00916.80
7.3.180.0100.00716.91
7.3.170.0120.00316.89
7.3.160.0040.01416.85
7.3.120.0120.00615.10
7.3.110.0090.00915.43
7.3.100.0060.00615.29
7.3.90.0040.00815.20
7.3.80.0080.00814.96
7.3.70.0000.01415.32
7.3.60.0000.01315.24
7.3.50.0030.01415.21
7.3.40.0000.01215.25
7.3.30.0030.00915.35
7.3.20.0040.01217.16
7.3.10.0060.00617.11
7.3.00.0040.01216.81
7.2.330.0090.01017.05
7.2.320.0180.00817.11
7.2.310.0100.01517.24
7.2.300.0090.00917.03
7.2.290.0150.00317.00
7.2.240.0110.00415.43
7.2.230.0000.01015.54
7.2.220.0090.00615.27
7.2.210.0000.01315.23
7.2.200.0030.00715.66
7.2.190.0040.01115.70
7.2.180.0030.01415.43
7.2.170.0030.01015.51
7.2.160.0040.01115.63
7.2.150.0030.01017.39
7.2.140.0030.01317.43
7.2.130.0040.01217.34
7.2.120.0100.01017.42
7.2.110.0120.00617.23
7.2.100.0040.01217.41
7.2.90.0090.00917.41
7.2.80.0030.01217.43
7.2.70.0090.00617.46
7.2.60.0030.01217.43
7.2.50.0000.01717.52
7.2.40.0090.00917.45
7.2.30.0040.01117.48
7.2.20.0070.00717.52
7.2.10.0100.00717.25
7.2.00.0080.01018.53
7.1.330.0030.00616.24
7.1.320.0030.01016.19
7.1.310.0030.01016.41
7.1.300.0070.00316.24
7.1.290.0090.00616.20
7.1.280.0030.01016.18
7.1.270.0130.00316.19
7.1.260.0040.01116.28
7.1.250.0030.01015.87
7.1.200.0090.00616.40
7.1.70.0030.01217.42
7.1.60.0090.00617.69
7.1.50.0180.00717.68
7.1.00.0130.06022.65
7.0.200.0000.00817.07
7.0.140.0100.07022.35
7.0.70.1030.03020.19
7.0.60.0030.06720.48
7.0.50.0100.07718.07
7.0.40.0070.05020.52
7.0.30.0270.07320.53
7.0.20.0470.06720.54
7.0.10.0130.06020.49
7.0.00.0100.08720.56
5.6.280.0070.07321.20
5.6.210.0130.07721.09
5.6.200.0100.05318.73
5.6.190.0100.08321.04
5.6.180.0170.06320.97
5.6.170.0500.05320.82
5.6.160.0170.08020.78
5.6.150.0030.04018.52
5.6.140.0030.05018.40
5.6.130.0030.08318.49
5.6.120.0100.05721.35
5.6.110.0070.08721.42
5.6.100.0070.09721.32
5.6.90.0000.04321.50
5.6.80.0100.07320.89
5.6.70.0070.08020.72
5.5.350.0100.05720.96
5.5.340.0070.05318.30
5.5.330.0100.05020.77
5.5.320.0100.03320.84
5.5.310.0270.04320.62
5.5.300.0100.07318.36
5.5.290.0070.08718.32
5.5.280.0070.07721.10
5.5.270.0000.04721.20
5.5.260.0000.04321.08
5.5.250.0070.04021.09
5.5.240.0100.07320.65
5.4.450.2600.04019.93
5.4.440.2270.03319.93
5.4.430.2830.04020.01
5.4.420.2700.04020.06
5.4.410.2970.03719.81
5.4.400.2830.04019.57
5.4.390.2830.04319.85
5.4.380.2830.03719.70
5.4.370.2870.04319.61
5.4.360.2930.03319.65
5.4.350.2900.03319.61
5.4.340.2530.04319.61
5.4.320.2470.03719.68
5.4.310.2870.04019.66
5.4.300.2830.04019.61
5.4.290.3000.04319.74
5.4.280.2070.03319.68
5.4.270.0170.05319.71
5.4.260.0070.04719.74
5.4.250.0070.06319.64
5.4.240.2170.02719.64
5.4.230.2830.03319.60
5.4.220.2970.04719.65
5.4.210.2770.04019.57
5.4.200.2770.04019.61
5.4.190.2770.04019.68
5.4.180.2870.03719.64
5.4.170.2730.03319.70
5.4.160.2730.04019.66
5.4.150.2770.03019.59
5.4.140.2630.04017.08
5.4.130.2800.03316.97
5.4.120.2800.03317.11
5.4.110.2930.03317.11
5.4.100.2700.04017.05
5.4.90.2630.03316.96
5.4.80.2930.03717.16
5.4.70.2570.03716.98
5.4.60.2670.03017.01
5.4.50.2900.03017.07
5.4.40.2700.03716.94
5.4.30.2930.04016.90
5.4.20.2900.04017.09
5.4.10.2330.03716.98
5.4.00.2970.03316.43
5.3.290.2630.03715.08
5.3.280.2370.03714.80
5.3.270.2870.03314.93
5.3.260.2570.04014.91
5.3.250.2800.04315.09
5.3.240.2900.03714.96
5.3.230.2670.03715.04
5.3.220.2670.04714.88
5.3.210.2870.04014.92
5.3.200.2600.04314.98
5.3.190.2730.04314.78
5.3.180.2630.03315.02
5.3.170.2870.03714.93
5.3.160.2900.03714.87
5.3.150.2800.03714.86
5.3.140.2670.04314.91
5.3.130.2870.04015.01
5.3.120.2830.03715.00
5.3.110.2570.03715.00
5.3.100.2870.04014.49
5.3.90.2930.03714.34
5.3.80.2700.04014.52
5.3.70.2800.03014.47
5.3.60.2730.03314.44
5.3.50.3130.03014.28
5.3.40.2670.03314.40
5.3.30.2700.03314.21
5.3.20.2700.03014.04
5.3.10.3200.04714.02
5.3.00.2870.03313.80
5.2.170.2200.03311.39
5.2.160.2270.02311.44
5.2.150.2270.02711.54
5.2.140.2230.02711.35
5.2.130.2200.03011.30
5.2.120.2430.03011.38
5.2.110.2230.03011.43
5.2.100.2370.03011.59
5.2.90.2430.03311.27
5.2.80.2430.02711.45
5.2.70.2200.02011.52
5.2.60.2230.03011.50
5.2.50.2400.03311.37
5.2.40.2000.03011.34
5.2.30.1900.03011.48
5.2.20.2030.02711.20
5.2.10.1700.03011.30
5.2.00.2030.03011.05
5.1.60.1830.02710.52
5.1.50.1730.02310.45
5.1.40.1670.03010.44
5.1.30.1730.03010.73
5.1.20.2000.02310.60
5.1.10.2230.02310.41
5.1.00.2330.02010.38
5.0.50.1330.0278.78
5.0.40.1170.0208.63
5.0.30.1300.0378.78
5.0.20.1200.0238.60
5.0.10.1130.0208.38
5.0.00.0930.0308.48
4.4.90.1100.0176.68
4.4.80.1070.0206.69
4.4.70.1000.0176.70
4.4.60.0900.0136.71
4.4.50.0930.0076.71
4.4.40.1000.0306.71
4.4.30.1100.0176.71
4.4.20.0870.0176.71
4.4.10.0970.0206.71
4.4.00.0870.0236.71
4.3.110.0900.0136.72
4.3.100.0870.0136.73
4.3.90.0900.0176.73
4.3.80.1130.0236.73
4.3.70.0830.0176.73
4.3.60.1130.0206.74
4.3.50.0900.0136.75
4.3.40.1070.0236.76
4.3.30.0400.0176.76
4.3.20.0500.0176.76
4.3.10.0530.0276.77
4.3.00.0470.0176.77

preferences:
45.24 ms | 401 KiB | 5 Q