3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr=array('tf'=>function(){return $_SERVER['REQUEST_TIME'];}); var_dump($arr); echo $arr['tf']();
Output for 5.6.28, 7.0.20 - 7.2.0
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225281
Output for 7.0.6
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1462295419
Output for 7.0.5
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1459661593
Output for 7.0.4
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1457634221
Output for 7.0.3
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1458329906
Output for 7.0.2
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1458697608
Output for 7.0.1
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1458796627
Output for 7.0.0
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1459059167
Output for 5.6.21
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1462191543
Output for 5.6.20
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1460262786
Output for 5.6.19
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1457404527
Output for 5.6.18
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1458041010
Output for 5.6.17
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1458428314
Output for 5.6.16
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1459148397
Output for 5.6.15
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1459237859
Output for 5.6.14
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1459589971
Output for 5.6.13
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1460729367
Output for 5.6.12
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461127054
Output for 5.6.11
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461495659
Output for 5.6.10
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461589425
Output for 5.6.9
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461780792
Output for 5.6.8
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461985532
Output for 5.5.35
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1463948790
Output for 5.5.34
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1460357070
Output for 5.5.33
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1457501006
Output for 5.5.32
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1458227692
Output for 5.5.31
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1458525781
Output for 5.5.30
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1459503842
Output for 5.5.29
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1460867398
Output for 5.5.28
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461225138
Output for 5.5.27
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461317803
Output for 5.5.26
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461685561
Output for 5.5.25
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1461884784
Output for 5.5.24
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1464100784
Output for 5.4.45
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225284
Output for 5.4.44
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225285
Output for 5.4.43
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225286
Output for 5.4.41 - 5.4.42
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225287
Output for 5.4.39 - 5.4.40
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225288
Output for 5.4.37 - 5.4.38
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225289
Output for 5.4.34 - 5.4.36
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225290
Output for 5.3.29, 5.4.31 - 5.4.32
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225291
Output for 5.4.27 - 5.4.30
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225292
Output for 5.4.23 - 5.4.26
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225293
Output for 5.3.28, 5.4.20 - 5.4.22
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225294
Output for 5.3.27, 5.4.17 - 5.4.19
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225295
Output for 5.3.24 - 5.3.26, 5.4.13 - 5.4.16
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225296
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.12
array(1) { ["tf"]=> object(Closure)#1 (0) { } } 1448225297