3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); for ($i = 0; $i < 1000; ++$i) { bcdiv(40075036, 86164.098903691, 40); } echo 1000*(microtime(true) - $start); echo "\n"; $start = microtime(true); for ($i = 0; $i < 1000; ++$i) { $a = 40075036/ 86164.098903691; } echo 1000*(microtime(true) - $start);
based on F8QR7
Output for 7.2.0
2.9780864715576 0.010013580322266
Output for 7.1.7
6.6239833831787 0.019073486328125
Output for 7.1.6
6.138801574707 0.016927719116211
Output for 7.1.5
6.1960220336914 0.017881393432617
Output for 7.1.0
4.5390129089355 0.012874603271484
Output for 7.0.20
3.0698776245117 0.011205673217773
Output for 7.0.6
4.1358470916748 0.012874603271484
Output for 7.0.5
Fatal error: Uncaught Error: Call to undefined function bcdiv() in /in/gfuoo:5 Stack trace: #0 {main} thrown in /in/gfuoo on line 5
Process exited with code 255.
Output for 7.0.4
2.6180744171143 0.010967254638672
Output for 7.0.3
3.0958652496338 0.010967254638672
Output for 7.0.2
2.589225769043 0.0071525573730469
Output for 7.0.1
2.6719570159912 0.0078678131103516
Output for 7.0.0
4.0171146392822 0.011920928955078
Output for 5.6.28
3.9081573486328 0.036954879760742
Output for 5.6.21
4.5881271362305 0.052928924560547
Output for 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Fatal error: Call to undefined function bcdiv() in /in/gfuoo on line 5
Process exited with code 255.
Output for 5.6.19
3.7550926208496 0.033855438232422
Output for 5.6.18
3.2179355621338 0.032901763916016
Output for 5.6.17
2.7179718017578 0.031948089599609
Output for 5.6.16
3.4489631652832 0.032901763916016
Output for 5.6.12
3.8819313049316 0.044107437133789
Output for 5.6.11
3.7598609924316 0.037193298339844
Output for 5.6.10
2.7608871459961 0.026941299438477
Output for 5.6.9
4.951000213623 0.072956085205078
Output for 5.6.8
4.8849582672119 0.048160552978516
Output for 5.5.35
2.9799938201904 0.028848648071289
Output for 5.5.33
4.2688846588135 0.044822692871094
Output for 5.5.32
3.4451484680176 0.029087066650391
Output for 5.5.31
3.7050247192383 0.036001205444336
Output for 5.5.28
3.7000179290771 0.033140182495117
Output for 5.5.27
4.910945892334 0.040054321289062
Output for 5.5.26
5.8701038360596 0.059843063354492
Output for 5.5.25
5.4800510406494 0.06413459777832
Output for 5.5.24
4.2150020599365 0.041007995605469
Output for 5.4.45
3.8909912109375 0.040054321289062
Output for 5.4.44
4.0051937103271 0.041007995605469
Output for 5.4.43
3.9260387420654 0.041007995605469
Output for 5.4.42
4.0168762207031 0.042915344238281
Output for 5.4.41
3.9498805999756 0.043153762817383
Output for 5.4.40
3.8571357727051 0.040054321289062
Output for 5.4.39
3.9520263671875 0.039815902709961
Output for 5.4.38
3.8909912109375 0.043869018554688
Output for 5.4.37
3.8318634033203 0.041961669921875
Output for 5.4.36
3.8919448852539 0.10085105895996
Output for 5.4.35
4.4639110565186 0.041007995605469
Output for 5.4.34
3.9119720458984 0.043153762817383
Output for 5.4.32
3.8909912109375 0.042915344238281
Output for 5.4.31
4.5349597930908 0.042915344238281
Output for 5.4.30
4.0791034698486 0.071048736572266
Output for 5.4.29
4.364013671875 0.043869018554688
Output for 5.4.28
4.1351318359375 0.06413459777832
Output for 5.4.27
3.870964050293 0.059843063354492
Output for 5.4.26
4.004955291748 0.041961669921875
Output for 5.4.25
3.9288997650146 0.059843063354492
Output for 5.4.24
4.0280818939209 0.041007995605469
Output for 5.4.23
3.8619041442871 0.041007995605469
Output for 5.4.22
3.9520263671875 0.041961669921875
Output for 5.4.21
5.6891441345215 0.042915344238281
Output for 5.4.20
4.4710636138916 0.066041946411133
Output for 5.4.19
3.8409233093262 0.042200088500977
Output for 5.4.18
4.7411918640137 0.040054321289062
Output for 5.4.17
3.978967666626 0.078201293945312
Output for 5.4.16
4.0099620819092 0.041007995605469
Output for 5.4.15
4.0798187255859 0.041961669921875
Output for 5.4.14
3.9131641387939 0.041007995605469
Output for 5.4.13
3.9868354797363 0.041007995605469
Output for 5.4.12
4.270076751709 0.066995620727539
Output for 5.3.29
4.0168762207031 0.1070499420166
Output for 5.3.28
3.9808750152588 0.055074691772461
Output for 5.3.27
3.9269924163818 0.058174133300781
Output for 5.3.26
4.0109157562256 0.054121017456055
Output for 5.3.25
4.0328502655029 0.056028366088867
Output for 5.3.24
3.9899349212646 0.056028366088867
Output for 5.3.23
4.0159225463867 0.056028366088867
Output for 5.3.22
3.9091110229492 0.1068115234375