3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo date("H"); //echo date("i"); /* ESPERO QUE ESTE PROBLEMA ME CUENTE EL DOBLE, PORQUE MI MAQUINA CUENTA CON UN IVI BRIDGE QUE UTILIZA GENERACION POR HARDWARE, Y CASI ME VUELVO LOCO PARA DESHABILITARLA Y QUE FUNCIONARA CORRECTAMENTE */ //Evitamos que muestre los Warnings error_reporting(E_ERROR | E_PARSE); //echo $http_response_header[5]; // echo $hora." "; // echo $minuto." "; // echo date("H")." "; // echo date("i")." "; //$server = 'http://127.0.0.1/probe.php'; $server = 'http://random.contest.tuenti.net/'; //$contents = file_get_contents('http://random.contest.tuenti.net/?password=2036317783'); $contents = file_get_contents($server.'?password=2036317783&input=326b5d287a'); //var_dump($http_response_header); for ($ppid = 1; $ppid <= 100; $ppid++){ $pos = strpos($contents, "wrong!"); if ($pos !== false){ //$pos2 = strpos( //echo $http_response_header[1]; //Buscamos el header en que se encuentra 'Date' $nHeaders = count($http_response_header); for ($i = 0; $i <= $nHeaders; $i++){ if(strpos($http_response_header[$i], "Date") !== false){ //echo $i." "; break; } //echo $http_response_header[$i]." "; } //echo $i." "; $hora = substr($http_response_header[$i], 23, -10); $minuto = substr($http_response_header[$i], 26, -7); //echo $hora." ".$minuto; //echo mktime(date("H"),date("i"),0)." "; //echo mktime($hora, $minuto, 0)." "; srand(mktime($hora, $minuto, 0) * $ppid); $rand = rand(); echo $rand." "; $contents = file_get_contents($server.'?password='.$rand.'&input=326b5d287a'); //$contents = file_get_contents('http://random.contest.tuenti.net/?password='.$rand); }else{ echo "El ppid valido era ".($ppid-1)." fecha:".$hora." ".$minuto. "<br/>"; echo $contents; break; } } //echo $contents;

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)
7.4.00.0110.00715.41
7.3.120.0100.00315.12
7.3.110.0040.01414.98
7.3.100.0120.00315.22
7.3.90.0100.00615.23
7.3.80.0040.01114.99
7.3.70.0070.00715.27
7.3.60.0090.00614.91
7.3.50.0120.00314.91
7.3.40.0100.00315.16
7.3.30.0070.00715.04
7.3.20.0030.01017.03
7.3.10.0060.00616.68
7.3.00.0070.01016.96
7.2.250.0160.00615.25
7.2.240.0110.00715.21
7.2.230.0000.01415.13
7.2.220.0060.00915.05
7.2.210.0110.00315.22
7.2.200.0060.00615.32
7.2.190.0090.01215.25
7.2.180.0030.01315.14
7.2.170.0000.01615.43
7.2.160.0000.01415.39
7.2.150.0090.00916.97
7.2.140.0170.00017.21
7.2.130.0120.00617.30
7.2.120.0040.00717.20
7.2.110.0040.00716.97
7.2.100.0090.00616.87
7.2.90.0140.00317.29
7.2.80.0160.00017.03
7.2.70.0070.01017.28
7.2.60.0030.01217.25
7.2.50.0070.01017.07
7.2.40.0060.01017.34
7.2.30.0000.01817.19
7.2.20.0030.01016.99
7.2.10.0110.00717.23
7.2.00.0030.00917.23
7.1.330.0110.00715.82
7.1.320.0090.00315.84
7.1.310.0100.00316.15
7.1.300.0040.01416.20
7.1.290.0040.00715.91
7.1.280.0060.00916.16
7.1.270.0060.00916.17
7.1.260.0070.00415.89
7.1.250.0070.00715.94
7.1.240.0030.00816.19
7.1.230.0040.01116.04
7.1.220.0070.00716.09
7.1.210.0120.00316.03
7.1.200.0030.01516.09
7.1.190.0030.01316.26
7.1.180.0100.00615.97
7.1.170.0030.00916.20
7.1.160.0120.00315.84
7.1.150.0040.01116.01
7.1.140.0070.00715.93
7.1.130.0050.00615.96
7.1.120.0090.00616.14
7.1.110.0070.00315.96
7.1.100.0110.00315.97
7.1.90.0070.00716.31
7.1.80.0040.01116.14
7.1.70.0040.00916.58
7.1.60.0050.01318.01
7.1.50.0060.00816.72
7.1.40.0100.00716.14
7.1.30.0050.00516.06
7.1.20.0030.00715.98
7.1.10.0100.00316.12
7.1.00.0050.04019.37
7.0.330.0030.00715.40
7.0.320.0030.01015.71
7.0.310.0070.00315.67
7.0.300.0120.00015.75
7.0.290.0090.00315.84
7.0.280.0000.01315.47
7.0.270.0060.00315.69
7.0.260.0070.00715.47
7.0.250.0060.00615.79
7.0.240.0090.00315.58
7.0.230.0060.00515.52
7.0.220.0030.00915.82
7.0.210.0060.00615.50
7.0.200.0040.01116.35
7.0.190.0040.01115.75
7.0.180.0140.00015.55
7.0.170.0110.00015.71
7.0.160.0040.00815.68
7.0.150.0000.00815.48
7.0.140.0030.04019.18
7.0.130.0030.00615.64
7.0.120.0030.00915.63
7.0.110.0130.00015.84
7.0.100.0030.01015.40
7.0.90.0060.00615.39
7.0.80.0040.00415.83
7.0.70.0030.00615.75
7.0.60.0060.02118.07
7.0.50.0080.02317.01
7.0.40.0050.04517.17
7.0.30.0280.04317.01
7.0.20.0190.02016.98
7.0.10.0050.04616.96
7.0.00.0100.04317.12
5.6.400.0070.00314.78
5.6.390.0070.00414.58
5.6.380.0060.00314.24
5.6.370.0100.00014.57
5.6.360.0040.01114.21
5.6.350.0060.01014.40
5.6.340.0070.01114.92
5.6.330.0000.01414.58
5.6.320.0040.00714.19
5.6.310.0030.00814.78
5.6.300.0040.00814.66
5.6.290.0060.00614.64
5.6.280.0030.04017.74
5.6.270.0070.01114.51
5.6.260.0050.00514.25
5.6.250.0030.01314.40
5.6.240.0040.01114.66
5.6.230.0040.01214.47
5.6.220.0100.00014.48
5.6.210.0050.04317.76
5.6.200.0060.02716.56
5.6.190.0080.04117.91
5.6.180.0200.03017.82
5.6.170.0260.03617.68
5.6.160.0040.03717.81
5.6.150.0030.03616.53
5.6.140.0030.03416.48
5.6.130.0130.04016.49
5.6.120.0060.02817.99
5.6.110.0190.03518.02
5.6.100.0050.02318.04
5.6.90.0100.04317.89
5.6.80.0070.01817.76
5.6.70.2320.02417.80
5.6.60.0060.00314.68
5.6.50.0090.00614.43
5.6.40.0000.01614.51
5.6.30.0090.00314.53
5.6.20.0070.01114.34
5.6.10.0100.00714.73
5.6.00.0110.00314.51
5.5.380.0070.00714.70
5.5.370.0100.00714.63
5.5.360.0030.00914.38
5.5.350.0120.02817.49
5.5.340.0080.04016.57
5.5.330.0030.02517.79
5.5.320.0220.02217.58
5.5.310.0170.04017.66
5.5.300.0030.03216.21
5.5.290.0050.04516.35
5.5.280.0070.04517.99
5.5.270.0130.04417.83
5.5.260.0100.04517.89
5.5.250.0050.04517.59
5.5.240.0030.04517.65
5.5.230.0030.01214.46
5.5.220.0090.00614.45
5.5.210.0090.00614.62
5.5.200.0040.01114.14
5.5.190.0000.01814.24
5.5.180.0030.01014.66
5.5.170.0000.01614.61
5.5.160.0100.00314.49
5.5.150.0070.01014.56
5.5.140.0060.01014.43
5.5.130.0040.01114.64
5.5.120.0030.01314.35
5.5.110.0030.01114.68
5.5.100.0070.01014.40
5.5.90.0090.00614.00
5.5.80.0000.00914.26
5.5.70.0120.00013.97
5.5.60.0090.00314.21
5.5.50.0060.00614.39
5.5.40.0100.00713.93
5.5.30.0070.01013.95
5.5.20.0000.00914.13
5.5.10.0030.00714.12
5.5.00.0000.01514.28
5.4.450.0470.03915.35
5.4.440.0250.03915.60
5.4.430.0100.02615.63
5.4.420.0010.03915.57
5.4.410.0150.02215.31
5.4.400.0070.03115.22
5.4.390.0080.02914.97
5.4.380.0080.03515.07
5.4.370.0120.02815.06
5.4.360.0130.02515.10
5.4.350.0100.02915.09
5.4.340.0090.03014.97
5.4.330.0060.00611.20
5.4.320.0090.02112.02
5.4.310.0040.02311.94
5.4.300.0060.02412.00
5.4.290.0040.02411.97
5.4.280.0090.02511.89
5.4.270.0040.03311.98
5.4.260.0090.03411.91
5.4.250.0080.02812.03
5.4.240.0090.02212.06
5.4.230.0070.02711.93
5.4.220.0080.02211.88
5.4.210.0110.02211.88
5.4.200.0080.02911.88
5.4.190.0090.02411.91
5.4.180.0060.03211.90
5.4.170.0080.02411.89
5.4.160.0070.02211.91
5.4.150.0090.02512.00
5.4.140.0040.03111.76
5.4.130.0090.02411.72
5.4.120.0040.02411.70
5.4.110.0090.02311.82
5.4.100.0070.02311.69
5.4.90.0050.02811.70
5.4.80.0060.02611.70
5.4.70.0060.02111.69
5.4.60.0050.02311.70
5.4.50.0070.02311.75
5.4.40.0060.02811.69
5.4.30.0080.02111.71
5.4.20.0050.02311.79
5.4.10.0030.02411.76
5.4.00.0060.02111.43
5.3.290.0050.02212.05
5.3.280.0050.02712.01
5.3.270.0070.02312.02
5.3.260.0040.02512.02
5.3.250.0080.02112.02
5.3.240.0070.02212.02
5.3.230.0050.02312.01
5.3.220.0020.02512.00
5.3.210.0080.02512.00
5.3.200.0060.03012.00
5.3.190.0070.02412.00
5.3.180.0060.02511.99
5.3.170.0090.02411.99
5.3.160.0060.02512.00
5.3.150.0100.02311.99
5.3.140.0060.02112.00
5.3.130.0060.02411.99
5.3.120.0070.02311.99
5.3.110.0040.02611.99
5.3.100.0030.02411.73
5.3.90.0090.02511.72
5.3.80.0070.02711.71
5.3.70.0060.02911.71
5.3.60.0070.02811.71
5.3.50.0070.02911.68
5.3.40.0090.02811.68
5.3.30.0040.02911.66
5.3.20.0040.02911.56
5.3.10.0070.02811.54
5.3.00.0050.02311.53
5.2.170.0050.0329.36
5.2.160.0060.0299.36
5.2.150.0040.0339.36
5.2.140.0090.0289.36
5.2.130.0070.0309.31
5.2.120.0050.0339.32
5.2.110.0070.0399.32
5.2.100.0110.0379.32
5.2.90.0040.0379.32
5.2.80.0070.0329.32
5.2.70.0080.0379.32
5.2.60.0100.0419.27
5.2.50.0090.0419.23
5.2.40.0090.0379.21
5.2.30.0070.0399.20
5.2.20.0100.0369.18
5.2.10.0060.0429.09
5.2.00.0120.0368.95
5.1.60.0060.0348.23
5.1.50.0060.0338.23
5.1.40.0060.0378.21
5.1.30.0090.0358.56
5.1.20.0070.0418.58
5.1.10.0060.0408.31
5.1.00.0090.0398.15
5.0.50.0050.0216.79
5.0.40.0070.0286.65
5.0.30.0060.0436.46
5.0.20.0030.0316.41
5.0.10.0110.0266.39
5.0.00.0080.0426.38
4.4.90.0060.0244.79
4.4.80.0040.0264.77
4.4.70.0020.0274.77
4.4.60.0060.0214.78
4.4.50.0070.0234.79
4.4.40.0050.0324.78
4.4.30.0060.0204.77
4.4.20.0080.0194.84
4.4.10.0030.0194.85
4.4.00.0040.0284.81
4.3.110.0050.0154.71
4.3.100.0040.0164.71
4.3.90.0050.0144.67
4.3.80.0040.0254.66
4.3.70.0040.0154.66
4.3.60.0050.0144.67
4.3.50.0020.0184.66
4.3.40.0030.0264.64
4.3.30.0010.0243.44
4.3.20.0040.0213.42
4.3.10.0030.0173.38
4.3.00.0030.0277.18

preferences:
34.42 ms | 401 KiB | 5 Q