3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> </head> <title> </title> <body> <?php if (!$_POST['submit']) { ?> <form action="<?= $_SERVER['SELF_PHP'];?>" method="post" > Enter any Number:<input name="number" size="2"> <input type="submit" name="submit" value="OK!"> <?php } else { $number=$_POST['number']; if ($number >0) { echo 'You entered a positive number'; } elseif ($number < 0) { echo 'You entered a negative number'; } else { echo 'You entered zero'; } } ?> </body> </html>

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.0100.01018.68
8.3.50.0110.00821.09
8.3.40.0070.00718.79
8.3.30.0030.01019.04
8.3.20.0080.00020.35
8.3.10.0090.00023.36
8.3.00.0040.00419.38
8.2.180.0110.00416.50
8.2.170.0160.00622.96
8.2.160.0070.00720.58
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.98
8.2.110.0080.00019.30
8.2.100.0040.00817.63
8.2.90.0050.00319.12
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0080.00017.93
8.2.50.0000.00918.07
8.2.40.0050.00319.95
8.2.30.0050.00218.05
8.2.20.0060.00317.72
8.2.10.0040.00418.10
8.2.00.0000.00817.64
8.1.280.0140.00725.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.85
8.1.230.0000.01117.82
8.1.220.0040.00417.77
8.1.210.0050.00318.77
8.1.200.0040.00717.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.66
8.1.160.0040.00422.05
8.1.150.0070.00018.82
8.1.140.0040.00417.32
8.1.130.0070.00017.77
8.1.120.0020.00517.38
8.1.110.0040.00417.28
8.1.100.0000.00717.30
8.1.90.0000.00717.37
8.1.80.0030.00317.31
8.1.70.0000.00717.23
8.1.60.0060.00317.50
8.1.50.0040.00417.47
8.1.40.0000.00717.34
8.1.30.0100.00017.59
8.1.20.0040.00417.45
8.1.10.0040.00417.48
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00518.39
8.0.270.0070.00017.13
8.0.260.0030.00317.20
8.0.250.0060.00016.91
8.0.240.0030.00316.88
8.0.230.0080.00016.83
8.0.220.0000.00716.88
8.0.210.0070.00016.87
8.0.200.0040.00416.91
8.0.190.0030.00416.91
8.0.180.0000.00816.86
8.0.170.0000.00816.93
8.0.160.0000.00716.80
8.0.150.0000.00716.78
8.0.140.0040.00416.81
8.0.130.0050.00013.33
8.0.120.0040.00416.88
8.0.110.0040.00416.92
8.0.100.0050.00316.93
8.0.90.0070.00016.92
8.0.80.0060.00916.92
8.0.70.0000.00716.99
8.0.60.0070.00016.84
8.0.50.0000.00716.74
8.0.30.0140.00517.14
8.0.20.0150.00517.40
8.0.10.0050.00316.84
8.0.00.0120.00516.63
7.4.330.0000.00515.02
7.4.320.0000.00716.52
7.4.300.0030.00316.42
7.4.290.0060.00016.43
7.4.280.0070.00016.43
7.4.270.0000.00716.43
7.4.260.0030.00316.44
7.4.250.0000.00716.41
7.4.240.0020.00516.41
7.4.230.0030.00316.45
7.4.220.0100.00716.61
7.4.210.0040.01116.49
7.4.200.0040.00416.54
7.4.160.0110.01116.52
7.4.150.0110.00717.40
7.4.140.0140.00517.86
7.4.130.0110.00616.58
7.4.120.0090.00916.52
7.4.110.0100.00616.56
7.4.100.0070.01016.57
7.4.90.0070.01016.45
7.4.80.0040.01319.39
7.4.70.0030.01616.38
7.4.60.0130.00316.46
7.4.50.0000.00816.18
7.4.40.0100.00716.73
7.4.30.0070.01016.34
7.4.00.0110.00514.99
7.3.330.0040.00413.02
7.3.320.0030.00313.00
7.3.310.0070.00016.27
7.3.300.0030.00316.16
7.3.290.0060.01016.25
7.3.280.0070.00916.31
7.3.270.0060.01217.40
7.3.260.0110.00616.21
7.3.250.0110.00616.30
7.3.240.0170.00016.36
7.3.230.0140.00516.39
7.3.210.0000.01616.44
7.3.200.0120.01219.39
7.3.190.0130.00316.51
7.3.180.0070.01016.41
7.3.170.0100.00616.61
7.3.160.0090.00616.32
7.3.120.0130.00314.93
7.3.110.0070.01014.87
7.3.100.0130.00314.85
7.3.90.0040.01515.02
7.3.80.0060.00914.86
7.3.70.0130.00314.88
7.3.60.0070.00414.95
7.3.50.0080.00814.93
7.3.40.0030.01414.48
7.3.30.0070.00314.55
7.3.20.0090.00616.70
7.3.10.0070.00716.79
7.3.00.0030.00616.67
7.2.330.0170.00016.69
7.2.320.0100.00716.25
7.2.310.0080.00816.32
7.2.300.0110.00716.42
7.2.290.0070.01316.68
7.2.250.0100.01014.82
7.2.240.0130.00714.86
7.2.230.0060.01014.92
7.2.220.0030.00614.74
7.2.210.0070.01014.84
7.2.200.0100.01015.11
7.2.190.0100.00015.04
7.2.180.0070.00715.12
7.2.170.0000.01115.08
7.2.60.0060.00616.88
7.1.330.0060.00915.60
7.1.320.0030.00615.67
7.1.310.0040.01215.53
7.1.300.0070.00715.37
7.1.290.0080.00615.51
7.1.280.0040.01115.65
7.1.270.0060.00915.45
7.1.260.0070.00715.53
7.1.200.0090.00315.75
7.1.70.0000.00817.09
7.1.60.0070.01719.11
7.1.50.0030.02016.83
7.1.00.0070.07022.30
7.0.200.0020.00516.39
7.0.140.0070.07022.07
7.0.60.0130.04019.83
7.0.50.0100.08017.85
7.0.40.0100.06320.27
7.0.30.0300.05020.18
7.0.20.0300.06320.04
7.0.10.0070.07020.17
7.0.00.0100.07020.16
5.6.280.0000.07020.77
5.6.210.0130.06720.76
5.6.200.0100.08318.22
5.6.190.0070.04320.62
5.6.180.0270.07320.43
5.6.170.0330.05320.50
5.6.160.0100.08020.32
5.6.150.0100.07718.21
5.6.140.0070.04318.21
5.6.130.0030.08718.14
5.6.120.0030.08720.98
5.6.110.0100.08720.97
5.6.100.0200.07021.10
5.6.90.0030.04320.96
5.6.80.0130.07020.53
5.6.70.4500.03720.38
5.5.350.0070.06320.49
5.5.340.0130.07317.98
5.5.330.0030.05320.21
5.5.320.0330.04320.31
5.5.310.0200.05020.24
5.5.300.0070.04017.89
5.5.290.0100.07717.88
5.5.280.0070.08720.82
5.5.270.0070.04020.83
5.5.260.0130.05720.83
5.5.250.0070.03720.61
5.5.240.0470.07020.06
5.4.450.0700.06719.59
5.4.440.0770.06319.63
5.4.430.0400.06019.47
5.4.420.0870.05019.45
5.4.410.0730.04719.28
5.4.400.0770.05019.09
5.4.390.0730.04719.28
5.4.380.0930.06019.14
5.4.370.0870.05019.10
5.4.360.0730.05719.28
5.4.350.0600.04019.07
5.4.340.0050.03611.97
5.4.320.0040.03912.45
5.4.310.0050.03812.45
5.4.300.0070.03612.45
5.4.290.0040.04612.45
5.4.280.0100.03312.34
5.4.270.0060.05012.34
5.4.260.0070.04012.35
5.4.250.0080.03912.34
5.4.240.0060.03912.34
5.4.230.0110.03412.34
5.4.220.0070.04112.34
5.4.210.0040.04012.34
5.4.200.0070.03712.34
5.4.190.0110.03512.34
5.4.180.0080.04312.33
5.4.170.0080.04112.35
5.4.160.0060.04012.34
5.4.150.0120.03912.34
5.4.140.0040.03912.02
5.4.130.0080.03512.01
5.4.120.0080.03411.97
5.4.110.0060.03711.96
5.4.100.0030.03911.96
5.4.90.0040.03911.96
5.4.80.0050.03711.96
5.4.70.0030.03811.96
5.4.60.0060.03411.96
5.4.50.0050.03611.96
5.4.40.0060.03511.95
5.4.30.0070.03411.95
5.4.20.0070.03911.95
5.4.10.0040.04211.95
5.4.00.0050.04011.43
5.3.290.0040.04112.80
5.3.280.0040.04112.71
5.3.270.0070.04612.73
5.3.260.0100.03812.72
5.3.250.0060.03812.72
5.3.240.0090.03512.72
5.3.230.0070.03812.71
5.3.220.0040.03912.68
5.3.210.0080.03612.68
5.3.200.0090.03312.68
5.3.190.0070.03712.68
5.3.180.0070.03612.68
5.3.170.0060.03612.67
5.3.160.0040.03812.68
5.3.150.0050.03812.68
5.3.140.0070.03712.66
5.3.130.0050.04712.66
5.3.120.0080.04312.66
5.3.110.0100.03812.66
5.3.100.0090.03412.12
5.3.90.0080.03412.08
5.3.80.0070.03512.08
5.3.70.0080.03612.07
5.3.60.0080.03412.07
5.3.50.0050.03712.00
5.3.40.0050.03812.00
5.3.30.0070.03411.94
5.3.20.0110.04511.72
5.3.10.0040.03711.69
5.3.00.0030.04511.68
5.2.170.0040.0339.18
5.2.160.0050.0319.18
5.2.150.0050.0329.17
5.2.140.0110.0249.18
5.2.130.0080.0269.13
5.2.120.0030.0309.13
5.2.110.0030.0319.14
5.2.100.0050.0299.14
5.2.90.0060.0309.14
5.2.80.0030.0329.14
5.2.70.0080.0279.13
5.2.60.0070.0309.08
5.2.50.0040.0309.06
5.2.40.0060.0279.04
5.2.30.0040.0319.01
5.2.20.0020.0328.99
5.2.10.0060.0278.91
5.2.00.0060.0278.78
5.1.60.0110.0228.06
5.1.50.0060.0278.06
5.1.40.0080.0308.04
5.1.30.0060.0338.39
5.1.20.0050.0328.41
5.1.10.0040.0268.14
5.1.00.0070.0288.14
5.0.50.0040.0206.61
5.0.40.0030.0226.47
5.0.30.0040.0326.29
5.0.20.0060.0176.25
5.0.10.0030.0216.23
5.0.00.0040.0306.23
4.4.90.0030.0174.78
4.4.80.0040.0144.75
4.4.70.0030.0154.75
4.4.60.0040.0144.75
4.4.50.0040.0194.77
4.4.40.0020.0264.71
4.4.30.0030.0154.76
4.4.20.0030.0184.85
4.4.10.0040.0164.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0164.67
4.3.90.0040.0134.64
4.3.80.0030.0244.59
4.3.70.0030.0154.63
4.3.60.0030.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0244.53
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0040.0143.22
4.3.00.0130.0306.97

preferences:
48.44 ms | 401 KiB | 5 Q