3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ' if($_POST["first"]) { <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> } else if($_POST["second"]) { <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 if($_POST["third"]) { <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.60.0140.00417.98
8.3.50.0100.00718.07
8.3.40.0080.00818.77
8.3.30.0080.00518.80
8.3.20.0040.00421.93
8.3.10.0070.00022.05
8.3.00.0070.00022.46
8.2.180.0070.01016.48
8.2.170.0120.00622.96
8.2.160.0100.00720.62
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00419.23
8.2.110.0090.00022.20
8.2.100.0100.00317.59
8.2.90.0040.00419.09
8.2.80.0080.00019.54
8.2.70.0070.00717.63
8.2.60.0000.00718.04
8.2.50.0040.00418.07
8.2.40.0030.00618.22
8.2.30.0040.00417.81
8.2.20.0000.00717.39
8.2.10.0080.00019.32
8.2.00.0000.00717.62
8.1.270.0070.00023.79
8.1.260.0070.00026.35
8.1.250.0100.01028.09
8.1.240.0060.00323.79
8.1.230.0060.00619.05
8.1.220.0040.00417.74
8.1.210.0070.00018.77
8.1.200.0030.00617.23
8.1.190.0070.00017.40
8.1.180.0030.00518.10
8.1.170.0030.00618.52
8.1.160.0000.00821.94
8.1.150.0030.00518.50
8.1.140.0070.00017.21
8.1.130.0030.00317.79
8.1.120.0050.00317.26
8.1.110.0070.00017.36
8.1.100.0080.00017.22
8.1.90.0070.00317.18
8.1.80.0040.00417.20
8.1.70.0070.00017.30
8.1.60.0040.00417.33
8.1.50.0040.00417.45
8.1.40.0040.00417.25
8.1.30.0040.00417.37
8.1.20.0000.00817.41
8.1.10.0080.00017.45
8.1.00.0030.00617.36
8.0.300.0070.00018.77
8.0.290.0050.00317.05
8.0.280.0040.00418.37
8.0.270.0000.00717.05
8.0.260.0000.00716.79
8.0.250.0040.00416.71
8.0.240.0070.00316.85
8.0.230.0000.00616.81
8.0.220.0030.00316.65
8.0.210.0000.00616.64
8.0.200.0060.00016.89
8.0.190.0040.00316.79
8.0.180.0040.00416.77
8.0.170.0000.00816.84
8.0.160.0000.00716.64
8.0.150.0030.00316.75
8.0.140.0040.00416.70
8.0.130.0070.00013.21
8.0.120.0040.00416.67
8.0.110.0000.00916.73
8.0.100.0020.00516.79
8.0.90.0030.00516.77
8.0.80.0070.00716.71
8.0.70.0070.00016.66
8.0.60.0040.00416.70
8.0.50.0040.00416.64
8.0.30.0080.01017.09
8.0.20.0100.00717.40
8.0.10.0000.00816.82
8.0.00.0100.00716.64
7.4.330.0050.00015.00
7.4.320.0060.00016.48
7.4.300.0030.00316.36
7.4.290.0000.00616.47
7.4.280.0000.00716.25
7.4.270.0000.00916.39
7.4.260.0040.00716.31
7.4.250.0000.00716.25
7.4.240.0070.00016.44
7.4.230.0000.00616.57
7.4.220.0080.00816.42
7.4.210.0080.00716.38
7.4.200.0070.00016.55
7.4.190.0070.00016.41
7.4.160.0120.00316.29
7.4.150.0130.00317.40
7.4.140.0090.00817.86
7.4.130.0150.00316.25
7.4.120.0090.00916.27
7.4.110.0060.01116.47
7.4.100.0100.01316.30
7.4.90.0090.00916.23
7.4.80.0110.01119.39
7.4.70.0060.01216.30
7.4.60.0040.01416.34
7.4.50.0040.00016.44
7.4.40.0090.00722.77
7.4.30.0160.00716.49
7.4.00.0090.00614.73
7.3.330.0050.00012.98
7.3.320.0050.00012.90
7.3.310.0030.00315.95
7.3.300.0040.00416.14
7.3.290.0060.01216.11
7.3.280.0080.00916.10
7.3.270.0100.00717.40
7.3.260.0150.00916.43
7.3.250.0110.00616.34
7.3.240.0100.00616.24
7.3.230.0120.00416.54
7.3.210.0100.00716.07
7.3.200.0150.00619.39
7.3.190.0080.00816.31
7.3.180.0190.00316.45
7.3.170.0030.01316.33
7.3.160.0090.00616.40
7.3.120.0080.00814.57
7.2.330.0090.00916.62
7.2.320.0090.01116.57
7.2.310.0170.00016.17
7.2.300.0100.00616.59
7.2.290.0080.00816.35
7.2.60.0030.00616.91
7.2.00.0000.01219.28
7.1.200.0060.00615.63
7.1.100.0030.01018.06
7.1.70.0000.01216.93
7.1.60.0100.01319.82
7.1.50.0000.01616.81
7.1.00.0070.06722.37
7.0.200.0080.00016.75
7.0.140.0070.07022.01
7.0.60.0130.06320.05
7.0.50.0130.06717.84
7.0.40.0070.05320.30
7.0.30.0230.03320.04
7.0.20.0370.07320.32
7.0.10.0070.08320.17
7.0.00.0030.07320.16
5.6.280.0000.07720.91
5.6.210.0170.07320.74
5.6.200.0030.08318.22
5.6.190.0100.05020.57
5.6.180.3530.04320.66
5.6.170.0400.04020.45
5.6.160.0070.05020.37
5.6.150.0030.06018.12
5.6.140.0030.06018.11
5.6.130.0070.08318.18
5.6.120.0100.03720.98
5.6.110.0130.08021.04
5.6.100.0070.04721.13
5.6.90.0130.08020.99
5.6.80.0030.07020.43
5.6.70.2770.04320.39
5.5.350.0100.07020.36
5.5.340.0070.04017.98
5.5.330.0000.04320.33
5.5.320.3270.04320.24
5.5.310.0230.08320.50
5.5.300.0200.06017.97
5.5.290.0070.07317.92
5.5.280.0030.04320.87
5.5.270.0200.07020.86
5.5.260.0130.08020.93
5.5.250.0070.03720.61
5.5.240.0270.07320.03
5.4.450.0270.04719.48
5.4.440.0330.05019.57
5.4.430.0270.05019.24
5.4.420.0470.03019.40
5.4.410.0070.05718.70
5.4.400.0170.04718.74
5.4.390.0070.05318.46
5.4.380.0200.05318.72
5.4.370.0130.05318.62
5.4.360.0130.05718.46
5.4.350.0230.05018.49
5.4.340.0070.06318.77
5.4.320.0070.03512.46
5.4.310.0040.04112.45
5.4.300.0060.03712.45
5.4.290.0050.03912.45
5.4.280.0080.03712.35
5.4.270.0040.03712.32
5.4.260.0040.03812.32
5.4.250.0050.03812.32
5.4.240.0050.03712.32
5.4.230.0060.03812.31
5.4.220.0050.03712.31
5.4.210.0030.03712.31
5.4.200.0040.03912.31
5.4.190.0080.03312.30
5.4.180.0040.03812.30
5.4.170.0100.03112.32
5.4.160.0050.03612.31
5.4.150.0080.03312.31
5.4.140.0060.03611.99
5.4.130.0080.03311.98
5.4.120.0050.03611.94
5.4.110.0070.03311.93
5.4.100.0030.03811.93
5.4.90.0060.03711.93
5.4.80.0110.04411.93
5.4.70.0070.03311.93
5.4.60.0060.03411.93
5.4.50.0060.03711.92
5.4.40.0080.03911.91
5.4.30.0050.03711.91
5.4.20.0050.03611.91
5.4.10.0030.03911.91
5.4.00.0050.03711.40
5.3.290.0090.03612.80
5.3.280.0060.03812.71
5.3.270.0040.04012.72
5.3.260.0070.03712.72
5.3.250.0040.03912.72
5.3.240.0040.03812.72
5.3.230.0080.04012.71
5.3.220.0060.03712.68
5.3.210.0030.04212.68
5.3.200.0060.03812.68
5.3.190.0050.04012.68
5.3.180.0060.04012.68
5.3.170.0080.03612.67
5.3.160.0070.03712.67
5.3.150.0060.03812.67
5.3.140.0040.03912.66
5.3.130.0030.04212.66
5.3.120.0070.03712.66
5.3.110.0050.04012.66
5.3.100.0110.03412.12
5.3.90.0040.04112.09
5.3.80.0060.03812.07
5.3.70.0060.04212.07
5.3.60.0050.03812.06
5.3.50.0090.04012.00
5.3.40.0040.03812.00
5.3.30.0060.03411.94
5.3.20.0070.03411.70
5.3.10.0040.03711.66
5.3.00.0070.03611.64

preferences:
57.04 ms | 400 KiB | 5 Q