3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <title>Tests linguistiques</title> </head> <body> <br> Testeur de nom <br><br> <form action="" method="post"> Proposez un nom : <input type="text" name="nom" /> <input type="submit" value="OK"> </form> <?php echo file_get_contents("https://www.google.fr"); function requete ($requete) { $doc = new DOMDocument(); $doc->loadHTMLFile("https://www.google.fr/search?q=%22" . $requete . "%22"); $nombreResultats = $doc->getElementById('resultStats')->nodeValue; $page = file_get_contents("https://www.google.fr/search?q=%22" . $requete . "%22"); if (stripos($page, "Aucun") == false) { echo "https://www.google.fr/search?q=%22" . $requete . "%22" . " : " . $nombreResultats . "<br>"; } $n = 0; while ($n <= strlen($nombreResultats)) { if ($nombreResultats[$n] == "0" || $nombreResultats[$n] == "1" || $nombreResultats[$n] == "2" || $nombreResultats[$n] == "3" || $nombreResultats[$n] == "4" || $nombreResultats[$n] == "5" || $nombreResultats[$n] == "6" || $nombreResultats[$n] == "7" || $nombreResultats[$n] == "8" || $nombreResultats[$n] == "9") { $nombreResultats2 = $nombreResultats2 . $nombreResultats[$n]; } $n = $n + 1; } if (stripos($page, "Aucun") != false) { $nombreResultats2 = "0"; echo "https://www.google.fr/search?q=%22" . $requete . "%22" . " : " . "Aucun résultat <br>"; } return intval ($nombreResultats2); } if ($_POST["nom"]) { $nom = $_POST["nom"]; $totalConcret = requete("un%20" . $nom); $testConcret = requete("je%20vois%20un%20" . $nom) + requete("je%20sens%20un%20" . $nom) + requete("je%20touche%20un%20" . $nom) + requete("je%20goute%20un%20" . $nom) + requete("j'entends%20un%20" . $nom); echo $totalConcret . "<br>"; echo $testConcret . "<br>"; if ($testConcret >= $totalConcret/500) { echo "Ceci est un nom concret !"; } else { echo "Ceci est un nom abstrait !"; } } ?> </body> </html>

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.0160.00316.75
8.3.60.0120.00316.48
8.3.50.0070.01321.22
8.3.40.0100.00718.97
8.3.30.0080.00818.75
8.3.20.0020.00520.18
8.3.10.0040.00423.56
8.3.00.0040.00418.03
8.2.180.0100.00518.54
8.2.170.0040.01122.96
8.2.160.0000.01420.57
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00917.63
8.2.110.0120.00022.04
8.2.100.0120.00018.04
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0000.00821.13
8.2.30.0040.00420.58
8.2.20.0030.00517.65
8.2.10.0040.00418.05
8.2.00.0030.00518.04
8.1.280.0080.00825.92
8.1.270.0080.00023.96
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00322.48
8.1.230.0040.00817.64
8.1.220.0050.00317.75
8.1.210.0030.00518.77
8.1.200.0100.00017.10
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0000.00722.09
8.1.150.0040.00418.73
8.1.140.0040.00419.50
8.1.130.0080.00017.68
8.1.120.0040.00417.45
8.1.110.0030.00517.41
8.1.100.0000.00717.34
8.1.90.0040.00417.37
8.1.80.0040.00417.39
8.1.70.0000.00717.46
8.1.60.0040.00417.44
8.1.50.0000.00817.34
8.1.40.0000.00717.52
8.1.30.0000.00917.63
8.1.20.0050.00517.52
8.1.10.0050.00317.41
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00418.41
8.0.270.0030.00317.21
8.0.260.0000.00818.59
8.0.250.0040.00417.06
8.0.240.0000.00717.07
8.0.230.0040.00417.00
8.0.220.0000.00716.97
8.0.210.0000.00817.05
8.0.200.0040.00417.04
8.0.190.0000.00717.05
8.0.180.0030.00616.98
8.0.170.0000.00717.05
8.0.160.0040.00416.98
8.0.150.0040.00416.89
8.0.140.0070.00017.00
8.0.130.0060.00313.36
8.0.120.0040.00416.87
8.0.110.0040.00416.82
8.0.100.0080.00016.95
8.0.90.0070.00016.82
8.0.80.0040.01116.97
8.0.70.0050.00316.90
8.0.60.0030.00617.04
8.0.50.0050.00316.84
8.0.30.0080.01217.03
8.0.20.0110.00917.40
8.0.10.0040.00416.93
8.0.00.0070.01416.89
7.4.330.0000.00515.08
7.4.320.0030.00316.62
7.4.300.0070.00016.57
7.4.290.0030.00316.61
7.4.280.0000.01016.52
7.4.270.0000.00716.49
7.4.260.0000.00716.48
7.4.250.0070.00016.46
7.4.240.0020.00516.46
7.4.230.0040.00416.68
7.4.220.0100.01016.42
7.4.210.0110.00316.49
7.4.200.0070.00016.57
7.4.160.0000.01616.39
7.4.150.0160.00317.40
7.4.140.0110.01317.86
7.4.130.0090.00816.47
7.4.120.0090.00816.56
7.4.110.0130.01016.40
7.4.100.0160.00216.54
7.4.90.0100.00716.47
7.4.80.0110.01319.39
7.4.70.0090.00916.62
7.4.60.0130.00316.42
7.4.50.0000.00916.59
7.4.40.0140.00516.50
7.4.30.0110.01116.55
7.4.00.0070.01014.73
7.3.330.0000.00513.38
7.3.320.0060.00013.20
7.3.310.0030.00316.39
7.3.300.0030.00316.37
7.3.290.0050.01016.42
7.3.280.0130.00716.36
7.3.270.0120.00417.40
7.3.260.0110.01116.34
7.3.250.0090.00916.40
7.3.240.0060.01616.38
7.3.230.0150.00416.63
7.3.210.0060.01516.58
7.3.200.0080.00816.33
7.3.190.0090.00616.56
7.3.180.0150.00016.38
7.3.170.0060.01116.49
7.3.160.0090.00916.36
7.3.120.0030.01814.76
7.3.110.0030.01114.84
7.3.100.0100.01314.96
7.3.90.0090.00614.82
7.3.80.0100.00314.98
7.3.70.0000.00914.73
7.3.60.0100.00714.95
7.3.50.0040.01114.74
7.3.40.0090.00014.63
7.3.30.0040.00914.72
7.3.20.0030.01016.54
7.3.10.0090.00616.64
7.3.00.0050.00516.61
7.2.330.0150.00316.71
7.2.320.0140.00316.66
7.2.310.0060.02016.48
7.2.300.0090.00916.70
7.2.290.0070.01016.68
7.2.250.0080.00815.19
7.2.240.0040.01215.00
7.2.230.0090.00915.31
7.2.220.0110.00415.13
7.2.210.0040.00815.07
7.2.200.0070.00714.95
7.2.190.0040.01515.24
7.2.180.0060.00815.15
7.2.170.0050.00515.13
7.2.160.0060.00915.02
7.2.150.0060.01016.67
7.2.140.0110.00716.83
7.2.130.0080.00616.99
7.2.120.0050.00616.84
7.2.110.0080.00616.96
7.2.100.0100.00416.87
7.2.90.0070.00716.66
7.2.80.0110.00316.87
7.2.70.0080.00816.75
7.2.60.0030.01216.74
7.2.50.0070.00616.77
7.2.40.0080.00516.75
7.2.30.0060.00817.01
7.2.20.0040.01116.95
7.2.10.0040.00816.75
7.2.00.0070.00817.78
7.1.330.0090.00915.96
7.1.320.0030.00915.38
7.1.310.0040.01115.84
7.1.300.0040.01115.64
7.1.290.0030.00715.83
7.1.280.0060.00615.71
7.1.270.0120.00315.62
7.1.260.0080.00615.79
7.1.250.0030.00815.79
7.1.240.0110.00415.73
7.1.230.0060.00915.79
7.1.220.0090.00615.75
7.1.210.0030.01315.73
7.1.200.0050.00715.73
7.1.190.0060.00915.84
7.1.180.0030.01015.56
7.1.170.0000.01315.65
7.1.160.0060.01015.77
7.1.150.0030.00715.75
7.1.140.0030.01115.76
7.1.130.0060.00315.74
7.1.120.0030.01015.82
7.1.110.0040.00815.89
7.1.100.0050.00817.23
7.1.90.0000.00915.86
7.1.80.0100.00315.80
7.1.70.0030.01116.58
7.1.60.0060.00817.54
7.1.50.0030.01416.45
7.1.40.0140.00015.72
7.1.30.0030.01315.56
7.1.20.0030.01015.74
7.1.10.0060.00915.79
7.1.00.0050.04319.25
7.0.330.0060.01114.97
7.0.320.0040.00815.23
7.0.310.0070.00715.16
7.0.300.0000.01115.22
7.0.290.0070.00715.30
7.0.280.0040.00715.31
7.0.270.0030.01015.25
7.0.260.0030.01215.06
7.0.250.0030.01115.32
7.0.240.0040.01115.47
7.0.230.0000.01415.37
7.0.220.0030.01615.14
7.0.210.0080.00815.38
7.0.200.0220.00614.94
7.0.190.0030.00915.15
7.0.180.0040.01115.36
7.0.170.0040.00815.43
7.0.160.0130.00315.41
7.0.150.0070.00715.30
7.0.140.0070.00714.91
7.0.130.0030.01315.33
7.0.120.0080.00315.45
7.0.110.0060.00615.43
7.0.100.0060.00615.34
7.0.90.0000.01415.50
7.0.80.0060.00715.42
7.0.70.0060.00915.26
7.0.60.0100.03217.83
7.0.50.0050.02516.82
7.0.40.0050.04416.99
7.0.30.0150.04916.94
7.0.20.0170.03816.93
7.0.10.0170.04316.93
7.0.00.0050.04817.01
5.6.400.0110.00614.59
5.6.390.0060.00314.71
5.6.380.0100.00314.18
5.6.370.0030.00914.38
5.6.360.0090.00314.59
5.6.350.0000.01414.49
5.6.340.0000.01014.31
5.6.330.0110.00714.55
5.6.320.0040.00714.73
5.6.310.0100.01014.38
5.6.300.0070.00714.58
5.6.290.0040.01414.50
5.6.280.0050.04018.04
5.6.270.0000.00914.44
5.6.260.0090.00614.50
5.6.250.0040.00414.32
5.6.240.0030.00814.11
5.6.230.0100.00614.47
5.6.220.0100.01014.16
5.6.210.0120.04017.68
5.6.200.0050.04716.34
5.6.190.0030.05017.72
5.6.180.2050.02617.70
5.6.170.0180.04217.63
5.6.160.0080.02817.57
5.6.150.0060.02416.63
5.6.140.0040.04716.57
5.6.130.0100.02116.43
5.6.120.0060.04317.79
5.6.110.0160.02718.00
5.6.100.0080.04517.88
5.6.90.0030.04517.83
5.6.80.0040.03717.62
5.6.70.2110.01917.47
5.6.60.0090.00614.11
5.6.50.0060.01214.39
5.6.40.0040.00814.23
5.6.30.0000.01414.42
5.6.20.0040.01114.27
5.6.10.0040.00814.34
5.6.00.0060.00614.31
5.5.380.0050.00514.23
5.5.370.0040.01114.11
5.5.360.0000.00914.27
5.5.350.0120.03517.51
5.5.340.0060.02516.29
5.5.330.0130.03217.46
5.5.320.0110.02317.59
5.5.310.0180.04417.29
5.5.300.0100.03316.46
5.5.290.0080.03316.18
5.5.280.0120.04017.76
5.5.270.0110.03817.68
5.5.260.0100.04317.68
5.5.250.0090.04417.63
5.5.240.0060.03417.14
5.5.230.0000.01314.32
5.5.220.0070.01113.91
5.5.210.0040.00414.12
5.5.200.0040.00414.25
5.5.190.0030.00913.73
5.5.180.0000.00914.17
5.5.170.0030.00913.88
5.5.160.0040.01114.34
5.5.150.0000.01214.07
5.5.140.0000.01514.10
5.5.130.0040.01114.40
5.5.120.0030.00914.11
5.5.110.0060.00314.21
5.5.100.0060.00914.25
5.5.90.0030.01014.05
5.5.80.0090.00614.19
5.5.70.0090.00614.18
5.5.60.0000.01513.80
5.5.50.0070.00714.07
5.5.40.0060.00613.85
5.5.30.0030.00614.11
5.5.20.0060.00614.19
5.5.10.0070.00314.42
5.5.00.0060.00613.91
5.4.450.0140.03315.65
5.4.440.0150.03815.31
5.4.430.0150.02915.52
5.4.420.0200.02815.57
5.4.410.0130.02615.43
5.4.400.0110.02815.29
5.4.390.0120.03915.21
5.4.380.0150.03115.32
5.4.370.0170.02515.28
5.4.360.0170.03215.32
5.4.350.0050.03115.22
5.4.340.0170.03415.25
5.4.330.0030.01010.88
5.4.320.0100.03015.20
5.4.310.0170.02715.26
5.4.300.0130.02715.26
5.4.290.0070.03315.25
5.4.280.0130.02915.05
5.4.270.0130.02715.39
5.4.260.0110.02615.23
5.4.250.0100.02815.36
5.4.240.0050.03215.04
5.4.230.0280.03115.30
5.4.220.0100.03715.36
5.4.210.0050.03215.05
5.4.200.0120.03115.31
5.4.190.0100.03715.18
5.4.180.0080.03115.29
5.4.170.0150.02715.29
5.4.160.0120.03815.28
5.4.150.0130.02815.43
5.4.140.0090.03113.65
5.4.130.0120.02513.79
5.4.120.0100.02513.53
5.4.110.0120.04013.84
5.4.100.0050.03213.79
5.4.90.0230.02713.70
5.4.80.0080.02913.81
5.4.70.0160.01813.81
5.4.60.0170.03213.92
5.4.50.0080.02713.72
5.4.40.0080.02813.49
5.4.30.0130.03213.76
5.4.20.0080.02613.85
5.4.10.0090.03513.83
5.4.00.0220.02913.36

preferences:
55.66 ms | 401 KiB | 5 Q