3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( array("''", ''), array("'0'", '0'), array("'0.0'", '0.0'), array("'0.0_'", '0.0_'), array("'1'", '1'), array("'1.0'", '1.0'), array("'1.0_'", '1.0_'), array("'<p/>'", '<p/>'), array("'<p>1</p>'", '<p>1</p>'), array("'<p>php</p>'", '<p>php</p>'), array("'php'", 'php'), array("'_0'", '_0'), array("'_0.0'", '_0.0'), array("'_0.0_'", '_0.0_'), array("'_1'", '_1'), array("'_1.0'", '_1.0'), array("'_1.0_'", '_1.0_'), array("0", 0), array("0.0", 0.0), array("1", 1), array("1.0", 1.0), array("array()", array()), array("false", false), array("null", null), array("true", true), ); $valuesTotal = count($values); for ($i = 0; $i < ($valuesTotal - 1); $i++) { foreach (range($i + 1, $valuesTotal - 1) as $k) { list($baseDisplay, $base) = $values[$i]; list($compareDisplay, $compare) = $values[$k]; echo "$i:$k $baseDisplay == $compareDisplay: "; echo ($base == $compare)?"TRUE\n":"FALSE\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
0:1 '' == '0': FALSE 0:2 '' == '0.0': FALSE 0:3 '' == '0.0_': FALSE 0:4 '' == '1': FALSE 0:5 '' == '1.0': FALSE 0:6 '' == '1.0_': FALSE 0:7 '' == '<p/>': FALSE 0:8 '' == '<p>1</p>': FALSE 0:9 '' == '<p>php</p>': FALSE 0:10 '' == 'php': FALSE 0:11 '' == '_0': FALSE 0:12 '' == '_0.0': FALSE 0:13 '' == '_0.0_': FALSE 0:14 '' == '_1': FALSE 0:15 '' == '_1.0': FALSE 0:16 '' == '_1.0_': FALSE 0:17 '' == 0: FALSE 0:18 '' == 0.0: FALSE 0:19 '' == 1: FALSE 0:20 '' == 1.0: FALSE 0:21 '' == array(): FALSE 0:22 '' == false: TRUE 0:23 '' == null: TRUE 0:24 '' == true: FALSE 1:2 '0' == '0.0': TRUE 1:3 '0' == '0.0_': FALSE 1:4 '0' == '1': FALSE 1:5 '0' == '1.0': FALSE 1:6 '0' == '1.0_': FALSE 1:7 '0' == '<p/>': FALSE 1:8 '0' == '<p>1</p>': FALSE 1:9 '0' == '<p>php</p>': FALSE 1:10 '0' == 'php': FALSE 1:11 '0' == '_0': FALSE 1:12 '0' == '_0.0': FALSE 1:13 '0' == '_0.0_': FALSE 1:14 '0' == '_1': FALSE 1:15 '0' == '_1.0': FALSE 1:16 '0' == '_1.0_': FALSE 1:17 '0' == 0: TRUE 1:18 '0' == 0.0: TRUE 1:19 '0' == 1: FALSE 1:20 '0' == 1.0: FALSE 1:21 '0' == array(): FALSE 1:22 '0' == false: TRUE 1:23 '0' == null: FALSE 1:24 '0' == true: FALSE 2:3 '0.0' == '0.0_': FALSE 2:4 '0.0' == '1': FALSE 2:5 '0.0' == '1.0': FALSE 2:6 '0.0' == '1.0_': FALSE 2:7 '0.0' == '<p/>': FALSE 2:8 '0.0' == '<p>1</p>': FALSE 2:9 '0.0' == '<p>php</p>': FALSE 2:10 '0.0' == 'php': FALSE 2:11 '0.0' == '_0': FALSE 2:12 '0.0' == '_0.0': FALSE 2:13 '0.0' == '_0.0_': FALSE 2:14 '0.0' == '_1': FALSE 2:15 '0.0' == '_1.0': FALSE 2:16 '0.0' == '_1.0_': FALSE 2:17 '0.0' == 0: TRUE 2:18 '0.0' == 0.0: TRUE 2:19 '0.0' == 1: FALSE 2:20 '0.0' == 1.0: FALSE 2:21 '0.0' == array(): FALSE 2:22 '0.0' == false: FALSE 2:23 '0.0' == null: FALSE 2:24 '0.0' == true: TRUE 3:4 '0.0_' == '1': FALSE 3:5 '0.0_' == '1.0': FALSE 3:6 '0.0_' == '1.0_': FALSE 3:7 '0.0_' == '<p/>': FALSE 3:8 '0.0_' == '<p>1</p>': FALSE 3:9 '0.0_' == '<p>php</p>': FALSE 3:10 '0.0_' == 'php': FALSE 3:11 '0.0_' == '_0': FALSE 3:12 '0.0_' == '_0.0': FALSE 3:13 '0.0_' == '_0.0_': FALSE 3:14 '0.0_' == '_1': FALSE 3:15 '0.0_' == '_1.0': FALSE 3:16 '0.0_' == '_1.0_': FALSE 3:17 '0.0_' == 0: FALSE 3:18 '0.0_' == 0.0: FALSE 3:19 '0.0_' == 1: FALSE 3:20 '0.0_' == 1.0: FALSE 3:21 '0.0_' == array(): FALSE 3:22 '0.0_' == false: FALSE 3:23 '0.0_' == null: FALSE 3:24 '0.0_' == true: TRUE 4:5 '1' == '1.0': TRUE 4:6 '1' == '1.0_': FALSE 4:7 '1' == '<p/>': FALSE 4:8 '1' == '<p>1</p>': FALSE 4:9 '1' == '<p>php</p>': FALSE 4:10 '1' == 'php': FALSE 4:11 '1' == '_0': FALSE 4:12 '1' == '_0.0': FALSE 4:13 '1' == '_0.0_': FALSE 4:14 '1' == '_1': FALSE 4:15 '1' == '_1.0': FALSE 4:16 '1' == '_1.0_': FALSE 4:17 '1' == 0: FALSE 4:18 '1' == 0.0: FALSE 4:19 '1' == 1: TRUE 4:20 '1' == 1.0: TRUE 4:21 '1' == array(): FALSE 4:22 '1' == false: FALSE 4:23 '1' == null: FALSE 4:24 '1' == true: TRUE 5:6 '1.0' == '1.0_': FALSE 5:7 '1.0' == '<p/>': FALSE 5:8 '1.0' == '<p>1</p>': FALSE 5:9 '1.0' == '<p>php</p>': FALSE 5:10 '1.0' == 'php': FALSE 5:11 '1.0' == '_0': FALSE 5:12 '1.0' == '_0.0': FALSE 5:13 '1.0' == '_0.0_': FALSE 5:14 '1.0' == '_1': FALSE 5:15 '1.0' == '_1.0': FALSE 5:16 '1.0' == '_1.0_': FALSE 5:17 '1.0' == 0: FALSE 5:18 '1.0' == 0.0: FALSE 5:19 '1.0' == 1: TRUE 5:20 '1.0' == 1.0: TRUE 5:21 '1.0' == array(): FALSE 5:22 '1.0' == false: FALSE 5:23 '1.0' == null: FALSE 5:24 '1.0' == true: TRUE 6:7 '1.0_' == '<p/>': FALSE 6:8 '1.0_' == '<p>1</p>': FALSE 6:9 '1.0_' == '<p>php</p>': FALSE 6:10 '1.0_' == 'php': FALSE 6:11 '1.0_' == '_0': FALSE 6:12 '1.0_' == '_0.0': FALSE 6:13 '1.0_' == '_0.0_': FALSE 6:14 '1.0_' == '_1': FALSE 6:15 '1.0_' == '_1.0': FALSE 6:16 '1.0_' == '_1.0_': FALSE 6:17 '1.0_' == 0: FALSE 6:18 '1.0_' == 0.0: FALSE 6:19 '1.0_' == 1: FALSE 6:20 '1.0_' == 1.0: FALSE 6:21 '1.0_' == array(): FALSE 6:22 '1.0_' == false: FALSE 6:23 '1.0_' == null: FALSE 6:24 '1.0_' == true: TRUE 7:8 '<p/>' == '<p>1</p>': FALSE 7:9 '<p/>' == '<p>php</p>': FALSE 7:10 '<p/>' == 'php': FALSE 7:11 '<p/>' == '_0': FALSE 7:12 '<p/>' == '_0.0': FALSE 7:13 '<p/>' == '_0.0_': FALSE 7:14 '<p/>' == '_1': FALSE 7:15 '<p/>' == '_1.0': FALSE 7:16 '<p/>' == '_1.0_': FALSE 7:17 '<p/>' == 0: FALSE 7:18 '<p/>' == 0.0: FALSE 7:19 '<p/>' == 1: FALSE 7:20 '<p/>' == 1.0: FALSE 7:21 '<p/>' == array(): FALSE 7:22 '<p/>' == false: FALSE 7:23 '<p/>' == null: FALSE 7:24 '<p/>' == true: TRUE 8:9 '<p>1</p>' == '<p>php</p>': FALSE 8:10 '<p>1</p>' == 'php': FALSE 8:11 '<p>1</p>' == '_0': FALSE 8:12 '<p>1</p>' == '_0.0': FALSE 8:13 '<p>1</p>' == '_0.0_': FALSE 8:14 '<p>1</p>' == '_1': FALSE 8:15 '<p>1</p>' == '_1.0': FALSE 8:16 '<p>1</p>' == '_1.0_': FALSE 8:17 '<p>1</p>' == 0: FALSE 8:18 '<p>1</p>' == 0.0: FALSE 8:19 '<p>1</p>' == 1: FALSE 8:20 '<p>1</p>' == 1.0: FALSE 8:21 '<p>1</p>' == array(): FALSE 8:22 '<p>1</p>' == false: FALSE 8:23 '<p>1</p>' == null: FALSE 8:24 '<p>1</p>' == true: TRUE 9:10 '<p>php</p>' == 'php': FALSE 9:11 '<p>php</p>' == '_0': FALSE 9:12 '<p>php</p>' == '_0.0': FALSE 9:13 '<p>php</p>' == '_0.0_': FALSE 9:14 '<p>php</p>' == '_1': FALSE 9:15 '<p>php</p>' == '_1.0': FALSE 9:16 '<p>php</p>' == '_1.0_': FALSE 9:17 '<p>php</p>' == 0: FALSE 9:18 '<p>php</p>' == 0.0: FALSE 9:19 '<p>php</p>' == 1: FALSE 9:20 '<p>php</p>' == 1.0: FALSE 9:21 '<p>php</p>' == array(): FALSE 9:22 '<p>php</p>' == false: FALSE 9:23 '<p>php</p>' == null: FALSE 9:24 '<p>php</p>' == true: TRUE 10:11 'php' == '_0': FALSE 10:12 'php' == '_0.0': FALSE 10:13 'php' == '_0.0_': FALSE 10:14 'php' == '_1': FALSE 10:15 'php' == '_1.0': FALSE 10:16 'php' == '_1.0_': FALSE 10:17 'php' == 0: FALSE 10:18 'php' == 0.0: FALSE 10:19 'php' == 1: FALSE 10:20 'php' == 1.0: FALSE 10:21 'php' == array(): FALSE 10:22 'php' == false: FALSE 10:23 'php' == null: FALSE 10:24 'php' == true: TRUE 11:12 '_0' == '_0.0': FALSE 11:13 '_0' == '_0.0_': FALSE 11:14 '_0' == '_1': FALSE 11:15 '_0' == '_1.0': FALSE 11:16 '_0' == '_1.0_': FALSE 11:17 '_0' == 0: FALSE 11:18 '_0' == 0.0: FALSE 11:19 '_0' == 1: FALSE 11:20 '_0' == 1.0: FALSE 11:21 '_0' == array(): FALSE 11:22 '_0' == false: FALSE 11:23 '_0' == null: FALSE 11:24 '_0' == true: TRUE 12:13 '_0.0' == '_0.0_': FALSE 12:14 '_0.0' == '_1': FALSE 12:15 '_0.0' == '_1.0': FALSE 12:16 '_0.0' == '_1.0_': FALSE 12:17 '_0.0' == 0: FALSE 12:18 '_0.0' == 0.0: FALSE 12:19 '_0.0' == 1: FALSE 12:20 '_0.0' == 1.0: FALSE 12:21 '_0.0' == array(): FALSE 12:22 '_0.0' == false: FALSE 12:23 '_0.0' == null: FALSE 12:24 '_0.0' == true: TRUE 13:14 '_0.0_' == '_1': FALSE 13:15 '_0.0_' == '_1.0': FALSE 13:16 '_0.0_' == '_1.0_': FALSE 13:17 '_0.0_' == 0: FALSE 13:18 '_0.0_' == 0.0: FALSE 13:19 '_0.0_' == 1: FALSE 13:20 '_0.0_' == 1.0: FALSE 13:21 '_0.0_' == array(): FALSE 13:22 '_0.0_' == false: FALSE 13:23 '_0.0_' == null: FALSE 13:24 '_0.0_' == true: TRUE 14:15 '_1' == '_1.0': FALSE 14:16 '_1' == '_1.0_': FALSE 14:17 '_1' == 0: FALSE 14:18 '_1' == 0.0: FALSE 14:19 '_1' == 1: FALSE 14:20 '_1' == 1.0: FALSE 14:21 '_1' == array(): FALSE 14:22 '_1' == false: FALSE 14:23 '_1' == null: FALSE 14:24 '_1' == true: TRUE 15:16 '_1.0' == '_1.0_': FALSE 15:17 '_1.0' == 0: FALSE 15:18 '_1.0' == 0.0: FALSE 15:19 '_1.0' == 1: FALSE 15:20 '_1.0' == 1.0: FALSE 15:21 '_1.0' == array(): FALSE 15:22 '_1.0' == false: FALSE 15:23 '_1.0' == null: FALSE 15:24 '_1.0' == true: TRUE 16:17 '_1.0_' == 0: FALSE 16:18 '_1.0_' == 0.0: FALSE 16:19 '_1.0_' == 1: FALSE 16:20 '_1.0_' == 1.0: FALSE 16:21 '_1.0_' == array(): FALSE 16:22 '_1.0_' == false: FALSE 16:23 '_1.0_' == null: FALSE 16:24 '_1.0_' == true: TRUE 17:18 0 == 0.0: TRUE 17:19 0 == 1: FALSE 17:20 0 == 1.0: FALSE 17:21 0 == array(): FALSE 17:22 0 == false: TRUE 17:23 0 == null: TRUE 17:24 0 == true: FALSE 18:19 0.0 == 1: FALSE 18:20 0.0 == 1.0: FALSE 18:21 0.0 == array(): FALSE 18:22 0.0 == false: TRUE 18:23 0.0 == null: TRUE 18:24 0.0 == true: FALSE 19:20 1 == 1.0: TRUE 19:21 1 == array(): FALSE 19:22 1 == false: FALSE 19:23 1 == null: FALSE 19:24 1 == true: TRUE 20:21 1.0 == array(): FALSE 20:22 1.0 == false: FALSE 20:23 1.0 == null: FALSE 20:24 1.0 == true: TRUE 21:22 array() == false: TRUE 21:23 array() == null: TRUE 21:24 array() == true: FALSE 22:23 false == null: TRUE 22:24 false == true: FALSE 23:24 null == true: FALSE

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.37 ms | 417 KiB | 8 Q