3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(1); for($i = 0; $i < 10000000; $i++) { $b = $i; } echo round(array_sum(explode(' ', microtime())) - array_sum(explode(' ', $start)), 3);
based on KaHoA
Output for 7.1.0
0.05
Output for 7.0.14
0.134
Output for 7.0.3 - 7.0.4, 7.0.6
0.108
Output for 7.0.5
0.12
Output for 7.0.2
0.13
Output for 7.0.1
0.128
Output for 7.0.0
0.116
Output for 5.6.28
-0.348
Output for 5.4.36, 5.6.21
0.418
Output for 5.4.8, 5.6.20
0.42
Output for 5.4.18, 5.6.19
0.385
Output for 5.6.18
0.384
Output for 5.6.17
0.393
Output for 5.4.39, 5.4.42, 5.6.16
0.456
Output for 5.4.30, 5.6.15
0.413
Output for 5.6.10, 5.6.14
0.444
Output for 5.4.24, 5.6.13
0.406
Output for 5.4.7, 5.4.12, 5.6.12
0.417
Output for 5.6.11
0.387
Output for 5.4.5, 5.6.9
0.41
Output for 5.6.8
0.434
Output for 5.6.7
0.338
Output for 5.5.35
0.392
Output for 5.5.34
0.394
Output for 5.5.33
0.416
Output for 5.5.32
0.505
Output for 5.4.22, 5.5.31
0.407
Output for 5.5.30
0.414
Output for 5.4.17, 5.4.44, 5.5.29
0.408
Output for 5.5.28
0.391
Output for 5.4.34, 5.4.45, 5.5.27
0.404
Output for 5.4.37, 5.4.43, 5.5.26
0.401
Output for 5.5.25
0.427
Output for 5.5.24
0.403
Output for 5.4.41
0.5
Output for 5.4.29, 5.4.40
0.448
Output for 5.4.38
0.454
Output for 5.4.35
0.423
Output for 5.4.28, 5.4.32
0.383
Output for 5.4.31
0.441
Output for 5.4.27
0.411
Output for 5.4.26
0.409
Output for 5.4.25
0.395
Output for 5.4.2 - 5.4.3, 5.4.23
0.4
Output for 5.4.21
0.48
Output for 5.4.20
0.452
Output for 5.4.19
0.379
Output for 5.4.16
0.421
Output for 5.4.15
0.439
Output for 5.4.14
0.389
Output for 5.4.13
0.455
Output for 5.3.14, 5.4.11
0.491
Output for 5.4.10
0.415
Output for 5.4.0, 5.4.9
0.419
Output for 5.4.6
0.405
Output for 5.4.4
0.412
Output for 5.4.1
0.428
Output for 5.3.27, 5.3.29
0.472
Output for 5.3.28
0.533
Output for 5.3.4, 5.3.21, 5.3.26
0.493
Output for 5.3.25
0.465
Output for 5.3.2, 5.3.24
0.469
Output for 5.3.16, 5.3.23
0.55
Output for 5.3.22
0.482
Output for 5.3.20
0.521
Output for 5.3.19
0.487
Output for 5.3.18
0.534
Output for 5.3.17
0.483
Output for 5.3.15
0.507
Output for 5.3.13
0.536
Output for 5.3.12
0.527
Output for 5.3.11
0.467
Output for 5.3.10
0.488
Output for 5.3.9
0.47
Output for 5.3.8
0.542
Output for 5.3.7
0.496
Output for 5.3.6
0.545
Output for 5.3.5
0.489
Output for 5.3.3
0.54
Output for 5.3.1
0.457
Output for 5.3.0
0.498
Output for 5.2.17
0.638
Output for 5.2.16
0.608
Output for 5.2.15
0.802
Output for 5.1.0, 5.2.7, 5.2.9, 5.2.14
0.644
Output for 5.2.13
0.598
Output for 5.2.11 - 5.2.12
0.634
Output for 5.2.10
0.737
Output for 5.2.8
0.649
Output for 5.2.6
0.636
Output for 5.2.5
0.639
Output for 5.2.2, 5.2.4
0.648
Output for 5.2.3
0.633
Output for 5.2.1
0.605
Output for 5.2.0
0.652
Output for 5.1.6
0.642
Output for 5.1.5
0.595
Output for 5.1.4
0.679
Output for 5.1.3
0.601
Output for 5.1.2
0.592
Output for 5.1.1
0.578
Output for 5.0.5
1.498
Output for 5.0.4
1.584
Output for 5.0.3
1.434
Output for 5.0.2
1.356
Output for 5.0.1
1.888
Output for 5.0.0
1.373
Output for 4.4.9
1.381
Output for 4.4.8
1.499
Output for 4.4.7
1.627
Output for 4.4.6
1.749
Output for 4.4.5
1.394
Output for 4.4.4
1.455
Output for 4.4.3
1.309
Output for 4.4.2
1.393
Output for 4.4.1
1.401
Output for 4.4.0
1.342
Output for 4.3.11
1.415
Output for 4.3.10
1.284
Output for 4.3.9
1.38
Output for 4.3.8
1.429
Output for 4.3.7
1.411
Output for 4.3.6
1.317
Output for 4.3.5
1.34
Output for 4.3.4
1.774
Output for 4.3.3
1.905
Output for 4.3.2
1.323
Output for 4.3.1
1.275
Output for 4.3.0
1.331