3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (false !== stripos($url, "signin/selectchallenge")) { $msg = "WARNING: got a verify its you recovery email challenge!\n"; fprintf(STDERR, "%s", $msg); echo $msg; $domd = @DOMDocument::loadHTML($html); $xp = new DOMXPath($domd); $challengeForm = $xp->query('//form[contains(@action,"/signin/challenge/")]'); if ($challengeForm->length <= 0) { throw new \RuntimeException('in "verify yoour recovery email challenge", could not find challenge POST html form!'); } if ($challengeForm->length > 1) { // google changed something, xpath needs an update.. throw new \RuntimeException("in verify yoour recovery email challenge, could not determine which POST html form was the correct 1!"); } $challengeForm = $challengeForm->item(0); $base_url = $hc->getinfo(CURLINFO_EFFECTIVE_URL); $relative_url = $challengeForm->getAttribute("action"); $url = merge_relative_absolute_urls($base_url, $relative_url); //hhb_var_dump($base_url,$relative_url,$url) & die(); $inputs = getDOMDocumentFormInputs($domd, true, false); if (count($inputs) !== 2) { throw new \LogicException("GOOGLE CHANGED SOMETHING, SUPPOSED TO BE 2x FORM INPUTS HERE (and i only care about the first 1...)"); } var_export($inputs); //hhb_var_dump($inputs) & die(); $inputs[0]; $hc->setopt_array(array( CURLOPT_URL=>$url, CURLOPT_POST=>1, CURLOPT_POSTFIELDS=>$inputs, ))->exec(); hhb_var_dump ( $hc->getStdErr (), $hc->getStdOut (), $inputs ) & die (); die("FIXME RECOVERY EMAIL CHALLENGE"); }

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.0100.01018.30
8.3.50.0040.01116.27
8.3.40.0100.00618.68
8.3.30.0110.00718.59
8.3.20.0070.00020.68
8.3.10.0000.00921.89
8.3.00.0040.00422.46
8.2.180.0170.00316.63
8.2.170.0120.00622.96
8.2.160.0100.00320.89
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.39
8.2.110.0100.00022.28
8.2.100.0110.00017.78
8.2.90.0080.00017.95
8.2.80.0040.00417.97
8.2.70.0040.00417.90
8.2.60.0030.00617.90
8.2.50.0000.00818.10
8.2.40.0040.00419.35
8.2.30.0040.00419.10
8.2.20.0020.00517.93
8.2.10.0070.00019.18
8.2.00.0000.00718.05
8.1.280.0180.00025.92
8.1.270.0060.00322.06
8.1.260.0070.00726.35
8.1.250.0100.00028.09
8.1.240.0030.00722.01
8.1.230.0040.00720.85
8.1.220.0080.00017.74
8.1.210.0090.00018.84
8.1.200.0000.00817.23
8.1.190.0070.00317.10
8.1.180.0030.00618.10
8.1.170.0040.00418.57
8.1.160.0000.00718.85
8.1.150.0040.00418.86
8.1.140.0050.00219.00
8.1.130.0000.00717.39
8.1.120.0030.00517.28
8.1.110.0000.00717.31
8.1.100.0000.00717.38
8.1.90.0040.00417.36
8.1.80.0000.00817.25
8.1.70.0060.00317.40
8.1.60.0040.00717.39
8.1.50.0040.00417.45
8.1.40.0030.00517.45
8.1.30.0040.00417.45
8.1.20.0000.00817.46
8.1.10.0040.00417.43
8.1.00.0060.00317.42
8.0.300.0070.00219.86
8.0.290.0070.00016.88
8.0.280.0000.00718.41
8.0.270.0070.00017.20
8.0.260.0050.00216.71
8.0.250.0030.00616.95
8.0.240.0000.00816.98
8.0.230.0070.00316.93
8.0.220.0020.00516.90
8.0.210.0000.00716.85
8.0.200.0050.00316.95
8.0.190.0050.00516.84
8.0.180.0000.00816.80
8.0.170.0000.00916.95
8.0.160.0040.00416.90
8.0.150.0000.00816.73
8.0.140.0040.00416.82
8.0.130.0000.00513.31
8.0.120.0040.00416.86
8.0.110.0020.00516.78
8.0.100.0050.00216.93
8.0.90.0050.00316.78
8.0.80.0120.00316.91
8.0.70.0050.00216.94
8.0.60.0050.00216.70
8.0.50.0040.00416.74
8.0.30.0100.00917.06
8.0.20.0120.00816.79
8.0.10.0060.00317.05
8.0.00.0110.00816.63
7.4.330.0050.00016.76
7.4.320.0000.00716.46
7.4.300.0000.00716.47
7.4.290.0040.00416.40
7.4.280.0080.00016.39
7.4.270.0030.00316.57
7.4.260.0050.00216.38
7.4.250.0040.00416.41
7.4.240.0000.00916.45
7.4.230.0000.00816.34
7.4.220.0040.00416.48
7.4.210.0050.00916.50
7.4.200.0000.00816.29
7.4.160.0090.00816.50
7.4.140.0100.01017.86
7.4.130.0050.01316.40
7.4.120.0150.00916.64
7.4.110.0080.00816.38
7.4.100.0060.01216.43
7.4.90.0150.00316.36
7.4.80.0030.01419.39
7.4.70.0030.01416.56
7.4.60.0090.00616.32
7.4.50.0090.00916.64
7.4.40.0060.01416.38
7.4.00.0080.01014.96
7.3.330.0000.00613.10
7.3.320.0030.00313.04
7.3.310.0070.00016.38
7.3.300.0030.00316.27
7.3.290.0030.01016.33
7.3.280.0010.01516.31
7.3.260.0130.00516.41
7.3.240.0090.01116.33
7.3.230.0180.00416.39
7.3.210.0060.01816.25
7.3.200.0100.00616.37
7.3.190.0030.01316.43
7.3.180.0090.00816.45
7.3.170.0060.00916.29
7.3.160.0110.01216.20
7.3.120.0070.01015.01
7.3.110.0090.00914.82
7.3.100.0060.00914.61
7.3.90.0060.00914.94
7.3.80.0100.00614.93
7.3.70.0030.00614.93
7.3.60.0030.00714.89
7.3.50.0100.00314.88
7.3.40.0070.01014.80
7.3.30.0050.00814.65
7.3.20.0910.01115.78
7.3.10.0160.00315.59
7.3.00.1110.00715.64
7.2.330.0120.00916.68
7.2.320.0100.00716.52
7.2.310.0120.00616.46
7.2.300.0090.00916.58
7.2.290.0080.01316.65
7.2.250.0070.01115.09
7.2.240.0070.01414.74
7.2.230.0100.01015.00
7.2.220.0110.00414.86
7.2.210.0130.00615.07
7.2.200.0040.00714.87
7.2.190.0060.00914.78
7.2.180.0030.01015.08
7.2.170.0070.00714.91
7.2.160.0080.02014.80
7.2.150.1740.00314.93
7.2.140.1960.00314.80
7.2.130.0150.00615.09
7.2.120.0630.00714.85
7.2.110.1450.00315.19
7.2.100.1730.00614.89
7.2.90.2200.01314.93
7.2.80.2390.00714.83
7.2.70.1860.01715.13
7.2.60.1860.00314.84
7.2.50.1760.01314.81
7.2.40.1860.00715.20
7.2.30.1690.00715.15
7.2.20.1590.00714.88
7.2.10.1940.00315.05
7.2.00.1830.00315.09
7.1.330.0090.00615.68
7.1.320.0030.01315.82
7.1.310.0070.01015.64
7.1.300.0110.00315.74
7.1.290.0040.00715.54
7.1.280.0000.01215.71
7.1.270.0100.00914.72
7.1.260.0050.00614.60
7.1.250.1800.00313.83

preferences:
80.9 ms | 400 KiB | 5 Q