3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dat = getrusage(); echo $dat["ru_nswap"]; // number of swaps echo "\n"; echo $dat["ru_majflt"]; // number of page faults echo "\n"; echo $dat["ru_utime.tv_sec"]; // user time used (seconds) echo "\n"; echo $dat["ru_utime.tv_usec"]; echo "\n";
based on obKaX
Output for 7.2.0
0 0 0 13676
Output for 7.1.10
0 0 0 6170
Output for 7.1.7
0 0 0 2998
Output for 7.1.6
0 0 0 10506
Output for 7.1.5
0 0 0 15623
Output for 5.5.24, 5.5.31, 5.6.15, 5.6.28, 7.0.6, 7.1.0
0 0 0 73333
Output for 7.0.20
0 0 0 6389
Output for 7.0.4, 7.0.14
0 0 0 76666
Output for 5.6.18, 7.0.5
0 0 0 69999
Output for 5.5.34, 5.6.11, 7.0.3
0 0 0 49999
Output for 5.6.14, 5.6.21, 7.0.2
0 0 0 59999
Output for 5.4.39, 5.4.44, 5.5.32, 7.0.1
0 0 0 43333
Output for 5.5.28, 7.0.0
0 0 0 86666
Output for 5.4.35 - 5.4.36, 5.4.45, 5.6.16, 5.6.20
0 0 0 46666
Output for 5.4.40, 5.6.8, 5.6.19
0 0 0 33333
Output for 5.4.37 - 5.4.38, 5.6.17
0 0 0 56666
Output for 5.6.13
0 0 0 83333
Output for 5.4.43, 5.5.29 - 5.5.30, 5.5.33, 5.6.12
0 0 0 39999
Output for 5.5.26, 5.6.10
0 0 0 63333
Output for 5.5.35, 5.6.9
0 0 0 79999
Output for 5.4.41 - 5.4.42, 5.5.27
0 0 0 36666
Output for 5.4.34, 5.5.25
0 0 0 66666
Output for 5.3.1, 5.3.19, 5.3.29, 5.4.14, 5.4.28, 5.4.32
0 0 0 40000
Output for 5.3.6, 5.3.9, 5.3.27, 5.4.15, 5.4.20, 5.4.25, 5.4.31
0 0 0 39000
Output for 5.1.3, 5.3.12, 5.3.18, 5.3.20, 5.3.22 - 5.3.23, 5.3.26, 5.4.2, 5.4.8 - 5.4.9, 5.4.17, 5.4.30
0 0 0 37000
Output for 5.4.29
0 0 0 45000
Output for 5.4.23, 5.4.27
0 0 0 41000
Output for 5.3.13, 5.3.21, 5.3.24, 5.4.16, 5.4.24, 5.4.26
0 0 0 38000
Output for 5.3.4, 5.3.11, 5.3.16 - 5.3.17, 5.3.25, 5.3.28, 5.4.6, 5.4.13, 5.4.22
0 0 0 36000
Output for 5.2.13, 5.3.14, 5.4.1, 5.4.3, 5.4.18, 5.4.21
0 0 0 32000
Output for 5.3.0, 5.3.8, 5.3.10, 5.3.15, 5.4.19
0 0 0 35000
Output for 5.1.5, 5.3.3, 5.4.10 - 5.4.12
0 0 0 34000
Output for 5.3.5, 5.3.7, 5.4.0, 5.4.4 - 5.4.5, 5.4.7
0 0 0 33000
Output for 5.2.7, 5.2.10 - 5.2.11, 5.2.14, 5.2.17, 5.3.2
0 0 0 31000
Output for 5.1.4, 5.2.8 - 5.2.9, 5.2.12, 5.2.15 - 5.2.16
0 0 0 28000
Output for 5.1.2, 5.2.1, 5.2.3, 5.2.6
0 0 0 27000
Output for 5.2.5
0 0 0 29000
Output for 5.2.4
0 0 0 30000
Output for 5.1.0, 5.2.0, 5.2.2
0 0 0 26000
Output for 5.1.6
0 0 0 21000
Output for 5.1.1
0 0 0 22000
Output for 5.0.4 - 5.0.5
0 0 0 19000
Output for 5.0.0, 5.0.3
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 35000
Output for 5.0.2
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 20000
Output for 5.0.1
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 23000
Output for 4.4.9
0 0 0 13000
Output for 4.4.8
0 0 0 15000
Output for 4.4.7
0 0 0 12000
Output for 4.4.6
0 0 0 14000
Output for 4.4.5
0 0 0 17000
Output for 4.4.4
0 0 0 24000
Output for 4.3.11, 4.4.3
0 0 0 16000
Output for 4.4.2
0 0 0 20000
Output for 4.4.1
0 0 0 23000
Output for 4.4.0
0 0 0 25000
Output for 4.3.3, 4.3.10
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 15000
Output for 4.3.5, 4.3.9
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 18000
Output for 4.3.8
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 25000
Output for 4.3.7
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 13000
Output for 4.3.4, 4.3.6
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 22000
Output for 4.3.2
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 16000
Output for 4.3.1
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 17000
Output for 4.3.0
Notice: Undefined index: ru_nswap in /in/CalOI on line 4 0 0 16666