3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = microtime(true); $j = 0; for ($i = 0; $i < 1000000; $i++) { $j+= $i; } echo sprintf('%0.4f', microtime(true) - $s);
Output for 7.1.0
0.0132
Output for 7.0.0, 7.0.14
0.0237
Output for 7.0.10
0.0153
Output for 7.0.9
0.0163
Output for 7.0.8
0.0135
Output for 7.0.7
0.0141
Output for 7.0.6
0.0183
Output for 7.0.5
0.0210
Output for 7.0.4
0.0197
Output for 7.0.3
0.0228
Output for 7.0.2
0.0177
Output for 7.0.1
0.0188
Output for hhvm-3.12.0
0.0719
Output for hhvm-3.10.0
0.0864
Output for 5.6.28
0.0668
Output for 5.6.25
0.0331
Output for 5.6.24
0.0333
Output for 5.6.23
0.0338
Output for 5.6.13, 5.6.22
0.0325
Output for 5.6.21
0.0310
Output for 5.6.20
0.0404
Output for 5.6.19
0.0353
Output for 5.6.18
0.0469
Output for 5.6.17
0.0485
Output for 5.4.41, 5.6.16
0.0419
Output for 5.4.42, 5.6.15
0.0380
Output for 5.6.14
0.0439
Output for 5.6.12
0.0415
Output for 5.6.11
0.0359
Output for 5.6.10
0.0472
Output for 5.5.9, 5.6.9
0.0378
Output for 5.6.8
0.0617
Output for 5.5.0, 5.6.7
0.0411
Output for 5.6.6
0.0390
Output for 5.6.5
0.0387
Output for 5.6.2 - 5.6.4
0.0406
Output for 5.6.1
0.0452
Output for 5.6.0
0.0467
Output for 5.3.1, 5.5.38
0.0371
Output for 5.5.37
0.0297
Output for 5.5.24, 5.5.36
0.0417
Output for 5.5.35
0.0293
Output for 5.5.34
0.0403
Output for 5.5.33
0.0350
Output for 5.5.32
0.0430
Output for 5.5.31
0.0351
Output for 5.5.30
0.0285
Output for 5.5.29
0.0468
Output for 5.5.28
0.0341
Output for 5.5.27
0.0396
Output for 5.5.18, 5.5.26
0.0377
Output for 5.5.1, 5.5.25
0.0471
Output for 5.5.23
0.0431
Output for 5.5.22
0.0482
Output for 5.5.21
0.0410
Output for 5.2.15, 5.5.4, 5.5.20
0.0470
Output for 5.4.15, 5.5.19
0.0315
Output for 5.5.16
0.0498
Output for 5.5.15
0.0487
Output for 5.3.10, 5.5.14
0.0505
Output for 5.5.13
0.0427
Output for 5.5.12
0.0474
Output for 5.4.28, 5.5.11
0.0372
Output for 5.3.11, 5.5.10
0.0373
Output for 5.5.8
0.0392
Output for 5.5.7
0.0408
Output for 5.4.18, 5.5.6
0.0465
Output for 5.5.3, 5.5.5
0.0381
Output for 5.5.2
0.0405
Output for 5.4.45
0.0398
Output for 5.4.30, 5.4.44
0.0454
Output for 5.3.29, 5.4.43
0.0434
Output for 5.4.40
0.0384
Output for 5.4.39
0.0344
Output for 5.4.38
0.0340
Output for 5.4.37
0.0383
Output for 5.4.36
0.0386
Output for 5.4.35
0.0462
Output for 5.4.34
0.0317
Output for 5.3.14, 5.4.32
0.0466
Output for 5.4.31
0.0435
Output for 5.4.29
0.0374
Output for 5.4.27
0.0399
Output for 5.4.17, 5.4.26
0.0424
Output for 5.4.25
0.0401
Output for 5.4.11, 5.4.23 - 5.4.24
0.0423
Output for 5.4.12, 5.4.22
0.0412
Output for 5.4.21
0.0397
Output for 5.4.20
0.0370
Output for 5.4.19
0.0379
Output for 5.4.16
0.0304
Output for 5.1.5, 5.4.14
0.0555
Output for 5.4.13
0.0393
Output for 5.4.10
0.0481
Output for 5.4.9
0.0362
Output for 5.4.8
0.0299
Output for 5.4.6 - 5.4.7
0.0456
Output for 5.4.4 - 5.4.5
0.0296
Output for 5.4.3
0.0483
Output for 5.4.2
0.0414
Output for 5.4.1
0.0438
Output for 5.4.0
0.0477
Output for 5.3.28
0.0501
Output for 5.3.27
0.0508
Output for 5.3.26
0.0559
Output for 5.3.25
0.0550
Output for 5.3.24
0.0461
Output for 5.3.23
0.0484
Output for 5.3.22
0.0409
Output for 5.3.21
0.0445
Output for 5.3.20
0.0426
Output for 5.3.19
0.0573
Output for 5.3.18
0.0576
Output for 5.3.17
0.0526
Output for 5.3.16
0.0512
Output for 5.3.15
0.0570
Output for 5.3.4, 5.3.13
0.0425
Output for 5.3.12
0.0545
Output for 5.3.9
0.0535
Output for 5.3.8
0.0493
Output for 5.3.7
0.0560
Output for 5.3.6
0.0457
Output for 5.3.5
0.0622
Output for 5.3.3
0.0577
Output for 5.3.2
0.0421
Output for 5.3.0
0.0517
Output for 5.2.16 - 5.2.17
0.0685
Output for 5.2.14
0.0763
Output for 5.2.13
0.0663
Output for 5.2.12
0.0528
Output for 5.2.11
0.0480
Output for 5.2.10
0.0785
Output for 5.2.9
0.0781
Output for 5.2.8
0.0718
Output for 5.1.3, 5.2.7
0.0770
Output for 5.2.6
0.0504
Output for 5.1.4, 5.2.5
0.0750
Output for 5.2.4
0.0602
Output for 5.2.3
0.0716
Output for 5.2.2
0.0662
Output for 5.2.1
0.0724
Output for 5.2.0
0.0675
Output for 5.1.6
0.0727
Output for 5.1.2
0.0720
Output for 5.1.1
0.0721
Output for 5.1.0
0.0728
Output for 4.4.0, 5.0.5
0.1647
Output for 5.0.4
0.1527
Output for 5.0.3
0.1315
Output for 5.0.2
0.1591
Output for 5.0.1
0.1699
Output for 5.0.0
0.1410
Output for 4.4.9
0.1583
Output for 4.4.8
0.1499
Output for 4.4.7
0.1707
Output for 4.4.6
0.1852
Output for 4.4.5
0.1547
Output for 4.4.4
0.1456
Output for 4.4.3
0.1478
Output for 4.4.2
0.1497
Output for 4.4.1
0.1623
Output for 4.3.11
0.1528
Output for 4.3.10
0.1724
Output for 4.3.9
0.1619
Output for 4.3.8
0.1763
Output for 4.3.7
0.1550
Output for 4.3.6
0.1871
Output for 4.3.5
0.1396
Output for 4.3.4
0.1659
Output for 4.3.3
0.1766
Output for 4.3.2
0.1868
Output for 4.3.1
0.1544
Output for 4.3.0
0.1219