3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = [1,2,3,4,2,2,4,2,42,3,25,5,25,5,35,23,5,2,35,5,4,4,54,45,45,4,5,74,3,54,6,3,5,7,8,4,3,6,67,34,67]; $t = microtime(); rsort($arr); if ($arr[2] > 50) {echo 'true';} echo microtime() -$t;
based on n9Gvj
Output for 7.1.0
true Notice: A non well formed numeric value encountered in /in/cgbM6 on line 10 Notice: A non well formed numeric value encountered in /in/cgbM6 on line 10 2.9E-5
Output for 7.0.14
true2.9E-5
Output for 5.6.16, 7.0.6
true2.9999999999974E-5
Output for 7.0.5
true2.7000000000006E-5
Output for 7.0.4
true2.1999999999966E-5
Output for 7.0.0, 7.0.3
true1.9999999999992E-5
Output for 7.0.2
true2.2000000000078E-5
Output for 7.0.1
true3.9000000000011E-5
Output for hhvm-3.12.0
true0.000162
Output for hhvm-3.10.0
true3.8000000000003E-5
Output for 5.6.28
true3.2E-5
Output for 5.6.21
true4.2999999999987E-5
Output for 5.5.29, 5.6.20
true3.1000000000003E-5
Output for 5.6.19
true4.8000000000048E-5
Output for 5.5.26, 5.6.18
true3.3999999999978E-5
Output for 5.6.7, 5.6.17
true4.9999999999994E-5
Output for 5.5.32, 5.6.15
true2.599999999997E-5
Output for 5.6.14
true2.4999999999942E-5
Output for 5.6.13
true2.1000000000049E-5
Output for 5.5.30 - 5.5.31, 5.6.12
true3.5000000000007E-5
Output for 5.4.41, 5.5.35, 5.6.11
true3.299999999995E-5
Output for 5.6.10
true2.2000000000022E-5
Output for 5.6.9
true2.3999999999996E-5
Output for 5.6.8
true3.3999999999992E-5
Output for 5.5.28, 5.5.34
true2.6999999999999E-5
Output for 5.5.33
true2.2999999999995E-5
Output for 5.5.27
true2.3000000000002E-5
Output for 5.5.25
true4.3999999999933E-5
Output for 5.5.24
true2.9000000000001E-5
Output for 5.4.45
true8.3000000000027E-5
Output for 5.4.44
true4.7999999999992E-5
Output for 5.4.43
true5.8000000000002E-5
Output for 5.4.42
true2.5999999999998E-5
Output for 5.4.40
true0.0243
Output for 5.4.39
true0.002455
Output for 5.4.38
true0.00012500000000004
Output for 5.4.37
true9.9000000000016E-5
Output for 5.4.36
true8.8000000000001E-5
Output for 5.4.35
true8.9000000000006E-5
Output for 5.4.34
true0.00017299999999998
Output for 5.4.32
true6.4000000000008E-5
Output for 5.4.20, 5.4.24, 5.4.29, 5.4.31
true6.600000000001E-5
Output for 5.4.2, 5.4.30
true6.3999999999953E-5
Output for 5.4.6, 5.4.11, 5.4.28
true6.3000000000035E-5
Output for 5.4.19, 5.4.27
true6.7999999999957E-5
Output for 5.4.26
true0.00015399999999999
Output for 5.4.25
true8.5000000000002E-5
Output for 5.4.0 - 5.4.1, 5.4.23
true7.0000000000014E-5
Output for 5.4.22
true6.7000000000039E-5
Output for 5.4.4, 5.4.21
true6.6999999999928E-5
Output for 5.4.18
true6.4E-5
Output for 5.4.17
true6.9E-5
Output for 5.4.16
true6.1000000000005E-5
Output for 5.4.15
true6.299999999998E-5
Output for 5.4.14
true6.3999999999981E-5
Output for 5.4.13
true5.9000000000003E-5
Output for 5.4.12
true9.300000000001E-5
Output for 5.4.7 - 5.4.10
true6.4999999999982E-5
Output for 5.4.5
true6.2000000000006E-5
Output for 5.4.3
true7.1000000000043E-5
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/cgbM6 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/cgbM6 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/cgbM6 on line 5
Process exited with code 255.