3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = range(0.94, 0.49, -0.01); echo count($a).PHP_EOL; echo min($a).PHP_EOL; print_r($a);
Output for 7.0.3 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
45 0.5 Array ( [0] => 0.94 [1] => 0.93 [2] => 0.92 [3] => 0.91 [4] => 0.9 [5] => 0.89 [6] => 0.88 [7] => 0.87 [8] => 0.86 [9] => 0.85 [10] => 0.84 [11] => 0.83 [12] => 0.82 [13] => 0.81 [14] => 0.8 [15] => 0.79 [16] => 0.78 [17] => 0.77 [18] => 0.76 [19] => 0.75 [20] => 0.74 [21] => 0.73 [22] => 0.72 [23] => 0.71 [24] => 0.7 [25] => 0.69 [26] => 0.68 [27] => 0.67 [28] => 0.66 [29] => 0.65 [30] => 0.64 [31] => 0.63 [32] => 0.62 [33] => 0.61 [34] => 0.6 [35] => 0.59 [36] => 0.58 [37] => 0.57 [38] => 0.56 [39] => 0.55 [40] => 0.54 [41] => 0.53 [42] => 0.52 [43] => 0.51 [44] => 0.5 )
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 45 0.5 Array ( [0] => 0.94 [1] => 0.93 [2] => 0.92 [3] => 0.91 [4] => 0.9 [5] => 0.89 [6] => 0.88 [7] => 0.87 [8] => 0.86 [9] => 0.85 [10] => 0.84 [11] => 0.83 [12] => 0.82 [13] => 0.81 [14] => 0.8 [15] => 0.79 [16] => 0.78 [17] => 0.77 [18] => 0.76 [19] => 0.75 [20] => 0.74 [21] => 0.73 [22] => 0.72 [23] => 0.71 [24] => 0.7 [25] => 0.69 [26] => 0.68 [27] => 0.67 [28] => 0.66 [29] => 0.65 [30] => 0.64 [31] => 0.63 [32] => 0.62 [33] => 0.61 [34] => 0.6 [35] => 0.59 [36] => 0.58 [37] => 0.57 [38] => 0.56 [39] => 0.55 [40] => 0.54 [41] => 0.53 [42] => 0.52 [43] => 0.51 [44] => 0.5 )
Output for 5.0.2 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.2
46 0.49 Array ( [0] => 0.94 [1] => 0.93 [2] => 0.92 [3] => 0.91 [4] => 0.9 [5] => 0.89 [6] => 0.88 [7] => 0.87 [8] => 0.86 [9] => 0.85 [10] => 0.84 [11] => 0.83 [12] => 0.82 [13] => 0.81 [14] => 0.8 [15] => 0.79 [16] => 0.78 [17] => 0.77 [18] => 0.76 [19] => 0.75 [20] => 0.74 [21] => 0.73 [22] => 0.72 [23] => 0.71 [24] => 0.7 [25] => 0.69 [26] => 0.68 [27] => 0.67 [28] => 0.66 [29] => 0.65 [30] => 0.64 [31] => 0.63 [32] => 0.62 [33] => 0.61 [34] => 0.6 [35] => 0.59 [36] => 0.58 [37] => 0.57 [38] => 0.56 [39] => 0.55 [40] => 0.54 [41] => 0.53 [42] => 0.52 [43] => 0.51 [44] => 0.5 [45] => 0.49 )
Output for 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gZ3cs on line 4 46PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gZ3cs on line 5 0.49PHP_EOLArray ( [0] => 0.94 [1] => 0.93 [2] => 0.92 [3] => 0.91 [4] => 0.9 [5] => 0.89 [6] => 0.88 [7] => 0.87 [8] => 0.86 [9] => 0.85 [10] => 0.84 [11] => 0.83 [12] => 0.82 [13] => 0.81 [14] => 0.8 [15] => 0.79 [16] => 0.78 [17] => 0.77 [18] => 0.76 [19] => 0.75 [20] => 0.74 [21] => 0.73 [22] => 0.72 [23] => 0.71 [24] => 0.7 [25] => 0.69 [26] => 0.68 [27] => 0.67 [28] => 0.66 [29] => 0.65 [30] => 0.64 [31] => 0.63 [32] => 0.62 [33] => 0.61 [34] => 0.6 [35] => 0.59 [36] => 0.58 [37] => 0.57 [38] => 0.56 [39] => 0.55 [40] => 0.54 [41] => 0.53 [42] => 0.52 [43] => 0.51 [44] => 0.5 [45] => 0.49 )
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/gZ3cs on line 3 0 Warning: Wrong parameter count for min() in /in/gZ3cs on line 5
Output for 4.3.0 - 4.3.9
Warning: Wrong parameter count for range() in /in/gZ3cs on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gZ3cs on line 4 0PHP_EOL Warning: Wrong parameter count for min() in /in/gZ3cs on line 5 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gZ3cs on line 5 PHP_EOL

preferences:
281.8 ms | 402 KiB | 423 Q