3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<form enctype="multipart/form-data" action="ping.php" method="post"> <p>Podpis:</p><input class="imie" name="strona" type="text" maxlength="30" SIZE="30"><br> <br><br><input type="submit" class="button2" value="pinguj">'; function ping($host) { $tB = microtime(true); $fP = fSockOpen($host, 80, $errno, $errstr, 10); if (!$fP) { return "down"; } $tA = microtime(true); return round((($tA - $tB) * 1000), 0)." ms"; } if( isset($_POST['strona']) ){ for($x=1;$x<=10;$x++) { echo ping("$_POST[strona]")."<br>"; } } ?>

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.1.70.0070.00017.11
7.1.60.0030.01419.61
7.1.50.0070.01016.75
7.1.00.0070.07322.45
7.0.200.0940.00414.65
7.0.140.0100.06722.00
7.0.60.0030.04020.01
7.0.50.0130.03317.89
7.0.40.0070.07020.25
7.0.30.0570.07020.26
7.0.20.0330.06320.17
7.0.10.0330.03320.24
7.0.00.0100.07320.06
5.6.280.0100.07020.82
5.6.210.0070.04320.63
5.6.200.0100.07718.16
5.6.190.0070.08720.47
5.6.180.0230.04720.52
5.6.170.0230.06020.52
5.6.160.0070.05020.44
5.6.150.0170.05318.27
5.6.140.0100.07718.14
5.6.130.0070.08718.18
5.6.120.0070.08021.14
5.6.110.0330.06320.99
5.6.100.0030.08321.13
5.6.90.0030.09320.97
5.6.80.0100.05020.43
5.5.350.0000.08320.34
5.5.340.0070.06718.02
5.5.330.0130.07720.38
5.5.320.0200.06020.30
5.5.310.0070.04720.31
5.5.300.0100.07717.98
5.5.290.0030.06317.98
5.5.280.0070.07020.75
5.5.270.0000.05320.88
5.5.260.0070.04720.87
5.5.250.0070.05720.69
5.5.240.0030.08720.37
5.4.450.0370.04319.55
5.4.440.0270.05319.49
5.4.430.0270.04719.56
5.4.420.0530.03719.58
5.4.410.0500.04019.14
5.4.400.0430.03719.08
5.4.390.0330.04319.06
5.4.380.0370.05718.80
5.4.370.0370.06318.57
5.4.360.0300.04718.77
5.4.350.0270.05718.86
5.4.340.0430.06318.59
5.4.320.0060.04112.50
5.4.310.0070.03712.50
5.4.300.0090.03412.50
5.4.290.0060.03912.50
5.4.280.0050.04712.40
5.4.270.0060.03712.40
5.4.260.0050.03912.40
5.4.250.0040.04112.40
5.4.240.0020.03912.39
5.4.230.0040.04212.39
5.4.220.0040.03712.39
5.4.210.0050.03612.39
5.4.200.0060.03712.39
5.4.190.0050.03712.39
5.4.180.0060.03512.39
5.4.170.0070.04312.39
5.4.160.0050.03712.39
5.4.150.0080.04012.38
5.4.140.0080.04012.07
5.4.130.0080.03312.06
5.4.120.0090.03212.02
5.4.110.0040.03712.02
5.4.100.0050.03512.02
5.4.90.0060.03612.01
5.4.80.0060.03612.02
5.4.70.0060.03312.01
5.4.60.0030.03712.01
5.4.50.0070.03312.01
5.4.40.0030.03712.00
5.4.30.0080.04012.00
5.4.20.0060.03412.00
5.4.10.0060.03412.00
5.4.00.0060.03711.48
5.3.290.0050.04212.80
5.3.280.0060.04412.71
5.3.270.0070.04112.72
5.3.260.0070.04112.72
5.3.250.0060.03612.72
5.3.240.0060.03612.72
5.3.230.0050.03812.71
5.3.220.0040.04012.68
5.3.210.0070.03912.68
5.3.200.0080.03512.68
5.3.190.0060.03812.68
5.3.180.0050.03812.68
5.3.170.0050.03712.67
5.3.160.0110.03712.68
5.3.150.0050.03712.67
5.3.140.0050.03612.66
5.3.130.0070.03912.66
5.3.120.0100.03412.66
5.3.110.0080.04512.66
5.3.100.0040.03912.12
5.3.90.0040.03812.10
5.3.80.0070.03412.09
5.3.70.0060.03712.09
5.3.60.0030.03912.07
5.3.50.0070.03412.02
5.3.40.0070.03712.02
5.3.30.0040.03711.98
5.3.20.0110.03411.76
5.3.10.0060.03511.73
5.3.00.0050.03811.72
5.2.170.0060.0299.22
5.2.160.0060.0329.21
5.2.150.0030.0349.22
5.2.140.0080.0359.21
5.2.130.0040.0309.17
5.2.120.0040.0289.18
5.2.110.0040.0299.18
5.2.100.0050.0289.18
5.2.90.0050.0359.18
5.2.80.0040.0379.18
5.2.70.0060.0299.18
5.2.60.0060.0339.13
5.2.50.0040.0319.09
5.2.40.0100.0359.07
5.2.30.0070.0319.05
5.2.20.0050.0289.04
5.2.10.0050.0278.95
5.2.00.0030.0308.80
5.1.60.0030.0248.09
5.1.50.0040.0258.09
5.1.40.0050.0248.07
5.1.30.0020.0288.41
5.1.20.0030.0288.44
5.1.10.0040.0278.16
5.1.00.0030.0268.16
5.0.50.0040.0206.64
5.0.40.0070.0176.50
5.0.30.0020.0336.31
5.0.20.0050.0186.27
5.0.10.0040.0206.26
5.0.00.0020.0326.26
4.4.90.0030.0154.78
4.4.80.0020.0164.75
4.4.70.0020.0164.75
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0040.0244.71
4.4.30.0030.0164.76
4.4.20.0030.0154.84
4.4.10.0030.0164.85
4.4.00.0050.0274.75
4.3.110.0060.0144.67
4.3.100.0050.0134.66
4.3.90.0010.0164.64
4.3.80.0030.0314.59
4.3.70.0020.0154.63
4.3.60.0020.0154.63
4.3.50.0050.0194.63
4.3.40.0010.0254.54
4.3.30.0000.0173.30
4.3.20.0020.0213.28
4.3.10.0050.0173.24
4.3.00.0000.01716.72

preferences:
30.41 ms | 401 KiB | 5 Q