3v4l.org

run code in 200+ PHP versions simultaneously
<?php $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { 2 ** 16; } echo "Pow operator: " . (microtime(true) - $start) . "\n"; $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { pow(2, 16); } echo "Pow function: " . (microtime(true) - $start) . "\n";
Output for 7.4.0
Pow operator: 0.09856915473938 Pow function: 0.49055886268616
Output for 7.3.12
Pow operator: 0.091529130935669 Pow function: 0.52085208892822
Output for 7.3.11
Pow operator: 0.11722183227539 Pow function: 0.50213003158569
Output for 7.3.10
Pow operator: 0.10240602493286 Pow function: 0.38045215606689
Output for 7.3.9
Pow operator: 0.10177707672119 Pow function: 0.46259498596191
Output for 7.3.8
Pow operator: 0.10167598724365 Pow function: 0.51784086227417
Output for 7.3.7
Pow operator: 0.087085962295532 Pow function: 0.38136386871338
Output for 7.3.6
Pow operator: 0.11531496047974 Pow function: 0.50872802734375
Output for 7.3.5
Pow operator: 0.11423897743225 Pow function: 0.49732899665833
Output for 7.3.4
Pow operator: 0.10923600196838 Pow function: 0.51141500473022
Output for 7.3.3
Pow operator: 0.10537695884705 Pow function: 0.47098207473755
Output for 7.3.2
Pow operator: 0.11465716362 Pow function: 0.42541599273682
Output for 7.3.1
Pow operator: 0.10826802253723 Pow function: 0.42622995376587
Output for 7.3.0
Pow operator: 0.072556018829346 Pow function: 0.37330412864685
Output for 7.2.25
Pow operator: 0.12599396705627 Pow function: 0.51610708236694
Output for 7.2.24
Pow operator: 0.12499308586121 Pow function: 0.5141761302948
Output for 7.2.23
Pow operator: 0.079879999160767 Pow function: 0.42078804969788
Output for 7.2.22
Pow operator: 0.12109994888306 Pow function: 0.51405906677246
Output for 7.2.21
Pow operator: 0.071403026580811 Pow function: 0.4235520362854
Output for 7.2.20
Pow operator: 0.11047506332397 Pow function: 0.56098198890686
Output for 7.2.19
Pow operator: 0.11784100532532 Pow function: 0.51886510848999
Output for 7.2.18
Pow operator: 0.11187195777893 Pow function: 0.46974301338196
Output for 7.2.17
Pow operator: 0.095618963241577 Pow function: 0.41794800758362
Output for 7.2.16
Pow operator: 0.12074303627014 Pow function: 0.42117786407471
Output for 7.2.15
Pow operator: 0.11640000343323 Pow function: 0.40728211402893
Output for 7.2.14
Pow operator: 0.1139349937439 Pow function: 0.42304301261902
Output for 7.2.13
Pow operator: 0.11283493041992 Pow function: 0.38860607147217
Output for 7.2.12
Pow operator: 0.18739199638367 Pow function: 0.42262506484985
Output for 7.2.11
Pow operator: 0.13738298416138 Pow function: 0.60544610023499
Output for 7.2.10
Pow operator: 0.13466477394104 Pow function: 0.45053291320801
Output for 7.2.9
Pow operator: 0.11383390426636 Pow function: 0.42461204528809
Output for 7.2.8
Pow operator: 0.10907006263733 Pow function: 0.49723815917969
Output for 7.2.7
Pow operator: 0.154944896698 Pow function: 0.43343997001648
Output for 7.2.6
Pow operator: 0.11730313301086 Pow function: 0.39901208877563
Output for 7.2.5
Pow operator: 0.14707708358765 Pow function: 0.41540718078613
Output for 7.2.4
Pow operator: 0.11954593658447 Pow function: 0.41569709777832
Output for 7.2.3
Pow operator: 0.13161015510559 Pow function: 0.50556707382202
Output for 7.2.2
Pow operator: 0.11801505088806 Pow function: 0.51962995529175
Output for 7.2.1
Pow operator: 0.12039995193481 Pow function: 0.39106392860413
Output for 7.2.0
Pow operator: 0.11861491203308 Pow function: 0.43780994415283
Output for 7.1.33
Pow operator: 0.36538696289062 Pow function: 1.7842190265656
Output for 7.1.32
Pow operator: 0.36000895500183 Pow function: 1.6453731060028
Output for 7.1.31
Pow operator: 0.28521203994751 Pow function: 1.6728458404541
Output for 7.1.30
Pow operator: 0.32892084121704 Pow function: 1.7520909309387
Output for 7.1.29
Pow operator: 0.30479907989502 Pow function: 1.4474008083344
Output for 7.1.28
Pow operator: 0.35198903083801 Pow function: 1.5093450546265
Output for 7.1.27
Pow operator: 0.29741096496582 Pow function: 1.329607963562
Output for 7.1.26
Pow operator: 0.31175899505615 Pow function: 1.3790180683136
Output for 7.1.25
Pow operator: 0.15644693374634 Pow function: 1.0151560306549