3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = [1073741824,1,18014398509481984,8589934592,256,16777216,4,1024,17592186044416,32768,2199023255552,1125899906842624,34359738368,137438953472,1152921504606846976,4611686018427387904,8796093022208,140737488355328,2147483648,4398046511104,36028797018963968,9007199254740992,131072,17179869184,72057594037927936,512,68719476736,144115188075855872,288230376151711744,2048,281474976710656,9.2233720368548E+18,16,128,549755813888,536870912,8388608,70368744177664,2251799813685248,262144,4294967296,134217728,32,524288,65536,1099511627776,4503599627370496,2,2305843009213693952,35184372088832,67108864,8,33554432,2097152,562949953421312,4194304,4096,576460752303423488,274877906944,268435456,16384,8192,64,1048576]; usort($items, function($a, $b) { return $a - $b; }); print_r($items);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 1 [1] => 2 [2] => 4 [3] => 8 [4] => 16 [5] => 32 [6] => 64 [7] => 128 [8] => 256 [9] => 512 [10] => 1024 [11] => 2048 [12] => 4096 [13] => 8192 [14] => 16384 [15] => 32768 [16] => 65536 [17] => 131072 [18] => 262144 [19] => 524288 [20] => 1048576 [21] => 2097152 [22] => 4194304 [23] => 8388608 [24] => 16777216 [25] => 33554432 [26] => 67108864 [27] => 134217728 [28] => 268435456 [29] => 536870912 [30] => 1073741824 [31] => 2147483648 [32] => 4294967296 [33] => 8589934592 [34] => 17179869184 [35] => 34359738368 [36] => 68719476736 [37] => 137438953472 [38] => 274877906944 [39] => 549755813888 [40] => 1099511627776 [41] => 2199023255552 [42] => 4398046511104 [43] => 8796093022208 [44] => 17592186044416 [45] => 35184372088832 [46] => 70368744177664 [47] => 140737488355328 [48] => 281474976710656 [49] => 562949953421312 [50] => 1125899906842624 [51] => 2251799813685248 [52] => 4503599627370496 [53] => 9007199254740992 [54] => 18014398509481984 [55] => 36028797018963968 [56] => 72057594037927936 [57] => 144115188075855872 [58] => 288230376151711744 [59] => 576460752303423488 [60] => 1152921504606846976 [61] => 2305843009213693952 [62] => 4611686018427387904 [63] => 9.2233720368548E+18 )

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:
72.55 ms | 409 KiB | 5 Q