3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { $a = 1; for($i = 2; $i < 1000000; $i++) { $a += 1 / $i; } return $a; } $start = microtime(TRUE); f(); $end = microtime(TRUE); echo $end - $start, PHP_EOL;
Output for 7.3.1
0.029818058013916
Output for 7.3.0
0.027369022369385
Output for 7.2.13
0.032915830612183
Output for 7.2.12
0.030265092849731
Output for 7.2.11
0.030896902084351
Output for 7.2.10
0.033697128295898
Output for 7.2.9
0.033304929733276
Output for 7.2.8
0.031270027160645
Output for 7.2.7
0.037077903747559
Output for 7.2.6
0.030857086181641
Output for 7.2.5
0.033493995666504
Output for 7.2.4
0.032143831253052
Output for 7.2.3
0.030481815338135
Output for 7.2.2
0.030468940734863
Output for 7.2.1
0.033305168151855
Output for 7.2.0
0.031690120697021
Output for 7.1.25
0.066100120544434
Output for 7.1.21
0.054813146591187
Output for 7.1.20
0.038534879684448
Output for 7.1.19
0.046357870101929
Output for 7.1.18
0.038892030715942
Output for 7.1.17
0.042275190353394
Output for 7.1.16
0.036748886108398
Output for 7.1.15
0.039361000061035
Output for 7.1.14
0.039151906967163
Output for 7.1.13
0.049373149871826
Output for 7.1.12
0.042068958282471
Output for 7.1.11
0.040025949478149
Output for 7.1.10
0.037680864334106
Output for 7.1.9
0.047890901565552
Output for 7.1.8
0.076294898986816
Output for 7.1.7
0.062788963317871
Output for 7.1.6
0.059956073760986
Output for 7.1.5
0.044989824295044
Output for 7.1.4
0.041413068771362
Output for 7.1.3
0.041635990142822
Output for 7.1.2
0.054817914962769
Output for 7.1.1
0.05089807510376
Output for 7.1.0
0.05922794342041

preferences:
34.83 ms | 461 KiB | 5 Q