3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; $b = "ceva"; $c = 0; $d = false; if (($a == $b) && ($b == $c) && ($c == $d)) { // daca sunt egale intre ele echo "Cele 2 valori:" var_dump($a); var_dump($d); echo 'sunt egale.'; } echo "\n\n\n"; if ((NULL == 0) && (NULL < -1)) { echo "0 e mai mic decat -1"; } echo "\n\n\n"; $string = "123abc"; $a = 123; $b = "123"; if (($a == $string) && ($b != $string)) { echo "$a == $string is true \n$b != $string is true"; } echo "\n\n\n"; $s1 = " 6"; $s2 = "6"; if ($s1 == $s2) { echo "'$s1' == '$s2'"; } echo "\n\n\n"; $a = md5('240610708'); $b = md5('QNKCDZO'); if ($a == $b) { echo "$a\nsi\n$b\nsunt egale"; }

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)
5.6.80.0000.04020.35
5.5.240.0300.08320.35
5.4.400.0870.07018.84
5.4.390.0470.06718.81
5.4.380.0530.06318.59
5.4.370.0270.08318.75
5.4.360.0530.06718.72
5.4.350.0470.06018.74
5.4.340.0370.07318.61
5.4.320.0330.06318.80
5.4.310.0400.08318.59
5.4.300.0600.06018.55
5.4.290.0430.06318.53
5.4.280.0470.06018.52
5.4.270.0400.06718.55
5.4.260.0370.07718.77
5.4.250.0630.06318.78
5.4.240.0300.06318.59
5.4.230.0470.05718.59
5.4.220.1300.05318.68
5.4.210.0430.06018.60
5.4.200.0370.07316.71
5.4.190.0600.06718.45
5.4.180.0430.07718.73
5.4.170.0300.08318.70
5.4.160.0400.05718.74
5.4.150.0370.05718.48
5.4.140.0400.06316.26
5.4.130.1170.06316.43
5.4.120.0370.05316.19
5.4.110.0270.07316.23
5.4.100.0300.06316.28
5.4.90.0870.06716.23
5.4.80.0430.05316.20
5.4.70.0330.05716.25
5.4.60.0330.06316.24
5.4.50.0570.04316.28
5.4.40.0330.05316.23
5.4.30.1570.04716.17
5.4.20.1000.05716.20
5.4.10.1170.05716.22
5.4.00.1030.06715.61
5.3.290.1230.07714.74
5.3.280.1330.05714.69
5.3.270.1130.06714.61
5.3.260.0770.07314.52
5.3.250.1870.04714.57
5.3.240.1600.08314.68
5.3.230.0630.06014.49
5.3.220.0370.06014.53
5.3.210.0400.06014.57
5.3.200.0600.05714.62
5.3.190.1100.06714.52
5.3.180.0630.05714.46
5.3.170.0430.05314.66
5.3.160.0400.05314.61
5.3.150.0570.05714.48
5.3.140.0930.04714.48
5.3.130.0330.05714.45
5.3.120.0230.07014.46
5.3.110.0400.06714.55
5.3.100.0630.07714.04
5.3.90.0400.05714.01
5.3.80.0400.05713.93
5.3.70.0400.05313.92
5.3.60.0430.05013.90
5.3.50.0470.04713.93
5.3.40.0430.05313.89
5.3.30.0300.06313.88
5.3.20.0400.05713.68
5.3.10.0400.06313.60
5.3.00.0500.05313.63
5.2.170.0230.05311.20
5.2.160.0200.05011.18
5.2.150.0300.04311.29
5.2.140.0300.04711.09
5.2.130.0470.04311.09
5.2.120.0370.03711.04
5.2.110.0230.04711.07
5.2.100.0270.05011.13
5.2.90.0400.04311.11
5.2.80.0970.05011.06
5.2.70.0430.04311.13
5.2.60.0230.05711.18
5.2.50.0300.06711.02
5.2.40.0330.04310.98
5.2.30.0200.05710.92
5.2.20.0230.05011.00
5.2.10.0270.04310.84
5.2.00.0170.05310.87
5.1.60.0170.0479.98
5.1.50.0270.0379.95
5.1.40.0230.03710.11
5.1.30.0400.04010.40
5.1.20.0300.04010.34
5.1.10.0270.04310.17
5.1.00.0230.04310.18
5.0.50.0170.0338.52
5.0.40.0100.0338.47
5.0.30.0100.0578.33
5.0.20.0100.0408.19
5.0.10.0200.0308.29
5.0.00.0100.0578.24
4.4.90.0000.0377.38
4.4.80.0130.0307.38
4.4.70.0100.0277.38
4.4.60.0070.0307.38
4.4.50.0530.0207.38
4.4.40.0170.0477.38
4.4.30.0200.0237.38
4.4.20.0170.0237.38
4.4.10.0130.0337.38
4.4.00.0170.0337.38
4.3.110.0200.0237.38
4.3.100.0630.0307.38
4.3.90.0130.0277.38
4.3.80.0230.0377.38
4.3.70.0170.0237.38
4.3.60.0130.0237.38
4.3.50.0200.0337.38
4.3.40.0130.0437.38
4.3.30.0070.0277.38
4.3.20.0130.0237.38
4.3.10.0100.0237.38
4.3.00.0000.0236.66

preferences:
145.62 ms | 1394 KiB | 7 Q