3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0;$i<10000000;$i++) { } $data = getrusage(); echo "User time: ". ($data['ru_utime.tv_sec'] + $data['ru_utime.tv_usec'] / 1000000); echo "System time: ". ($data['ru_stime.tv_sec'] + $data['ru_stime.tv_usec'] / 1000000);
Output for 7.1.0
User time: 0.186666System time: 0.003333
Output for 7.0.14
User time: 0.183333System time: 0.003333
Output for 7.0.12
User time: 0.143333System time: 0.009999
Output for 7.0.8
User time: 0.176666System time: 0.026666
Output for 7.0.7
User time: 0.163333System time: 0.063333
Output for 7.0.6
User time: 0.143333System time: 0.059999
Output for 7.0.5
User time: 0.153333System time: 0.033333
Output for 7.0.4
User time: 0.189999System time: 0.016666
Output for 7.0.3
User time: 0.189999System time: 0.009999
Output for 7.0.2
User time: 0.166666System time: 0.016666
Output for 7.0.1
User time: 0.169999System time: 0.006666
Output for 7.0.0
User time: 0.173333System time: 0.006666
Output for hhvm-3.12.0
User time: 0.439999System time: 0.046666
Output for hhvm-3.10.0
User time: 0.476666System time: 0.036666
Output for 5.6.28
User time: 0.449999System time: 0
Output for 5.6.23
User time: 0.319999System time: 0.013333
Output for 5.6.22
User time: 0.273333System time: 0.009999
Output for 5.6.21
User time: 0.286666System time: 0.003333
Output for 5.5.34, 5.6.1, 5.6.20
User time: 0.313333System time: 0.009999
Output for 5.6.19
User time: 0.323333System time: 0.016666
Output for 5.4.3, 5.6.18
User time: 0.303333System time: 0.003333
Output for 5.6.17
User time: 0.293333System time: 0.006666
Output for 5.6.16
User time: 0.303333System time: 0.016666
Output for 5.4.19, 5.6.15
User time: 0.326666System time: 0.003333
Output for 5.6.14
User time: 0.273333System time: 0.003333
Output for 5.6.13
User time: 0.273333System time: 0
Output for 5.6.12
User time: 0.229999System time: 0
Output for 5.6.11
User time: 0.243333System time: 0
Output for 5.6.10
User time: 0.269999System time: 0
Output for 5.6.9
User time: 0.249999System time: 0.009999
Output for 5.4.31, 5.5.4, 5.5.26, 5.6.8
User time: 0.253333System time: 0.003333
Output for 5.6.7
User time: 0.256666System time: 0
Output for 5.6.6
User time: 0.306666System time: 0.006666
Output for 5.6.5
User time: 0.253333System time: 0.006666
Output for 5.4.4, 5.6.4
User time: 0.306666System time: 0.003333
Output for 5.6.3
User time: 0.303333System time: 0.009999
Output for 5.6.2
User time: 0.259999System time: 0.006666
Output for 5.6.0
User time: 0.316666System time: 0.016666
Output for 5.4.26, 5.5.20, 5.5.37
User time: 0.299999System time: 0.006666
Output for 5.5.36
User time: 0.323333System time: 0.009999
Output for 5.4.6, 5.5.35
User time: 0.296666System time: 0.006666
Output for 5.5.33
User time: 0.303333System time: 0.006666
Output for 5.5.32
User time: 0.339999System time: 0.006666
Output for 5.3.23, 5.5.31
User time: 0.299999System time: 0.003333
Output for 5.5.30
User time: 0.256666System time: 0.003333
Output for 5.4.42, 5.5.29
User time: 0.249999System time: 0.006666
Output for 5.5.28
User time: 0.223333System time: 0.006666
Output for 5.4.43, 5.5.27
User time: 0.219999System time: 0.006666
Output for 5.4.23, 5.5.25
User time: 0.283333System time: 0.003333
Output for 5.5.24
User time: 0.213333System time: 0
Output for 5.5.23
User time: 0.293333System time: 0.009999
Output for 5.5.22
User time: 0.296666System time: 0.013333
Output for 5.5.21
User time: 0.259999System time: 0.009999
Output for 5.5.19
User time: 0.319999System time: 0.003333
Output for 5.5.0, 5.5.18
User time: 0.313333System time: 0.003333
Output for 5.5.16
User time: 0.329999System time: 0.013333
Output for 5.4.37, 5.5.15
User time: 0.316666System time: 0.003333
Output for 5.4.41, 5.5.14
User time: 0.246666System time: 0.003333
Output for 5.5.13
User time: 0.299999System time: 0
Output for 5.5.12
User time: 0.323333System time: 0.013333
Output for 5.3.29, 5.4.20, 5.5.11
User time: 0.309999System time: 0.003333
Output for 5.5.10
User time: 0.266666System time: 0.006666
Output for 5.5.6, 5.5.9
User time: 0.303333System time: 0.013333
Output for 5.5.8
User time: 0.259999System time: 0
Output for 5.5.7
User time: 0.349999System time: 0.003333
Output for 5.3.0, 5.3.24, 5.5.5
User time: 0.363333System time: 0.006666
Output for 5.5.3
User time: 0.336666System time: 0
Output for 5.5.2
User time: 0.296666System time: 0.003333
Output for 5.5.1
User time: 0.333333System time: 0.006666
Output for 5.4.45
User time: 0.243333System time: 0.006666
Output for 5.4.44
User time: 0.209999System time: 0
Output for 5.4.40
User time: 0.246666System time: 0.006666
Output for 5.4.39
User time: 0.323333System time: 0.006666
Output for 5.4.34, 5.4.38
User time: 0.319999System time: 0.006666
Output for 5.4.18, 5.4.28, 5.4.36
User time: 0.309999System time: 0.006666
Output for 5.4.25, 5.4.27, 5.4.35
User time: 0.289999System time: 0.009999
Output for 5.4.32
User time: 0.346666System time: 0
Output for 5.4.30
User time: 0.216666System time: 0.003333
Output for 5.4.29
User time: 0.276666System time: 0.006666
Output for 5.4.5, 5.4.24
User time: 0.309999System time: 0.013333
Output for 5.4.12, 5.4.22
User time: 0.253333System time: 0
Output for 5.4.21
User time: 0.263333System time: 0.029999
Output for 5.4.17
User time: 0.353333System time: 0
Output for 5.4.16
User time: 0.289999System time: 0.016666
Output for 5.4.15
User time: 0.286666System time: 0
Output for 5.4.14
User time: 0.316666System time: 0.006666
Output for 5.4.13
User time: 0.269999System time: 0.006666
Output for 5.4.11
User time: 0.339999System time: 0
Output for 5.4.10
User time: 0.333333System time: 0.003333
Output for 5.4.9
User time: 0.289999System time: 0.006666
Output for 5.4.8
User time: 0.316666System time: 0
Output for 5.4.7
User time: 0.313333System time: 0.006666
Output for 5.4.2
User time: 0.293333System time: 0.003333
Output for 5.4.1
User time: 0.296666System time: 0
Output for 5.4.0
User time: 0.279999System time: 0.016666
Output for 5.3.28
User time: 0.296666System time: 0.039999
Output for 5.3.18, 5.3.27
User time: 0.376666System time: 0.003333
Output for 5.3.26
User time: 0.356666System time: 0.003333
Output for 5.3.25
User time: 0.366666System time: 0.009999
Output for 5.3.22
User time: 0.386666System time: 0.003333
Output for 5.3.21
User time: 0.369999System time: 0.006666
Output for 5.3.20
User time: 0.346666System time: 0.003333
Output for 5.3.19
User time: 0.419999System time: 0.003333
Output for 5.3.17
User time: 0.353333System time: 0.013333
Output for 5.3.16
User time: 0.416666System time: 0
Output for 5.1.0, 5.3.15
User time: 0.329999System time: 0.003333
Output for 5.3.14
User time: 0.366666System time: 0.003333
Output for 5.3.13
User time: 0.379999System time: 0.006666
Output for 5.3.12
User time: 0.366666System time: 0
Output for 5.3.11
User time: 0.313333System time: 0
Output for 5.3.10
User time: 0.369999System time: 0.016666
Output for 5.3.9
User time: 0.343333System time: 0.016666
Output for 5.1.5, 5.3.8
User time: 0.363333System time: 0.003333
Output for 5.3.7
User time: 0.373333System time: 0.016666
Output for 5.3.6
User time: 0.346666System time: 0.009999
Output for 5.3.5
User time: 0.393333System time: 0.006666
Output for 5.3.4
User time: 0.389999System time: 0.009999
Output for 5.3.3
User time: 0.346666System time: 0.006666
Output for 5.3.2
User time: 0.359999System time: 0.009999
Output for 5.3.1
User time: 0.389999System time: 0
Output for 5.2.17
User time: 0.463333System time: 0.009999
Output for 5.2.16
User time: 0.393333System time: 0
Output for 5.2.15
User time: 0.473333System time: 0.003333
Output for 5.2.14
User time: 0.476666System time: 0.003333
Output for 5.2.13
User time: 0.459999System time: 0.009999
Output for 5.2.12
User time: 0.466666System time: 0.006666
Output for 5.2.11
User time: 0.373333System time: 0.003333
Output for 5.2.10
User time: 0.433333System time: 0.009999
Output for 5.2.9
User time: 0.433333System time: 0
Output for 5.2.8
User time: 0.379999System time: 0.026666
Output for 5.2.7
User time: 0.409999System time: 0.006666
Output for 5.2.6
User time: 0.449999System time: 0.009999
Output for 5.2.5
User time: 0.456666System time: 0
Output for 5.2.4
User time: 0.453333System time: 0
Output for 5.2.3
User time: 0.433333System time: 0.006666
Output for 5.2.2
User time: 0.449999System time: 0.003333
Output for 5.2.1
User time: 0.439999System time: 0.006666
Output for 5.2.0
User time: 0.463333System time: 0.003333
Output for 5.1.6
User time: 0.479999System time: 0.009999
Output for 5.1.4
User time: 0.323333System time: 0.003333
Output for 5.1.3
User time: 0.333333System time: 0
Output for 5.1.2
User time: 0.373333System time: 0
Output for 5.1.1
User time: 0.323333System time: 0
Output for 5.0.5
User time: 0.736666System time: 0
Output for 5.0.4
User time: 0.866666System time: 0.003333
Output for 5.0.3
User time: 0.839999System time: 0.003333
Output for 5.0.2
User time: 0.846666System time: 0
Output for 5.0.1
User time: 0.673333System time: 0
Output for 5.0.0
User time: 0.703333System time: 0.006666
Output for 4.4.4, 4.4.9
User time: 0.763333System time: 0
Output for 4.4.8
User time: 0.813333System time: 0
Output for 4.4.7
User time: 0.836666System time: 0.009999
Output for 4.4.6
User time: 0.816666System time: 0
Output for 4.4.5
User time: 0.726666System time: 0
Output for 4.4.3
User time: 0.666666System time: 0.003333
Output for 4.4.2
User time: 0.696666System time: 0.003333
Output for 4.4.1
User time: 0.643333System time: 0
Output for 4.4.0
User time: 0.703333System time: 0.003333
Output for 4.3.11
User time: 0.679999System time: 0.119999
Output for 4.3.10
User time: 0.869999System time: 0.003333
Output for 4.3.9
User time: 0.793333System time: 0.003333
Output for 4.3.8
User time: 0.699999System time: 0
Output for 4.3.7
User time: 0.856666System time: 0
Output for 4.3.6
User time: 0.833333System time: 0.003333
Output for 4.3.5
User time: 0.639999System time: 0
Output for 4.3.4
User time: 0.593333System time: 0.003333
Output for 4.3.3
User time: 0.636666System time: 0.003333
Output for 4.3.0, 4.3.2
User time: 0.796666System time: 0
Output for 4.3.1
User time: 0.776666System time: 0