3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$a = 1; $time=microtime(true);for($x=0;$x<100000;$x++){ $b = is_null($a);} round(microtime(true)-$time, 5)."\n"; $a = 1; $time=microtime(true);for($x=0;$x<100000;$x++){ $b = ($a === null);} echo round(microtime(true)-$time, 5)."\n";;
Output for 7.1.0
0.00125
Output for 7.0.14
0.00221
Output for 7.0.11
0.00204
Output for 7.0.10
0.00211
Output for 7.0.9
0.00215
Output for 7.0.8
0.00207
Output for 7.0.7
0.00165
Output for 7.0.6
0.00225
Output for 7.0.5
0.00208
Output for 7.0.4
0.00185
Output for 7.0.3
0.00216
Output for 7.0.2
0.00192
Output for 7.0.1
0.00188
Output for 7.0.0
0.0019
Output for hhvm-3.13.2
0.00599
Output for hhvm-3.12.0
0.00624
Output for hhvm-3.10.0
0.00739
Output for 5.6.28
0.00946
Output for 5.6.26
0.00335
Output for 5.6.25
0.0039
Output for 5.6.24
0.00392
Output for 5.3.1, 5.6.23
0.00407
Output for 5.3.2, 5.6.22
0.00421
Output for 5.3.0, 5.6.21
0.00448
Output for 5.6.1, 5.6.20
0.00428
Output for 5.5.2, 5.6.19
0.00383
Output for 5.6.18
0.0045
Output for 5.6.17
0.00429
Output for 5.6.16
0.00607
Output for 5.6.2, 5.6.15
0.0047
Output for 5.6.14
0.00348
Output for 5.6.13
0.00283
Output for 5.6.12
0.00352
Output for 5.4.29, 5.6.11
0.00445
Output for 5.6.10
0.00292
Output for 5.6.9
0.00284
Output for 5.4.14, 5.6.8
0.00375
Output for 5.6.7
0.00285
Output for 5.6.6
0.00315
Output for 5.5.10, 5.5.18, 5.6.5
0.00467
Output for 5.4.31, 5.5.15, 5.6.4
0.00389
Output for 5.6.3
0.00457
Output for 5.5.27, 5.6.0
0.00452
Output for 5.5.38
0.00468
Output for 5.5.37
0.00458
Output for 5.5.36
0.00408
Output for 5.5.35
0.00336
Output for 5.5.34
0.00491
Output for 5.5.33
0.00438
Output for 5.4.18, 5.5.6, 5.5.32
0.00433
Output for 5.5.31
0.00439
Output for 5.4.25, 5.5.30
0.00425
Output for 5.4.39, 5.5.29
0.00447
Output for 5.5.28
0.00301
Output for 5.5.26
0.00373
Output for 5.5.25
0.00311
Output for 5.4.9, 5.5.24
0.00475
Output for 5.5.0, 5.5.23
0.00362
Output for 5.5.22
0.0035
Output for 5.5.21
0.0044
Output for 5.5.20
0.00423
Output for 5.5.19
0.00505
Output for 5.5.16
0.00476
Output for 5.4.19, 5.5.14
0.00415
Output for 5.5.13
0.00495
Output for 5.5.12
0.00416
Output for 5.4.37, 5.5.1, 5.5.8, 5.5.11
0.00444
Output for 5.5.9
0.00322
Output for 5.5.7
0.00501
Output for 5.5.5
0.00459
Output for 5.5.4
0.00473
Output for 5.5.3
0.00417
Output for 5.4.7, 5.4.45
0.00287
Output for 5.4.44
0.0033
Output for 5.4.43
0.00374
Output for 5.4.42
0.00297
Output for 5.4.41
0.00275
Output for 5.4.40
0.00258
Output for 5.4.38
0.00497
Output for 5.4.36
0.00313
Output for 5.4.35
0.00503
Output for 5.3.11 - 5.3.12, 5.4.34
0.00396
Output for 5.4.32
0.00325
Output for 5.4.30
0.00474
Output for 5.4.28
0.00312
Output for 5.4.27
0.00498
Output for 5.4.17, 5.4.26
0.00472
Output for 5.4.24
0.00469
Output for 5.4.23
0.00384
Output for 5.4.22
0.00456
Output for 5.4.21
0.00377
Output for 5.4.20
0.00395
Output for 5.4.16
0.00494
Output for 5.4.15
0.0048
Output for 5.4.13
0.0041
Output for 5.4.12
0.00424
Output for 5.4.11
0.00454
Output for 5.4.10
0.00526
Output for 5.4.8
0.00291
Output for 5.4.6
0.00294
Output for 5.4.5
0.00376
Output for 5.4.4
0.00328
Output for 5.4.3
0.00304
Output for 5.4.2
0.00303
Output for 5.4.1
0.00316
Output for 5.4.0
0.00338
Output for 5.3.5, 5.3.29
0.00535
Output for 5.3.28
0.00649
Output for 5.3.27
0.00583
Output for 5.3.26
0.00531
Output for 5.3.25
0.00674
Output for 5.3.24
0.0069
Output for 5.3.23
0.00585
Output for 5.3.22
0.0058
Output for 5.3.21
0.00568
Output for 5.3.20
0.00733
Output for 5.3.19
0.00639
Output for 5.3.14, 5.3.18
0.00405
Output for 5.3.17
0.00451
Output for 5.3.16
0.00511
Output for 5.3.15
0.00418
Output for 5.3.13
0.00489
Output for 5.3.10
0.00434
Output for 5.3.9
0.0049
Output for 5.3.8
0.00645
Output for 5.3.7
0.0037
Output for 5.2.2, 5.3.6
0.00556
Output for 5.3.4
0.00725
Output for 5.3.3
0.00411
Output for 5.2.17
0.0053
Output for 5.2.16
0.00925
Output for 5.2.15
0.00872
Output for 5.2.14
0.00732
Output for 5.2.13
0.00598
Output for 5.2.12
0.00487
Output for 5.2.11
0.00523
Output for 5.2.10
0.00863
Output for 5.2.9
0.00566
Output for 5.2.8
0.00807
Output for 5.2.7
0.00931
Output for 5.2.6
0.00647
Output for 5.2.5
0.0054
Output for 5.2.4
0.00557
Output for 5.2.3
0.00806
Output for 5.2.1
0.00591
Output for 5.2.0
0.00844
Output for 5.1.6
0.00614
Output for 5.1.5
0.00606
Output for 5.1.4
0.0106
Output for 5.1.3
0.00565
Output for 5.1.2
0.01058
Output for 5.1.1
0.00661
Output for 5.1.0
0.00776
Output for 5.0.5
0.01689
Output for 5.0.4
0.01619
Output for 5.0.3
0.01617
Output for 5.0.2
0.01657
Output for 5.0.1
0.01569
Output for 5.0.0
0.02399
Output for 4.4.9
0.01513
Output for 4.4.8
0.01805
Output for 4.4.7
0.01701
Output for 4.4.6
0.0216
Output for 4.4.5
0.02031
Output for 4.4.4
0.02397
Output for 4.4.3
0.01815
Output for 4.4.2
0.01575
Output for 4.4.1
0.0171
Output for 4.4.0
0.01964
Output for 4.3.11
0.01769
Output for 4.3.10
0.01533
Output for 4.3.9
0.02623
Output for 4.3.8
0.01562
Output for 4.3.7
0.02805
Output for 4.3.6
0.02129
Output for 4.3.5
0.02963
Output for 4.3.4
0.03349
Output for 4.3.3
0.02672
Output for 4.3.2
0.02707
Output for 4.3.1
0.02908
Output for 4.3.0
0.02993