3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $times = 1000*100*10; $var = true; $time1 = microtime(true); for ($i = 0; $i <= $times; $i++) { if ($var) {} } $time1 = microtime(true) - $time1; //echo "Time using '!': $time1\n"; $time2 = microtime(true); for ($i = 0; $i <= $times; $i++) { if ($var === true) {} } $time2 = microtime(true) - $time2; //echo "Time using '===': $time2\n"; if ($time1 > $time2){ $p = (($time1-$time2)/$time2) * 100; printf("'===' was faster by %.2f percent.", $p); } else { $p = (($time2-$time1)/$time1) * 100; printf("' ' was faster by %.2f percent.", $p); }
Output for 7.1.0
' ' was faster by 12.48 percent.
Output for 7.0.14
' ' was faster by 3.19 percent.
Output for 7.0.9
' ' was faster by 6.25 percent.
Output for 7.0.8
' ' was faster by 15.01 percent.
Output for 7.0.7
' ' was faster by 6.42 percent.
Output for 7.0.6
' ' was faster by 2.92 percent.
Output for 5.4.6, 7.0.5
' ' was faster by 4.49 percent.
Output for 7.0.4
'===' was faster by 2.07 percent.
Output for 7.0.3
' ' was faster by 1.44 percent.
Output for 7.0.2
' ' was faster by 31.56 percent.
Output for 7.0.1
' ' was faster by 0.13 percent.
Output for 7.0.0
' ' was faster by 1.03 percent.
Output for 5.6.28
' ' was faster by 40.32 percent.
Output for 5.6.23
' ' was faster by 20.00 percent.
Output for 5.6.22
' ' was faster by 3.58 percent.
Output for 5.6.21
' ' was faster by 1.29 percent.
Output for 5.6.20
'===' was faster by 6.64 percent.
Output for 5.6.19
' ' was faster by 2.19 percent.
Output for 5.6.18
'===' was faster by 0.89 percent.
Output for 5.6.17
' ' was faster by 1.90 percent.
Output for 5.6.16
'===' was faster by 4.52 percent.
Output for 5.6.15
' ' was faster by 2.93 percent.
Output for 5.6.14
' ' was faster by 0.17 percent.
Output for 5.6.13
' ' was faster by 16.59 percent.
Output for 5.6.12
' ' was faster by 13.03 percent.
Output for 5.6.11
' ' was faster by 4.75 percent.
Output for 5.6.10
' ' was faster by 1.33 percent.
Output for 5.6.9
' ' was faster by 4.14 percent.
Output for 5.6.8
' ' was faster by 0.53 percent.
Output for 5.6.7
'===' was faster by 5.00 percent.
Output for 5.6.6
'===' was faster by 5.82 percent.
Output for 5.6.5
'===' was faster by 17.65 percent.
Output for 5.6.4
' ' was faster by 9.09 percent.
Output for 5.6.3
'===' was faster by 10.52 percent.
Output for 5.6.2
'===' was faster by 6.10 percent.
Output for 5.6.1
' ' was faster by 8.73 percent.
Output for 5.6.0
' ' was faster by 17.57 percent.
Output for 5.5.37
' ' was faster by 10.35 percent.
Output for 5.5.36
' ' was faster by 17.03 percent.
Output for 5.5.35
' ' was faster by 17.38 percent.
Output for 5.5.34
'===' was faster by 2.20 percent.
Output for 5.5.33
'===' was faster by 9.67 percent.
Output for 5.5.32
' ' was faster by 2.81 percent.
Output for 5.5.31
'===' was faster by 0.66 percent.
Output for 5.5.30
' ' was faster by 8.13 percent.
Output for 5.5.29
' ' was faster by 1.93 percent.
Output for 5.5.28
' ' was faster by 13.32 percent.
Output for 5.5.27
' ' was faster by 9.71 percent.
Output for 5.5.26
'===' was faster by 1.11 percent.
Output for 5.5.25
' ' was faster by 2.59 percent.
Output for 5.5.24
'===' was faster by 13.30 percent.
Output for 5.5.23
' ' was faster by 4.24 percent.
Output for 5.5.22
' ' was faster by 10.56 percent.
Output for 5.5.21
' ' was faster by 18.91 percent.
Output for 5.5.20
' ' was faster by 1.37 percent.
Output for 5.5.19
' ' was faster by 9.49 percent.
Output for 5.5.18
' ' was faster by 3.21 percent.
Output for 5.3.24, 5.5.16
'===' was faster by 1.31 percent.
Output for 5.5.15
'===' was faster by 4.12 percent.
Output for 5.3.10, 5.5.14
'===' was faster by 13.32 percent.
Output for 5.5.13
'===' was faster by 7.05 percent.
Output for 5.5.12
'===' was faster by 5.87 percent.
Output for 5.5.11
'===' was faster by 3.08 percent.
Output for 5.5.10
' ' was faster by 1.67 percent.
Output for 5.5.9
' ' was faster by 17.70 percent.
Output for 5.5.8
' ' was faster by 16.89 percent.
Output for 5.5.7
'===' was faster by 13.64 percent.
Output for 5.5.6
' ' was faster by 15.83 percent.
Output for 5.5.5
' ' was faster by 12.61 percent.
Output for 5.5.4
' ' was faster by 12.37 percent.
Output for 5.5.3
' ' was faster by 16.75 percent.
Output for 5.5.2
'===' was faster by 6.32 percent.
Output for 5.5.1
' ' was faster by 4.36 percent.
Output for 5.5.0
'===' was faster by 29.45 percent.
Output for 5.4.45
'===' was faster by 4.99 percent.
Output for 5.4.44
'===' was faster by 42.93 percent.
Output for 5.4.43
'===' was faster by 7.36 percent.
Output for 5.4.42
' ' was faster by 18.23 percent.
Output for 5.4.41
'===' was faster by 4.51 percent.
Output for 5.4.40
' ' was faster by 5.25 percent.
Output for 5.4.39
' ' was faster by 10.16 percent.
Output for 5.4.38
' ' was faster by 3.02 percent.
Output for 5.4.37
'===' was faster by 7.53 percent.
Output for 5.4.36
' ' was faster by 19.08 percent.
Output for 5.4.35
' ' was faster by 1.07 percent.
Output for 5.4.34
'===' was faster by 2.40 percent.
Output for 5.4.32
' ' was faster by 5.86 percent.
Output for 5.4.31
' ' was faster by 23.48 percent.
Output for 5.4.30
' ' was faster by 6.31 percent.
Output for 5.4.29
' ' was faster by 5.60 percent.
Output for 5.4.28
' ' was faster by 18.22 percent.
Output for 5.4.27
'===' was faster by 15.78 percent.
Output for 5.4.26
' ' was faster by 2.47 percent.
Output for 5.4.25
' ' was faster by 8.81 percent.
Output for 5.4.24
' ' was faster by 17.33 percent.
Output for 5.4.23
' ' was faster by 1.72 percent.
Output for 5.4.22
' ' was faster by 15.37 percent.
Output for 5.4.21
' ' was faster by 12.16 percent.
Output for 5.4.20
' ' was faster by 16.64 percent.
Output for 5.4.19
'===' was faster by 0.55 percent.
Output for 5.4.18
'===' was faster by 13.45 percent.
Output for 5.4.17
' ' was faster by 2.17 percent.
Output for 5.4.16
' ' was faster by 5.16 percent.
Output for 5.4.15
' ' was faster by 1.23 percent.
Output for 5.4.14
' ' was faster by 11.01 percent.
Output for 5.4.13
' ' was faster by 8.51 percent.
Output for 5.4.12
' ' was faster by 10.45 percent.
Output for 5.4.11
'===' was faster by 1.80 percent.
Output for 5.4.10
'===' was faster by 0.90 percent.
Output for 5.4.9
' ' was faster by 9.11 percent.
Output for 5.4.8
' ' was faster by 5.27 percent.
Output for 5.4.7
' ' was faster by 0.32 percent.
Output for 5.4.5
' ' was faster by 21.39 percent.
Output for 5.4.4
' ' was faster by 32.17 percent.
Output for 5.4.3
'===' was faster by 3.77 percent.
Output for 5.4.2
'===' was faster by 22.93 percent.
Output for 5.4.1
' ' was faster by 22.66 percent.
Output for 5.4.0
' ' was faster by 9.08 percent.
Output for 5.3.29
' ' was faster by 14.30 percent.
Output for 5.3.28
' ' was faster by 3.41 percent.
Output for 5.3.27
'===' was faster by 4.65 percent.
Output for 5.3.26
'===' was faster by 2.10 percent.
Output for 5.3.25
'===' was faster by 5.02 percent.
Output for 5.3.23
' ' was faster by 1.24 percent.
Output for 5.3.22
' ' was faster by 14.15 percent.
Output for 5.3.21
' ' was faster by 4.86 percent.
Output for 5.3.20
'===' was faster by 9.74 percent.
Output for 5.3.19
'===' was faster by 12.50 percent.
Output for 5.3.18
'===' was faster by 6.81 percent.
Output for 5.3.17
' ' was faster by 3.88 percent.
Output for 5.3.16
'===' was faster by 14.44 percent.
Output for 5.3.15
'===' was faster by 13.65 percent.
Output for 5.3.14
' ' was faster by 3.15 percent.
Output for 5.3.13
' ' was faster by 3.11 percent.
Output for 5.3.12
' ' was faster by 0.20 percent.
Output for 5.3.11
' ' was faster by 6.35 percent.
Output for 5.3.9
'===' was faster by 9.72 percent.
Output for 5.3.8
'===' was faster by 1.81 percent.
Output for 5.3.7
' ' was faster by 14.09 percent.
Output for 5.3.6
'===' was faster by 6.15 percent.
Output for 5.3.5
' ' was faster by 3.80 percent.
Output for 5.3.4
'===' was faster by 2.67 percent.
Output for 5.3.3
'===' was faster by 2.51 percent.
Output for 5.3.2
'===' was faster by 6.36 percent.
Output for 5.3.1
'===' was faster by 7.99 percent.
Output for 5.3.0
' ' was faster by 1.16 percent.
Output for 5.2.17
'===' was faster by 12.81 percent.
Output for 5.2.16
'===' was faster by 19.99 percent.
Output for 5.2.15
'===' was faster by 17.19 percent.
Output for 5.2.14
'===' was faster by 11.78 percent.
Output for 5.2.13
'===' was faster by 19.02 percent.
Output for 5.2.12
'===' was faster by 23.75 percent.
Output for 5.2.11
'===' was faster by 16.00 percent.
Output for 5.2.10
' ' was faster by 11.45 percent.
Output for 5.2.9
'===' was faster by 28.60 percent.
Output for 5.2.8
'===' was faster by 4.89 percent.
Output for 5.2.7
' ' was faster by 2.37 percent.
Output for 5.2.6
'===' was faster by 21.84 percent.
Output for 5.2.5
'===' was faster by 11.76 percent.
Output for 5.2.4
'===' was faster by 10.14 percent.
Output for 5.2.3
' ' was faster by 10.00 percent.
Output for 5.2.2
'===' was faster by 8.43 percent.
Output for 5.2.1
'===' was faster by 31.36 percent.
Output for 5.2.0
'===' was faster by 26.99 percent.
Output for 5.1.6
'===' was faster by 29.60 percent.
Output for 5.1.5
'===' was faster by 19.83 percent.
Output for 5.1.4
'===' was faster by 24.14 percent.
Output for 5.1.3
' ' was faster by 7.68 percent.
Output for 5.1.2
' ' was faster by 14.89 percent.
Output for 5.1.1
' ' was faster by 25.41 percent.
Output for 5.1.0
' ' was faster by 15.18 percent.
Output for 5.0.5
' ' was faster by 15.23 percent.
Output for 5.0.4
' ' was faster by 1.80 percent.
Output for 5.0.3
' ' was faster by 10.55 percent.
Output for 5.0.2
'===' was faster by 7.98 percent.
Output for 5.0.1
' ' was faster by 23.79 percent.
Output for 5.0.0
' ' was faster by 24.57 percent.
Output for 4.4.9
' ' was faster by 0.11 percent.
Output for 4.4.8
'===' was faster by 8.57 percent.
Output for 4.4.7
' ' was faster by 17.87 percent.
Output for 4.4.6
' ' was faster by 12.38 percent.
Output for 4.4.5
'===' was faster by 1.74 percent.
Output for 4.4.4
' ' was faster by 6.15 percent.
Output for 4.4.3
' ' was faster by 22.65 percent.
Output for 4.4.2
' ' was faster by 23.98 percent.
Output for 4.4.1
'===' was faster by 3.18 percent.
Output for 4.4.0
' ' was faster by 26.58 percent.
Output for 4.3.11
'===' was faster by 14.37 percent.
Output for 4.3.10
' ' was faster by 3.64 percent.
Output for 4.3.9
'===' was faster by 1.86 percent.
Output for 4.3.8
' ' was faster by 21.99 percent.
Output for 4.3.7
' ' was faster by 35.02 percent.
Output for 4.3.6
'===' was faster by 1.37 percent.
Output for 4.3.5
' ' was faster by 3.81 percent.
Output for 4.3.4
' ' was faster by 12.28 percent.
Output for 4.3.3
'===' was faster by 1.70 percent.
Output for 4.3.2
' ' was faster by 37.74 percent.
Output for 4.3.1
' ' was faster by 2.13 percent.
Output for 4.3.0
' ' was faster by 4.50 percent.