3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['a' => 1, 'b' => 2, 'c' => 3]; $b = new stdClass(); $b->a = 1; $b->b = 2; $b->c = 3; echo microtime(true); for ($i = 0; $i < 100; $i++) { $a['a']; } echo microtime(true); for ($i = 0; $i < 100; $i++) { $b->a; } echo microtime(true);
Output for 7.1.25, 7.2.3, 7.2.5, 7.2.7, 7.2.9, 7.2.12, 7.3.1
1499416606.00011499416606.00021499416606.0002
Output for 7.2.0 - 7.2.2, 7.2.6, 7.2.8, 7.2.13 - 7.3.0
1499416606.00011499416606.00011499416606.0001
Output for 7.2.4, 7.2.10 - 7.2.11
1499416606.00021499416606.00021499416606.0002
Output for 7.0.10, 7.0.31, 7.1.1, 7.1.13, 7.1.21
1499416606.00291499416606.0031499416606.003
Output for 7.0.0, 7.0.6, 7.0.17, 7.1.20
1499416606.00281499416606.00291499416606.0029
Output for 7.1.19
1499416606.00361499416606.00371499416606.0037
Output for 7.0.4, 7.1.14, 7.1.18
1499416606.00291499416606.00291499416606.0029
Output for 7.1.17
1499416606.00741499416606.00751499416606.0075
Output for 7.1.16
1499416606.00311499416606.00311499416606.0032
Output for 7.1.15
1499416606.00431499416606.00441499416606.0044
Output for 7.0.26, 7.1.12
1499416606.00311499416606.00321499416606.0032
Output for 7.1.11
1499416606.00561499416606.00571499416606.0057
Output for 7.1.10
1499416606.00411499416606.00721499416606.0073
Output for 7.1.9
1499416606.00291499416606.0031499416606.0031
Output for 7.1.8
1499416606.00351499416606.00361499416606.0036
Output for 7.1.7
1499416606.00431499416606.00911499416606.0092
Output for 7.1.6
1499416606.01941499416606.01951499416606.0195
Output for 7.1.5
1499416606.01931499416606.01931499416606.0193
Output for 7.1.4
1499416606.02861499416606.02871499416606.0288
Output for 7.1.3
1499416606.02191499416606.0221499416606.022
Output for 7.1.2
1499416606.0211499416606.02111499416606.0212
Output for 7.1.0
1499416606.00471499416606.00471499416606.0048
Output for 7.0.30
1499416606.00311499416606.00311499416606.0031
Output for 7.0.29
1499416606.00411499416606.00421499416606.0042
Output for 7.0.28
1499416606.0041499416606.00421499416606.0042
Output for 7.0.3, 7.0.8, 7.0.12, 7.0.15 - 7.0.16, 7.0.18, 7.0.21, 7.0.24, 7.0.27
1499416606.00271499416606.00281499416606.0028
Output for 7.0.25
1499416606.00291499416606.00291499416606.003
Output for 7.0.23
1499416606.0031499416606.0031499416606.003
Output for 7.0.22
1499416606.00281499416606.00291499416606.003
Output for 7.0.20
1499416606.00331499416606.00341499416606.0034
Output for 7.0.19
1499416606.00281499416606.00281499416606.0029
Output for 7.0.14
1499416606.00281499416606.00281499416606.0028
Output for 7.0.13
1499416606.00341499416606.00341499416606.0035
Output for 7.0.11
1499416606.00441499416606.00451499416606.0045
Output for 7.0.9
1499416606.00271499416606.00271499416606.0028
Output for 7.0.7
1499416606.0031499416606.00311499416606.0031
Output for 7.0.5
1499416606.00341499416606.00351499416606.0035
Output for 7.0.2
1499416606.00481499416606.00491499416606.0049
Output for 7.0.1
1499416606.00271499416606.00271499416606.0027
Output for hhvm-3.22.0
1499416606.20731499416606.20741499416606.2074
Output for hhvm-3.21.3
1499416606.24331499416606.24341499416606.2435
Output for hhvm-3.21.0
1499416606.24011499416606.24021499416606.2402
Output for hhvm-3.20.2
1535191954.79671535191954.79681535191954.7968
Output for hhvm-3.19.2
1535191955.40331535191955.40331535191955.4034
Output for hhvm-3.18.5
1499416606.19921499416606.20291499416606.203
Output for hhvm-3.18.4
1499416606.22491499416606.22751499416606.2276
Output for hhvm-3.15.4
1499416606.17851499416606.17861499416606.1786
Output for 5.6.30
1499416606.00611499416606.00611499416606.0062