3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
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

preferences:
75.61 ms | 401 KiB | 45 Q