3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); for($i=0;$i<100;$i++){ //md5('vf!@mmnfdslkjvlbùdf ,slvbkdsnfmkjnbsd'.rand(1999999999,9999999999)); hash('sha512', 'vf!@mmnfdslkjvlbùdf ,slvbkdsnfmkjnbsd'.rand(1999999999,9999999999)); } echo round(chrono()-$debut,10);
Output for 5.3.17, 5.4.29, 7.0.14 - 7.1.0
0.0001890659
Output for 7.0.3, 7.0.12
0.0001490116
Output for 5.4.41, 7.0.6
0.0001418591
Output for 5.4.5, 5.4.10, 5.4.40, 7.0.5
0.000180006
Output for 7.0.2, 7.0.4
0.0001270771
Output for 7.0.1
0.0001239777
Output for 5.4.30, 7.0.0
0.0001280308
Output for 5.6.28
0.0002391338
Output for 5.2.5, 5.6.21
0.0002150536
Output for 5.3.21, 5.6.20
0.0001821518
Output for 5.4.13, 5.6.19
0.0001831055
Output for 5.6.18
0.0001189709
Output for 5.4.32, 5.6.17
0.0001330376
Output for 5.6.16
0.000207901
Output for 5.3.1, 5.6.15
0.0001969337
Output for 5.6.14
0.0001561642
Output for 5.2.3, 5.3.4, 5.6.13
0.0002169609
Output for 5.6.12
0.0002059937
Output for 5.6.11
0.0001711845
Output for 5.6.10
0.0003089905
Output for 5.6.9
0.00020504
Output for 5.6.8
0.0001769066
Output for 5.5.35
0.0002069473
Output for 5.5.34
0.0001828671
Output for 5.5.33
0.0001580715
Output for 5.3.29, 5.4.27, 5.5.32
0.0001420975
Output for 5.2.7, 5.3.16, 5.5.31
0.0001990795
Output for 5.5.30
0.0002450943
Output for 5.3.26, 5.5.29
0.0001339912
Output for 5.5.28
0.0001587868
Output for 5.5.27
0.0002200603
Output for 5.4.24, 5.5.26
0.0002100468
Output for 5.3.9, 5.4.17, 5.4.21, 5.5.25
0.0001599789
Output for 5.5.24
0.0001349449
Output for 5.4.45
0.0001530647
Output for 5.3.27, 5.4.26, 5.4.39, 5.4.44
0.0001261234
Output for 5.4.43
0.0002629757
Output for 5.4.42
0.0001780987
Output for 5.3.28, 5.4.38
0.0001978874
Output for 5.4.37
0.0001559258
Output for 5.4.36
0.0001249313
Output for 5.2.16, 5.4.35
0.0001549721
Output for 5.4.34
0.0001609325
Output for 5.4.22, 5.4.31
0.000123024
Output for 5.2.17, 5.4.4, 5.4.28
0.0001440048
Output for 5.4.25
0.0001819134
Output for 5.2.10, 5.4.23
0.0001928806
Output for 5.4.20
0.0001888275
Output for 5.3.15, 5.4.19
0.0001251698
Output for 5.4.18
0.0001227856
Output for 5.4.16
0.0002040863
Output for 5.4.15
0.0001380444
Output for 5.1.2, 5.4.14
0.0001869202
Output for 5.4.12
0.0001471043
Output for 5.4.11
0.0001871586
Output for 5.4.9
0.0001790524
Output for 5.4.8
0.0001881123
Output for 5.4.7
0.0001351833
Output for 5.3.20, 5.4.6
0.0002009869
Output for 5.4.3
0.0001649857
Output for 5.4.2
0.0001218319
Output for 5.3.8, 5.4.1
0.000194788
Output for 5.4.0
0.0001809597
Output for 5.3.25
0.000166893
Output for 5.3.24
0.0001399517
Output for 5.3.19, 5.3.23
0.0001289845
Output for 5.3.22
0.000193119
Output for 5.3.18
0.000232935
Output for 5.3.14
0.0002000332
Output for 5.3.13
0.0001518726
Output for 5.3.2, 5.3.6, 5.3.12
0.0001900196
Output for 5.3.11
0.0001950264
Output for 5.3.10
0.0001449585
Output for 5.3.7
0.0001268387
Output for 5.3.5
0.0001568794
Output for 5.3.3
0.0001621246
Output for 5.3.0
0.0001759529
Output for 5.2.15
0.000218153
Output for 5.2.14
0.0002129078
Output for 5.1.3, 5.2.13
0.0002310276
Output for 5.2.8, 5.2.12
0.0001749992
Output for 5.2.11
0.0001690388
Output for 5.2.4, 5.2.9
0.0001940727
Output for 5.2.6
0.0001921654
Output for 5.2.2
0.0001721382
Output for 5.2.1
0.0002140999
Output for 5.2.0
0.0002160072
Output for 5.1.6
0.0002260208
Output for 5.1.5
0.000246048
Output for 5.1.4
0.0001981258
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash() in /in/lQZLc on line 15
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash() in /in/lQZLc on line 15
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash() in /in/lQZLc on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash() in /in/lQZLc on line 15