3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title> Using comparison operatios </title> </head> <body> <? /* Abdelatif Abu alya 100608856 Feb26th, 2017 WEBD2201 */ $a = 21; $b = 15; echo "<p>original value of \$a is $a and \$b is $b</p>"; if ($a == $b) { echo "<p>Test 1: \$a equals /$b</p>"; } else { echo "<p>Test 1: \$a is not equal /$b</p>"; } if ($a != $b) { echo "<p>Test 2: \$a is not equal to /$b</p>"; } else { echo "<p>Test 2: \$a is equal to /$b</p>"; } if ($a > $b) { echo "<p>Test 3: \$a is grater than /$b</p>"; } else { echo "<p>Test 3: \$a is not grater than /$b</p>"; } if ($a < $b) { echo "<p>Test 4: \$a is less than /$b</p>"; } else { echo "<p>Test 4: \$a is not less than /$b</p>"; } if ($a >= $b) { echo "<p>Test 5: \$a is greater or equal to /$b</p>"; } else { echo "<p>Test 5: \$a is not greater or to equal /$b</p>"; } if ($a <= $b) { echo "<p>Test 6: \$a is less than or equal to /$b</p>"; } else { echo "<p>Test 6: \$a is not less than or to equal /$b</p>"; } ?> </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.0070.01118.18
8.3.50.0110.00416.36
8.3.40.0150.00018.59
8.3.30.0070.00718.54
8.3.20.0040.00419.51
8.3.10.0040.00420.61
8.3.00.0040.00423.70
8.2.180.0070.01118.41
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0080.00020.38
8.2.120.0040.00426.35
8.2.110.0030.00719.15
8.2.100.0120.00017.68
8.2.90.0080.00019.07
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0100.00017.93
8.2.50.0030.00519.21
8.2.40.0050.00320.41
8.2.30.0000.00820.33
8.2.20.0070.00017.93
8.2.10.0080.00017.92
8.2.00.0000.00717.94
8.1.280.0120.00625.92
8.1.270.0060.00320.65
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00321.31
8.1.230.0090.00319.04
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0050.00316.88
8.1.180.0050.00318.10
8.1.170.0000.00818.53
8.1.160.0000.00818.80
8.1.150.0070.00020.32
8.1.140.0030.00319.33
8.1.130.0000.00718.93
8.1.120.0000.00717.36
8.1.110.0000.00717.30
8.1.100.0000.00717.34
8.1.90.0040.00317.30
8.1.80.0050.00517.27
8.1.70.0000.00617.21
8.1.60.0000.00717.46
8.1.50.0000.00717.37
8.1.40.0080.00017.36
8.1.30.0040.00817.24
8.1.20.0040.00417.43
8.1.10.0040.00417.36
8.1.00.0000.00717.25
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.35
8.0.270.0070.00017.17
8.0.260.0030.00317.11
8.0.250.0030.00316.70
8.0.240.0050.00316.74
8.0.230.0040.00416.86
8.0.220.0000.00716.73
8.0.210.0030.00316.81
8.0.200.0060.00016.79
8.0.190.0040.00816.70
8.0.180.0030.00516.79
8.0.170.0070.00016.67
8.0.160.0030.00316.76
8.0.150.0000.00716.52
8.0.140.0000.00716.62
8.0.130.0030.00313.36
8.0.120.0000.00716.67
8.0.110.0030.00316.75
8.0.100.0040.00416.63
8.0.90.0000.00816.79
8.0.80.0090.00916.75
8.0.70.0070.00016.55
8.0.60.0040.00416.63
8.0.50.0040.00416.79
8.0.30.0070.01316.78
8.0.20.0120.00917.40
8.0.10.0040.00416.91
8.0.00.0100.01016.64
7.4.330.0050.00015.55
7.4.320.0000.00716.34
7.4.300.0030.00616.37
7.4.290.0090.00016.23
7.4.280.0050.00316.39
7.4.270.0000.00716.46
7.4.260.0000.00716.49
7.4.250.0000.00716.23
7.4.240.0000.00816.45
7.4.230.0050.00216.36
7.4.220.0060.01216.55
7.4.210.0070.01016.30
7.4.200.0030.00316.34
7.4.160.0130.00316.39
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0140.00816.42
7.4.120.0110.01116.35
7.4.110.0070.01116.31
7.4.100.0090.01316.52
7.4.90.0060.01216.33
7.4.80.0070.01119.39
7.4.70.0060.01016.30
7.4.60.0040.01116.24
7.4.50.0070.00716.43
7.4.40.0100.00616.26
7.4.30.0040.01416.41
7.4.00.0070.01014.82
7.3.330.0030.00313.14
7.3.320.0000.00513.23
7.3.310.0070.00015.96
7.3.300.0060.00016.02
7.3.290.0060.00716.08
7.3.280.0060.01016.12
7.3.270.0080.01117.40
7.3.260.0170.00416.46
7.3.250.0070.01016.21
7.3.240.0130.00616.39
7.3.230.0100.00716.39
7.3.210.0060.01016.43
7.3.200.0040.01216.38
7.3.190.0100.00616.14
7.3.180.0060.00916.11
7.3.170.0080.00816.21
7.3.160.0090.00916.10
7.2.330.0110.01116.43
7.2.320.0110.00716.35
7.2.310.0070.01016.32
7.2.300.0070.01516.42
7.2.290.0130.00616.30
7.1.200.0030.00615.49
7.1.70.0080.00416.78
7.1.60.0140.00016.80
7.1.20.0230.06740.30
7.1.10.0230.07722.25
7.1.00.0170.05722.29
7.0.200.0040.01116.48
7.0.160.0030.06321.88
7.0.150.0130.06321.88
7.0.140.0100.08021.79
7.0.130.0100.05721.88
7.0.120.0000.07321.82
7.0.110.0200.06721.83
7.0.100.0170.06021.86
7.0.90.0170.05321.83
7.0.80.0100.06321.93
7.0.70.0100.07321.96
7.0.60.0130.05321.77
7.0.50.0030.07721.83
7.0.40.0030.06721.81
7.0.30.0130.05021.81
7.0.20.0070.08321.82
7.0.10.0070.08721.71
7.0.00.0100.05321.84

preferences:
64.28 ms | 401 KiB | 5 Q