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> '; } else if($_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 if($_POST["third"]) { 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.0030.01718.55
8.3.60.0150.00418.38
8.3.50.0060.01022.00
8.3.40.0040.01118.59
8.3.30.0120.00319.04
8.3.20.0030.00620.30
8.3.10.0000.00722.09
8.3.00.0040.00422.40
8.2.190.0060.01516.58
8.2.180.0100.00616.38
8.2.170.0090.00622.96
8.2.160.0100.00720.77
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.48
8.2.110.0070.00322.02
8.2.100.0120.00317.78
8.2.90.0050.00319.27
8.2.80.0030.00619.64
8.2.70.0080.00317.38
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00818.09
8.2.30.0060.00318.13
8.2.20.0070.00017.71
8.2.10.0000.00819.53
8.2.00.0040.00417.77
8.1.280.0070.00725.92
8.1.270.0070.00023.54
8.1.260.0050.00326.35
8.1.250.0190.00028.09
8.1.240.0060.00323.91
8.1.230.0060.00619.10
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00517.41
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0040.00422.02
8.1.150.0070.00018.57
8.1.140.0000.00717.46
8.1.130.0030.00519.15
8.1.120.0000.00817.29
8.1.110.0000.00717.35
8.1.100.0000.00717.23
8.1.90.0000.00917.25
8.1.80.0050.00317.36
8.1.70.0000.00717.30
8.1.60.0030.00617.56
8.1.50.0040.00417.47
8.1.40.0000.00717.45
8.1.30.0040.00417.57
8.1.20.0030.00517.46
8.1.10.0040.00417.36
8.1.00.0090.00017.46
8.0.300.0050.00318.77
8.0.290.0080.00016.93
8.0.280.0070.00018.35
8.0.270.0050.00217.14
8.0.260.0030.00316.82
8.0.250.0070.00016.88
8.0.240.0030.00617.01
8.0.230.0000.00716.93
8.0.220.0000.00716.93
8.0.210.0030.00316.93
8.0.200.0000.00616.97
8.0.190.0030.00316.83
8.0.180.0000.00716.83
8.0.170.0060.00316.91
8.0.160.0050.00216.96
8.0.150.0040.00316.80
8.0.140.0050.00216.76
8.0.130.0000.00613.38
8.0.120.0000.00716.93
8.0.110.0030.00616.84
8.0.100.0040.00416.71
8.0.90.0000.00716.78
8.0.80.0070.00716.94
8.0.70.0040.00416.84
8.0.60.0000.00716.74
8.0.50.0000.00716.84
8.0.30.0080.01416.91
8.0.20.0090.01017.40
8.0.10.0000.00717.06
8.0.00.0070.01016.73
7.4.330.0050.00015.02
7.4.320.0030.00316.43
7.4.300.0030.00316.46
7.4.290.0030.00316.47
7.4.280.0070.00016.54
7.4.270.0060.00516.56
7.4.260.0050.00516.48
7.4.250.0000.00716.50
7.4.240.0070.00016.46
7.4.230.0000.00716.44
7.4.220.0070.01016.41
7.4.210.0070.00916.49
7.4.200.0000.00716.55
7.4.190.0030.00316.48
7.4.160.0150.00016.46
7.4.150.0060.01217.40
7.4.140.0060.01217.86
7.4.130.0120.00616.45
7.4.120.0140.00316.43
7.4.110.0040.01516.61
7.4.100.0060.01116.30
7.4.90.0090.01216.65
7.4.80.0080.01119.39
7.4.70.0030.01216.25
7.4.60.0060.01216.23
7.4.50.0050.00016.36
7.4.40.0070.01122.77
7.4.30.0150.00016.64
7.4.00.0070.01015.01
7.3.330.0050.00013.03
7.3.320.0030.00313.25
7.3.310.0000.00716.28
7.3.300.0000.00716.26
7.3.290.0030.01616.30
7.3.280.0050.01116.27
7.3.270.0070.01017.40
7.3.260.0140.01116.36
7.3.250.0030.01416.39
7.3.240.0130.00316.30
7.3.230.0070.01116.40
7.3.210.0030.01316.50
7.3.200.0100.00719.39
7.3.190.0060.00916.34
7.3.180.0080.00916.46
7.3.170.0080.00816.47
7.3.160.0080.00816.24
7.3.120.0050.01314.85
7.3.110.0030.01614.72
7.3.100.0110.00414.52
7.3.90.0060.00614.55
7.3.80.0040.00814.96
7.3.70.0060.00314.64
7.3.60.0100.00314.71
7.3.50.0060.00614.91
7.3.40.0070.00714.66
7.3.30.0050.00914.87
7.3.20.0070.01016.75
7.3.10.0070.00716.45
7.3.00.0020.00916.58
7.2.330.0070.01016.33
7.2.320.0070.01016.25
7.2.310.0060.01116.68
7.2.300.0090.01016.50
7.2.290.0130.00416.33
7.2.250.0070.01314.94
7.2.240.0120.00914.83
7.2.230.0120.00614.87
7.2.220.0040.00715.06
7.2.210.0000.01314.97
7.2.200.0000.01315.02
7.2.190.0030.01314.78
7.2.180.0000.01214.96
7.2.170.0030.01014.64
7.2.130.0120.00316.77
7.2.120.0040.01116.93
7.2.110.0080.00416.69
7.2.100.0130.00716.90
7.2.90.0070.01016.86
7.2.80.0090.00616.56
7.2.70.0000.01016.66
7.2.60.0070.00516.73
7.2.50.0000.01316.91
7.2.40.0090.00316.85
7.2.30.0000.01416.76
7.2.20.0070.00316.71
7.2.10.0040.01216.55
7.2.00.0020.01217.89
7.1.330.0100.00315.79
7.1.320.0080.00415.74
7.1.310.0040.01115.95
7.1.300.0070.00315.83
7.1.290.0080.00415.85
7.1.280.0030.00715.56
7.1.270.0120.00315.90
7.1.260.0090.00415.80
7.1.250.0060.00315.45
7.1.200.0070.00715.67
7.1.100.0080.00618.12
7.1.70.0070.00317.08
7.1.60.0060.01919.82
7.1.50.0060.00616.58
7.1.00.0030.07322.36
7.0.200.0080.00316.66
7.0.140.0030.07322.18
7.0.60.0170.07019.93
7.0.50.0000.07717.84
7.0.40.0100.03720.40
7.0.30.0430.04020.16
7.0.20.0400.07320.11
7.0.10.0130.08320.13
7.0.00.0100.08320.30
5.6.280.0130.06020.92
5.6.210.0070.06720.75
5.6.200.0070.08018.20
5.6.190.0100.08320.64
5.6.180.3300.03020.45
5.6.170.0300.08020.48
5.6.160.0070.04020.50
5.6.150.0100.06718.16
5.6.140.0070.08018.21
5.6.130.0000.05018.08
5.6.120.0070.06021.09
5.6.110.0100.06021.08
5.6.100.0100.07321.02
5.6.90.0070.08020.99
5.6.80.0230.06020.37
5.6.70.3530.03720.35
5.5.350.0070.07320.32
5.5.340.0070.04717.89
5.5.330.0100.07320.36
5.5.320.3500.04020.18
5.5.310.0370.07720.28
5.5.300.0030.05717.99
5.5.290.0030.07717.91
5.5.280.0070.07720.86
5.5.270.0130.07320.72
5.5.260.0070.08320.79
5.5.250.0130.05720.65
5.5.240.0200.04320.25
5.4.450.0170.04019.54
5.4.440.0230.04019.58
5.4.430.0370.04319.45
5.4.420.0570.04019.52
5.4.410.0100.05319.02
5.4.400.0100.06718.66
5.4.390.0100.05018.74
5.4.380.0230.05018.70
5.4.370.0370.04718.48
5.4.360.0430.06018.63
5.4.350.0130.06318.52
5.4.340.0070.06018.65
5.4.320.0050.03612.45
5.4.310.0050.03912.45
5.4.300.0050.04012.45
5.4.290.0070.03612.45
5.4.280.0050.03712.35
5.4.270.0050.04112.32
5.4.260.0050.04312.32
5.4.250.0070.03912.31
5.4.240.0060.03812.32
5.4.230.0060.04412.31
5.4.220.0070.04312.31
5.4.210.0040.03712.31
5.4.200.0030.04012.31
5.4.190.0040.03712.30
5.4.180.0040.03912.30
5.4.170.0020.04512.32
5.4.160.0080.03412.31
5.4.150.0090.03512.30
5.4.140.0050.03811.99
5.4.130.0090.03611.98
5.4.120.0050.04311.94
5.4.110.0050.03911.93
5.4.100.0030.03711.93
5.4.90.0070.04311.93
5.4.80.0060.03711.93
5.4.70.0040.03611.93
5.4.60.0060.04011.93
5.4.50.0040.03611.93
5.4.40.0050.03511.91
5.4.30.0070.03911.91
5.4.20.0030.03711.91
5.4.10.0040.03511.91
5.4.00.0030.03911.40
5.3.290.0050.03912.80
5.3.280.0060.03612.71
5.3.270.0080.03812.73
5.3.260.0090.05012.72
5.3.250.0070.03612.72
5.3.240.0080.04412.72
5.3.230.0060.04112.71
5.3.220.0080.03512.68
5.3.210.0080.03612.68
5.3.200.0090.03212.68
5.3.190.0090.03512.68
5.3.180.0050.03812.68
5.3.170.0030.03912.66
5.3.160.0080.03312.68
5.3.150.0080.03412.67
5.3.140.0070.03412.66
5.3.130.0060.03812.66
5.3.120.0060.04212.65
5.3.110.0100.03712.66
5.3.100.0070.04112.11
5.3.90.0100.03312.09
5.3.80.0070.03512.08
5.3.70.0050.03612.08
5.3.60.0050.03612.06
5.3.50.0060.03512.00
5.3.40.0040.03812.00
5.3.30.0050.03511.94
5.3.20.0070.03311.70
5.3.10.0090.03611.66
5.3.00.0060.04411.64
5.2.170.0080.0289.15
5.2.160.0060.0349.15
5.2.150.0040.0329.14
5.2.140.0050.0309.14
5.2.130.0050.0299.11
5.2.120.0060.0279.11
5.2.110.0050.0299.11
5.2.100.0050.0299.11
5.2.90.0080.0259.11
5.2.80.0020.0329.11
5.2.70.0050.0299.10
5.2.60.0020.0359.05
5.2.50.0080.0329.02
5.2.40.0060.0309.00
5.2.30.0090.0308.98
5.2.20.0060.0278.97
5.2.10.0010.0318.89
5.2.00.0050.0278.75
5.1.60.0060.0218.03
5.1.50.0040.0288.03
5.1.40.0070.0218.02
5.1.30.0040.0268.37
5.1.20.0070.0258.39
5.1.10.0020.0288.11
5.1.00.0030.0268.11
5.0.50.0030.0226.59
5.0.40.0040.0256.44
5.0.30.0050.0356.26
5.0.20.0040.0196.24
5.0.10.0030.0256.21
5.0.00.0040.0306.20
4.4.90.0080.0174.78
4.4.80.0030.0184.75
4.4.70.0040.0144.76
4.4.60.0010.0174.75
4.4.50.0050.0134.77
4.4.40.0030.0254.71
4.4.30.0020.0184.76
4.4.20.0030.0154.85
4.4.10.0030.0164.85
4.4.00.0020.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0184.67
4.3.90.0030.0214.64
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0010.0154.63
4.3.50.0020.0164.63
4.3.40.0010.0264.53
4.3.30.0020.0163.27
4.3.20.0030.0153.25
4.3.10.0020.0163.22
4.3.00.0300.01715.09

preferences:
53.86 ms | 401 KiB | 5 Q