3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nums = \range(0, 25000); $starts = []; $ends = []; for ($i = 0; $i < 10; ++$i) { $starts[] = \microtime(true); $mout = \array_map(function ($item) { return (string)$item . 'm'; }, $nums); $ends[] = \microtime(true); } $total = 0; for ($i = 0; $i < 10; ++$i) { $total += $ends[$i] * 1000 - $starts[$i] * 1000; } \var_dump(\round($total / 10, 2));
Output for 7.3.5
float(2.3)
Output for 7.3.4
float(2.57)
Output for 7.3.3
float(2.1)
Output for 7.3.2
float(2.79)
Output for 7.0.13, 7.3.1
float(3.09)
Output for 7.3.0
float(3)
Output for 7.2.18
float(2.34)
Output for 7.2.17
float(2.53)
Output for 7.2.16
float(2.09)
Output for 7.1.25, 7.2.15
float(2.87)
Output for 7.2.14
float(2.96)
Output for 7.0.11, 7.2.13
float(2.94)
Output for 7.2.12
float(3.02)
Output for 7.2.11
float(2.63)
Output for 7.1.12, 7.2.10
float(3.17)
Output for 7.2.9
float(3.04)
Output for 7.1.5, 7.2.8
float(3.03)
Output for 7.2.7
float(4.57)
Output for 7.2.6
float(4.98)
Output for 7.2.5
float(3.06)
Output for 7.2.4
float(3.83)
Output for 7.2.3
float(2.88)
Output for 7.2.2
float(3.25)
Output for 7.2.1
float(3.59)
Output for 7.2.0
float(4.63)
Output for 7.1.28
float(4.84)
Output for 7.1.27
float(3.41)
Output for 7.1.22, 7.1.26
float(4.39)
Output for 7.1.24
float(3.75)
Output for 7.1.23
float(4.02)
Output for 7.1.21
float(4.42)
Output for 7.1.17, 7.1.20
float(5.01)
Output for 7.1.19
float(5.61)
Output for 7.1.18
float(3.61)
Output for 7.1.16
float(3.76)
Output for 7.1.15
float(3.93)
Output for 7.1.14
float(3.96)
Output for 7.1.13
float(5.16)
Output for 7.1.11
float(8.01)
Output for 7.1.10
float(3.97)
Output for 7.1.9
float(5.08)
Output for 7.1.8
float(3.24)
Output for 7.1.7
float(3.58)
Output for 7.1.6
float(4.23)
Output for 7.1.4
float(5.33)
Output for 7.1.3
float(4.71)
Output for 7.1.2
float(3.98)
Output for 7.1.1
float(4.14)
Output for 7.1.0
float(2.75)
Output for 7.0.33
float(2.85)
Output for 7.0.22, 7.0.32
float(3.3)
Output for 7.0.31
float(5.19)
Output for 7.0.30
float(17.77)
Output for 7.0.29
float(4.29)
Output for 7.0.28
float(4.74)
Output for 7.0.27
float(3.81)
Output for 7.0.26
float(3.95)
Output for 7.0.25
float(3.77)
Output for 7.0.24
float(3.15)
Output for 7.0.23
float(5.12)
Output for 7.0.21
float(3.73)
Output for 7.0.20
float(5.29)
Output for 7.0.19
float(3.68)
Output for 7.0.18
float(5.34)
Output for 7.0.3, 7.0.17
float(3.47)
Output for 7.0.16
float(4.64)
Output for 7.0.15
float(3.48)
Output for 7.0.14
float(3.46)
Output for 7.0.12
float(3.07)
Output for 7.0.10
float(3.08)
Output for 7.0.9
float(5.39)
Output for 7.0.8
float(6.73)
Output for 7.0.7
float(4.9)
Output for 7.0.6
float(4.44)
Output for 7.0.5
float(3.27)
Output for 7.0.4
float(4.59)
Output for 7.0.2
float(3.5)
Output for 7.0.1
float(23.23)
Output for 7.0.0
float(3.21)
Output for hhvm-3.22.0
float(5.31)
Output for hhvm-3.21.3
float(4.11)
Output for hhvm-3.21.0
float(7.27)
Output for hhvm-3.20.2
float(4.04)
Output for hhvm-3.19.2
float(5.54)
Output for hhvm-3.18.5
float(7.83)
Output for hhvm-3.18.4
float(4.96)
Output for hhvm-3.17.3
float(7.8)
Output for hhvm-3.15.4
float(6.97)
Output for hhvm-3.13.2
float(4.89)
Output for hhvm-3.12.14
float(7.12)
Output for 5.4.39, hhvm-3.11.1
float(9.83)
Output for hhvm-3.10.1
float(6)
Output for 5.6.40
float(11.64)
Output for 5.6.11, 5.6.39
float(10.3)
Output for 5.6.38
float(17.34)
Output for 5.6.37
float(14.61)
Output for 5.6.36
float(11.81)
Output for 5.6.35
float(13.21)
Output for 5.6.34
float(12.82)
Output for 5.6.33
float(11.51)
Output for 5.6.32
float(11.44)
Output for 5.6.31
float(16.98)
Output for 5.6.30
float(11.14)
Output for 5.4.13, 5.6.29
float(11.16)
Output for 5.6.28
float(11.63)
Output for 5.6.27
float(13.17)
Output for 5.6.26
float(10.87)
Output for 5.5.33, 5.6.25
float(10.71)
Output for 5.6.24
float(14.58)
Output for 5.6.15, 5.6.23
float(10.76)
Output for 5.6.22
float(16.07)
Output for 5.6.21
float(10.46)
Output for 5.6.20
float(10.54)
Output for 5.6.19
float(11.65)
Output for 5.6.18
float(10.51)
Output for 5.6.17
float(11.13)
Output for 5.6.16
float(13.07)
Output for 5.4.43, 5.5.30, 5.6.14
float(11.17)
Output for 5.6.13
float(16.87)
Output for 5.6.12
float(10.52)
Output for 5.4.35, 5.6.10
float(10.39)
Output for 5.6.9
float(9.89)
Output for 5.4.19, 5.6.8
float(9.74)
Output for 5.6.7
float(9.82)
Output for 5.5.18, 5.6.6
float(11.4)
Output for 5.6.5
float(10.48)
Output for 5.6.4
float(10.74)
Output for 5.6.3
float(9.96)
Output for 5.6.2
float(10.79)
Output for 5.6.1
float(11.74)
Output for 5.6.0
float(11.7)
Output for 5.5.38
float(15.06)
Output for 5.5.37
float(12.58)
Output for 5.5.36
float(16.45)
Output for 5.5.35
float(10.63)
Output for 5.5.34
float(10.11)
Output for 5.5.32
float(15.58)
Output for 5.5.31
float(10.44)
Output for 5.5.29
float(11.6)
Output for 5.4.41, 5.5.28
float(9.85)
Output for 5.5.15, 5.5.27
float(10.49)
Output for 5.5.26
float(10.97)
Output for 5.5.25
float(9.64)
Output for 5.5.24
float(15.31)
Output for 5.4.8, 5.4.33, 5.5.23
float(10.42)
Output for 5.5.22
float(9.98)
Output for 5.5.21
float(9.58)
Output for 5.5.20
float(13.28)
Output for 5.5.2, 5.5.19
float(10.28)
Output for 5.5.17
float(10.86)
Output for 5.5.16
float(9.8)
Output for 5.5.14
float(15.1)
Output for 5.5.13
float(10.88)
Output for 5.5.12
float(11.27)
Output for 5.5.11
float(11.34)
Output for 5.5.10
float(16.18)
Output for 5.5.9
float(13.85)
Output for 5.5.8
float(12.01)
Output for 5.5.7
float(14.96)
Output for 5.5.6
float(11.53)
Output for 5.5.5
float(10.36)
Output for 5.5.4
float(10.81)
Output for 5.5.3
float(15.42)
Output for 5.5.1
float(14.51)
Output for 5.5.0
float(12.34)
Output for 5.4.45
float(10.93)
Output for 5.4.3, 5.4.44
float(10.17)
Output for 5.4.42
float(10.8)
Output for 5.4.40
float(12.04)
Output for 5.4.38
float(10.08)
Output for 5.4.37
float(9.51)
Output for 5.4.36
float(9.5)
Output for 5.4.34
float(16.25)
Output for 5.4.32
float(9.55)
Output for 5.4.31
float(10.77)
Output for 5.4.30
float(13.6)
Output for 5.4.29
float(10.33)
Output for 5.4.28
float(10.07)
Output for 5.4.27
float(13.44)
Output for 5.4.26
float(12.46)
Output for 5.4.25
float(10.96)
Output for 5.4.24
float(15.11)
Output for 5.4.23
float(12.33)
Output for 5.4.22
float(12.81)
Output for 5.4.21
float(15.6)
Output for 5.4.20
float(14)
Output for 5.4.18
float(11.45)
Output for 5.4.17
float(11.04)
Output for 5.4.16
float(12.06)
Output for 5.4.15
float(9.81)
Output for 5.4.14
float(11.66)
Output for 5.4.12
float(12.6)
Output for 5.4.11
float(9.86)
Output for 5.4.10
float(12.09)
Output for 5.4.9
float(10.45)
Output for 5.4.7
float(10.38)
Output for 5.4.6
float(11.05)
Output for 5.4.5
float(10.13)
Output for 5.4.4
float(13.2)
Output for 5.4.2
float(12.99)
Output for 5.4.1
float(12.78)
Output for 5.4.0
float(10.53)
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/eEtFl on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/eEtFl on line 3 Parse error: syntax error, unexpected '[' in /in/eEtFl on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/eEtFl on line 3 Parse error: parse error, unexpected '[' in /in/eEtFl on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/eEtFl on line 3 Parse error: parse error in /in/eEtFl on line 5
Process exited with code 255.