3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($_POST["first"]) { echo ' <h2>Enter the words by following the instructions below.</h2> <form method = "post" action = "result.php"> 1. <i>(Adjective)</i> <input type = "text" name = "num1"> <br /> 2. <i>(Noun)</i> <input type = "text" name = "num2"> <br /> 3. <i>(Noun)</i> <input type = "text" name = "num3"> <br /> 4. <i>(Verb)</i> <input type = "text" name = "num4"> <br /> 5. <i>(Verb)</i> <input type = "text" name = "num5"> <br /> 6. <i>(Adjective)</i> <input type = "text" name = "num6"> <br /> 7. <i>(Profanity)</i> <input type = "text" name = "num7"> <br /> <input type = "text" value = "submit" onclick = "result.php"> </form> '; } elseif($_POST["second"]) { echo ' <h2>Enter the words by following the instructions below.</h2> <form method = "post" action = "result.php"> 1. <i>(Verb)</i> <input type = "text" name = "num1"> <br /> 2. <i>(Verb)</i> <input type = "text" name = "num2"> <br /> 3. <i>(Adjective)</i> <input type = "text" name = "num3"> <br /> 4. <i>(Verb)</i> <input type = "text" name = "num4"> <br /> 5. <i>(Noun)</i> <input type = "text" name = "num5"> <br /> 6. <i>(Profanity)</i> <input type = "text" name = "num6"> <br /> 7. <i>(Pronoun)</i> <input type = "text" name = "num7"> <br /> <input type = "text" value = "submit" onclick = "result.php"> </form> '; } else { echo ' <h2>Enter the words by following the instructions below.</h2> <form method = "post" action = "result.php"> 1. <i>(Pronoun)</i> <input type = "text" name = "num1"> <br /> 2. <i>(Verb)</i> <input type = "text" name = "num2"> <br /> 3. <i>(Noun)</i> <input type = "text" name = "num3"> <br /> 4. <i>(Verb)</i> <input type = "text" name = "num4"> <br /> 5. <i>(Verb)</i> <input type = "text" name = "num5"> <br /> 6. <i>(Something that smells bad)</i> <input type = "text" name = "num6"> <br /> 7. <i>(Something you like)</i> <input type = "text" name = "num7"> <br /> <input type = "text" value = "submit" onclick = "result.php"> </form> '; } ?>

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.0150.00316.88
8.3.60.0100.00718.55
8.3.50.0090.00821.88
8.3.40.0030.01218.88
8.3.30.0140.00318.99
8.3.20.0050.00320.34
8.3.10.0070.00022.10
8.3.00.0040.00422.50
8.2.190.0110.00416.63
8.2.180.0120.00616.48
8.2.170.0070.01422.96
8.2.160.0110.00320.83
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0050.00226.16
8.2.120.0040.00417.63
8.2.110.0030.00622.25
8.2.100.0040.00717.84
8.2.90.0080.00019.21
8.2.80.0050.00317.97
8.2.70.0050.00517.48
8.2.60.0060.00318.03
8.2.50.0040.00418.07
8.2.40.0000.00718.16
8.2.30.0070.00017.94
8.2.20.0080.00017.71
8.2.10.0040.00419.47
8.2.00.0000.00817.63
8.1.280.0120.00625.92
8.1.270.0080.00023.88
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0140.00323.83
8.1.230.0090.00319.01
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0060.00317.39
8.1.180.0030.00518.10
8.1.170.0060.00318.65
8.1.160.0040.00422.08
8.1.150.0000.00818.64
8.1.140.0030.00517.38
8.1.130.0000.00717.79
8.1.120.0050.00217.48
8.1.110.0030.00617.31
8.1.100.0070.00017.44
8.1.90.0040.00417.38
8.1.80.0000.00717.29
8.1.70.0000.00717.36
8.1.60.0000.00817.45
8.1.50.0000.00717.43
8.1.40.0000.00817.38
8.1.30.0040.00417.45
8.1.20.0050.00317.60
8.1.10.0000.00717.54
8.1.00.0030.00617.52
8.0.300.0070.00018.77
8.0.290.0000.00716.80
8.0.280.0000.00718.39
8.0.270.0030.00517.10
8.0.260.0000.00816.75
8.0.250.0000.00716.86
8.0.240.0060.00316.86
8.0.230.0040.00317.04
8.0.220.0000.00716.89
8.0.210.0000.00716.88
8.0.200.0000.00717.02
8.0.190.0000.00716.96
8.0.180.0050.00316.89
8.0.170.0040.00416.93
8.0.160.0000.00716.95
8.0.150.0030.00316.83
8.0.140.0000.00716.85
8.0.130.0030.00313.28
8.0.120.0040.00416.86
8.0.110.0040.00416.89
8.0.100.0040.00416.84
8.0.90.0040.00416.93
8.0.80.0060.00916.95
8.0.70.0040.00416.91
8.0.60.0000.00716.86
8.0.50.0030.00516.72
8.0.30.0110.00917.19
8.0.20.0100.00817.40
8.0.10.0030.00317.03
8.0.00.0090.01016.60
7.4.330.0050.00015.00
7.4.320.0030.00316.47
7.4.300.0000.00716.45
7.4.290.0040.00416.38
7.4.280.0000.00716.52
7.4.270.0000.00716.48
7.4.260.0030.00616.52
7.4.250.0000.00716.57
7.4.240.0040.00416.40
7.4.230.0030.00316.25
7.4.220.0120.00616.52
7.4.210.0030.01416.49
7.4.200.0000.00916.64
7.4.190.0000.00716.64
7.4.160.0080.00816.35
7.4.150.0190.00317.40
7.4.140.0060.01217.86
7.4.130.0090.00916.49
7.4.120.0100.00716.61
7.4.110.0060.01116.30
7.4.100.0070.01116.48
7.4.90.0070.01116.44
7.4.80.0070.01119.39
7.4.70.0100.00716.52
7.4.60.0130.00416.55
7.4.50.0060.00016.57
7.4.40.0030.01022.77
7.4.30.0030.01316.43
7.4.00.0070.00914.99
7.3.330.0030.00313.16
7.3.320.0050.00013.00
7.3.310.0040.00416.32
7.3.300.0030.00316.26
7.3.290.0070.00716.28
7.3.280.0110.00716.23
7.3.270.0080.00817.40
7.3.260.0110.00616.38
7.3.250.0120.00816.52
7.3.240.0040.01316.37
7.3.230.0060.01016.46
7.3.210.0120.00416.45
7.3.200.0090.01219.39
7.3.190.0130.00316.66
7.3.180.0110.01116.24
7.3.170.0030.01316.45
7.3.160.0110.00616.27
7.3.120.0080.00714.85
7.3.110.0050.01214.54
7.3.100.0110.00414.94
7.3.90.0060.00814.94
7.3.80.0140.00014.77
7.3.70.0060.00914.76
7.3.60.0040.00714.77
7.3.50.0060.00614.77
7.3.40.0090.00914.91
7.3.30.0000.01314.70
7.3.20.0120.00416.79
7.3.10.0070.00816.65
7.3.00.0050.00916.60
7.2.330.0170.00016.57
7.2.320.0090.01516.68
7.2.310.0070.01016.45
7.2.300.0030.01316.50
7.2.290.0160.00016.71
7.2.250.0050.01215.12
7.2.240.0050.01115.02
7.2.230.0080.00614.81
7.2.220.0030.01215.06
7.2.210.0080.00615.07
7.2.200.0060.00814.94
7.2.190.0060.00814.83
7.2.180.0070.01214.83
7.2.170.0060.01015.04
7.2.00.0000.01319.32
7.1.330.0070.00715.57
7.1.320.0050.00715.61
7.1.310.0090.00815.69
7.1.300.0090.00215.55
7.1.290.0040.00815.69
7.1.280.0100.00715.52
7.1.270.0080.00615.53
7.1.260.0030.01315.59
7.1.200.0080.00315.80
7.1.100.0000.01117.84
7.1.70.0000.00917.17
7.1.60.0030.02019.82
7.1.50.0100.01016.78
7.1.00.0000.07022.43
7.0.200.0030.00316.72
7.0.140.0000.07721.99
7.0.60.0000.07720.09
7.0.50.0130.07017.80
7.0.40.0170.07720.13
7.0.30.0230.08320.04
7.0.20.0270.06320.04
7.0.10.0200.05020.09
7.0.00.0130.06720.18
5.6.280.0030.09021.02
5.6.210.0100.07720.74
5.6.200.0070.08018.21
5.6.190.0100.09020.28
5.6.180.0000.05320.64
5.6.170.0300.08020.48
5.6.160.0070.04320.33
5.6.150.0100.08018.21
5.6.140.0030.06318.17
5.6.130.0030.07718.18
5.6.120.0000.05721.01
5.6.110.0070.08720.95
5.6.100.0100.07720.97
5.6.90.0100.08020.95
5.6.80.0070.05720.36
5.6.70.0300.06320.37
5.5.350.0030.07020.31
5.5.340.0030.06717.98
5.5.330.0030.06020.43
5.5.320.0500.06320.21
5.5.310.0130.04320.12
5.5.300.0070.04018.01
5.5.290.0070.08317.92
5.5.280.0070.06720.88
5.5.270.0130.05320.79
5.5.260.0100.04320.89
5.5.250.0270.07020.61
5.5.240.0000.04320.25
5.4.450.0470.04019.46
5.4.440.0330.04719.24
5.4.430.0370.04019.38
5.4.420.0370.04719.45
5.4.410.0170.04718.70
5.4.400.0070.07318.62
5.4.390.0030.08018.74
5.4.380.0270.04718.68
5.4.370.0170.05018.69
5.4.360.0200.04718.67
5.4.350.0170.05318.46
5.4.340.0100.06018.56
5.4.320.0070.03612.46
5.4.310.0070.03812.45
5.4.300.0040.03912.45
5.4.290.0060.04012.45
5.4.280.0050.03612.35
5.4.270.0030.04012.32
5.4.260.0070.03712.32
5.4.250.0090.04612.32
5.4.240.0040.04012.32
5.4.230.0100.03712.31
5.4.220.0040.03912.31
5.4.210.0090.03212.31
5.4.200.0050.04212.31
5.4.190.0070.05412.30
5.4.180.0080.04912.30
5.4.170.0040.05212.32
5.4.160.0110.04212.31
5.4.150.0090.04212.30
5.4.140.0050.05211.99
5.4.130.0080.03411.98
5.4.120.0060.03511.93
5.4.110.0030.03811.94
5.4.100.0040.03711.93
5.4.90.0080.03611.93
5.4.80.0060.03811.93
5.4.70.0100.04511.93
5.4.60.0050.04811.93
5.4.50.0080.04611.93
5.4.40.0080.03511.91
5.4.30.0060.03711.92
5.4.20.0080.03711.92
5.4.10.0080.03711.92
5.4.00.0050.04011.40
5.3.290.0030.04212.80
5.3.280.0060.04212.70
5.3.270.0080.04312.72
5.3.260.0080.04012.72
5.3.250.0070.03612.71
5.3.240.0090.03512.72
5.3.230.0080.03512.70
5.3.220.0080.03612.68
5.3.210.0080.03712.68
5.3.200.0060.03712.68
5.3.190.0100.03412.67
5.3.180.0070.03612.67
5.3.170.0130.03412.67
5.3.160.0050.04412.68
5.3.150.0100.04712.67
5.3.140.0080.04812.66
5.3.130.0060.05012.65
5.3.120.0160.04412.66
5.3.110.0100.04712.66
5.3.100.0040.04412.11
5.3.90.0110.05112.08
5.3.80.0080.04712.07
5.3.70.0080.05112.07
5.3.60.0110.04812.07
5.3.50.0160.04112.00
5.3.40.0060.04412.00
5.3.30.0060.03611.94
5.3.20.0020.03911.70
5.3.10.0060.03511.66
5.3.00.0040.03911.64
5.2.170.0070.0289.14
5.2.160.0030.0309.14
5.2.150.0070.0329.14
5.2.140.0050.0309.14
5.2.130.0050.0289.10
5.2.120.0040.0299.10
5.2.110.0070.0369.11
5.2.100.0070.0279.11
5.2.90.0070.0269.11
5.2.80.0070.0279.11
5.2.70.0050.0309.10
5.2.60.0020.0329.05
5.2.50.0050.0299.03
5.2.40.0050.0289.00
5.2.30.0030.0318.98
5.2.20.0030.0308.97
5.2.10.0030.0308.90
5.2.00.0080.0318.75
5.1.60.0050.0238.03
5.1.50.0050.0258.03
5.1.40.0030.0258.02
5.1.30.0060.0248.37
5.1.20.0030.0288.39
5.1.10.0050.0278.11
5.1.00.0050.0258.11
5.0.50.0040.0196.59
5.0.40.0050.0196.44
5.0.30.0040.0366.26
5.0.20.0060.0166.25
5.0.10.0030.0216.21
5.0.00.0040.0316.20
4.4.90.0030.0214.78
4.4.80.0040.0194.75
4.4.70.0030.0154.75
4.4.60.0010.0204.76
4.4.50.0030.0154.77
4.4.40.0020.0254.71
4.4.30.0020.0164.76
4.4.20.0040.0154.85
4.4.10.0030.0154.85
4.4.00.0030.0254.76
4.3.110.0050.0154.67
4.3.100.0030.0144.66
4.3.90.0020.0154.64
4.3.80.0010.0264.58
4.3.70.0020.0164.63
4.3.60.0020.0154.63
4.3.50.0030.0164.63
4.3.40.0020.0294.54
4.3.30.0020.0213.27
4.3.20.0020.0163.25
4.3.10.0020.0163.21
4.3.00.0030.01715.09

preferences:
45.47 ms | 401 KiB | 5 Q