3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = null; $time = microtime(true); for ($i = 0; $i < 10000000; $i++) { $test = is_null($null); } $time1 = microtime(true); for ($i = 0; $i < 10000000; $i++) { $test = null === $null; } $time2 = microtime(true); echo 'is_null: '.($time1 - $time)."\n===: ".($time2 - $time1);
Output for 7.2.0
is_null: 0.15306615829468 ===: 0.17377996444702
Output for 7.1.7
is_null: 0.14208889007568 ===: 0.13151907920837
Output for 7.1.6
is_null: 0.20152401924133 ===: 0.13263511657715
Output for 7.1.5
is_null: 0.19161009788513 ===: 0.13858580589294
Output for 7.1.0
is_null: 0.18836998939514 ===: 0.13241696357727
Output for 7.0.20
is_null: 0.18837690353394 ===: 0.19004106521606
Output for 7.0.6
is_null: 0.22690010070801 ===: 0.2171618938446
Output for 7.0.5
is_null: 0.21471095085144 ===: 0.2110321521759
Output for 7.0.4
is_null: 0.22170209884644 ===: 0.21421194076538
Output for 7.0.3
is_null: 0.20292401313782 ===: 0.21551513671875
Output for 7.0.2
is_null: 0.21097922325134 ===: 0.22106099128723
Output for 7.0.1
is_null: 0.25149202346802 ===: 0.21026301383972
Output for 7.0.0
is_null: 0.31889009475708 ===: 0.24362301826477
Output for 5.6.28
is_null: 0.048042058944702 ===: 1.388032913208
Output for 5.6.21
is_null: 1.1986701488495 ===: 0.49925994873047
Output for 5.6.20
is_null: 1.2554790973663 ===: 0.4447968006134
Output for 5.6.19
is_null: 1.3375680446625 ===: 0.47427487373352
Output for 5.6.18
is_null: 1.1903078556061 ===: 0.42819809913635
Output for 5.6.17
is_null: 1.1472051143646 ===: 0.45889401435852
Output for 5.6.16
is_null: 1.3221781253815 ===: 0.48593688011169
Output for 5.6.15
is_null: 1.2888388633728 ===: 0.4626190662384
Output for 5.6.14
is_null: 1.1605999469757 ===: 0.42793989181519
Output for 5.6.13
is_null: 1.145859003067 ===: 0.44989705085754
Output for 5.6.12
is_null: 1.3462741374969 ===: 0.46980285644531
Output for 5.6.11
is_null: 1.3152189254761 ===: 0.49088716506958
Output for 5.6.10
is_null: 1.7150931358337 ===: 0.49367094039917
Output for 5.5.0 - 5.5.15, 5.5.18, 5.5.20 - 5.5.26, 5.6.4 - 5.6.9

Process exited with code 137.
Output for 5.6.3
is_null: 1.5587010383606 ===: 0.58746790885925
Output for 5.6.2
is_null: 1.8404431343079 ===: 0.47812485694885
Output for 5.6.1
is_null: 1.3063161373138 ===: 0.4586808681488
Output for 5.6.0
is_null: 1.4073011875153 ===: 0.51058387756348
Output for 5.5.35
is_null: 1.2525720596313 ===: 0.7054181098938
Output for 5.5.34
is_null: 1.3681581020355 ===: 0.43474698066711
Output for 5.5.33
is_null: 1.2384068965912 ===: 0.43918704986572
Output for 5.5.32
is_null: 1.1914780139923 ===: 0.43408894538879
Output for 5.5.31
is_null: 1.237035036087 ===: 0.43206191062927
Output for 5.5.30
is_null: 1.2521820068359 ===: 0.47081780433655
Output for 5.5.29
is_null: 1.4052841663361 ===: 0.61535787582397
Output for 5.5.28
is_null: 1.3501899242401 ===: 0.65400004386902
Output for 5.5.27
is_null: 1.3936669826508 ===: 0.54060888290405
Output for 5.5.19
is_null: 1.5878558158875 ===: 0.47870111465454
Output for 5.5.16
is_null: 1.6039550304413 ===: 0.68168497085571

preferences:
78.35 ms | 401 KiB | 76 Q