3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $startTime = microtime(true); $result = ""; for($i = 0; $i < 50000000; $i++) $result = 'salut'; $endTime = microtime(true); echo 'Single quotes: ', $endTime - $startTime, ' seconds', "\n"; $startTime = microtime(true); $result = ""; for($i = 0; $i < 50000000; $i++) $result = "salut"; $endTime = microtime(true); echo 'Double quotes: ', $endTime - $startTime, ' seconds', "\n";
based on vuh7R
Output for 7.1.0
Single quotes: 0.64686012268066 seconds Double quotes: 0.70367288589478 seconds
Output for 7.0.14
Single quotes: 0.378830909729 seconds Double quotes: -0.46442413330078 seconds
Output for 7.0.6
Single quotes: 0.54416704177856 seconds Double quotes: 0.53353905677795 seconds
Output for 7.0.5
Single quotes: 0.55884099006653 seconds Double quotes: 0.53018808364868 seconds
Output for 7.0.4
Single quotes: 0.51391100883484 seconds Double quotes: 0.49223303794861 seconds
Output for 7.0.3
Single quotes: 0.52225303649902 seconds Double quotes: 0.51322793960571 seconds
Output for 7.0.2
Single quotes: 0.62643194198608 seconds Double quotes: 0.6202130317688 seconds
Output for 7.0.1
Single quotes: 0.5075831413269 seconds Double quotes: 0.48851108551025 seconds
Output for 7.0.0
Single quotes: 0.4898989200592 seconds Double quotes: 0.48576688766479 seconds
Output for 4.3.0 - 5.3.3, 5.3.5 - 5.4.2, 5.4.4, 5.4.14 - 5.4.16, 5.4.19 - 5.4.20, 5.4.22, 5.4.27, 5.4.34 - 5.4.39, 5.4.42 - 5.4.44, 5.6.28

Process exited with code 137.
Output for 5.6.21
Single quotes: 1.5808348655701 seconds
Process exited with code 137.
Output for 5.6.20
Single quotes: 1.5897178649902 seconds
Process exited with code 137.
Output for 5.6.19
Single quotes: 1.9083478450775 seconds
Process exited with code 137.
Output for 5.6.18
Single quotes: 1.5719540119171 seconds
Process exited with code 137.
Output for 5.6.17
Single quotes: 1.5999491214752 seconds
Process exited with code 137.
Output for 5.6.16
Single quotes: 1.5848019123077 seconds
Process exited with code 137.
Output for 5.6.15
Single quotes: 1.5675690174103 seconds
Process exited with code 137.
Output for 5.6.14
Single quotes: 1.7243649959564 seconds
Process exited with code 137.
Output for 5.6.13
Single quotes: 1.5595889091492 seconds
Process exited with code 137.
Output for 5.6.12
Single quotes: 1.6121258735657 seconds
Process exited with code 137.
Output for 5.6.11
Single quotes: 1.6577310562134 seconds
Process exited with code 137.
Output for 5.6.10
Single quotes: 1.6130650043488 seconds
Process exited with code 137.
Output for 5.6.9
Single quotes: 1.5799050331116 seconds
Process exited with code 137.
Output for 5.6.8
Single quotes: 1.600396156311 seconds
Process exited with code 137.
Output for 5.5.35
Single quotes: 1.4454441070557 seconds
Process exited with code 137.
Output for 5.5.34
Single quotes: 1.618901014328 seconds
Process exited with code 137.
Output for 5.5.33
Single quotes: 1.5894250869751 seconds
Process exited with code 137.
Output for 5.5.32
Single quotes: 1.5609080791473 seconds
Process exited with code 137.
Output for 5.5.31
Single quotes: 1.5625619888306 seconds
Process exited with code 137.
Output for 5.5.30
Single quotes: 1.5966341495514 seconds
Process exited with code 137.
Output for 5.5.29
Single quotes: 1.584762096405 seconds
Process exited with code 137.
Output for 5.5.28
Single quotes: 1.5981879234314 seconds
Process exited with code 137.
Output for 5.5.27
Single quotes: 1.8220269680023 seconds
Process exited with code 137.
Output for 5.5.26
Single quotes: 1.6252820491791 seconds
Process exited with code 137.
Output for 5.5.25
Single quotes: 1.6233580112457 seconds
Process exited with code 137.
Output for 5.5.24
Single quotes: 1.468318939209 seconds
Process exited with code 137.
Output for 5.4.45
Single quotes: 2.0179679393768 seconds
Process exited with code 137.
Output for 5.4.41
Single quotes: 2.4103899002075 seconds
Process exited with code 137.
Output for 5.4.40
Single quotes: 2.1988060474396 seconds
Process exited with code 137.
Output for 5.4.32
Single quotes: 1.8950521945953 seconds
Process exited with code 137.
Output for 5.4.31
Single quotes: 1.9564728736877 seconds
Process exited with code 137.
Output for 5.4.30
Single quotes: 1.7513411045074 seconds
Process exited with code 137.
Output for 5.4.29
Single quotes: 1.7658720016479 seconds
Process exited with code 137.
Output for 5.4.28
Single quotes: 1.787917137146 seconds
Process exited with code 137.
Output for 5.4.26
Single quotes: 1.9300611019135 seconds
Process exited with code 137.
Output for 5.4.25
Single quotes: 1.7984600067139 seconds
Process exited with code 137.
Output for 5.4.24
Single quotes: 1.8906970024109 seconds
Process exited with code 137.
Output for 5.4.23
Single quotes: 1.7582049369812 seconds
Process exited with code 137.
Output for 5.4.21
Single quotes: 1.8322880268097 seconds
Process exited with code 137.
Output for 5.4.18
Single quotes: 1.8485779762268 seconds
Process exited with code 137.
Output for 5.4.17
Single quotes: 1.9475028514862 seconds
Process exited with code 137.
Output for 5.4.13
Single quotes: 1.8409171104431 seconds
Process exited with code 137.
Output for 5.4.12
Single quotes: 1.9386339187622 seconds
Process exited with code 137.
Output for 5.4.11
Single quotes: 1.8163659572601 seconds
Process exited with code 137.
Output for 5.4.10
Single quotes: 1.9582831859589 seconds
Process exited with code 137.
Output for 5.4.9
Single quotes: 1.9101359844208 seconds
Process exited with code 137.
Output for 5.4.8
Single quotes: 1.9158489704132 seconds
Process exited with code 137.
Output for 5.4.7
Single quotes: 1.8432419300079 seconds
Process exited with code 137.
Output for 5.4.6
Single quotes: 1.8469572067261 seconds
Process exited with code 137.
Output for 5.4.5
Single quotes: 1.9429659843445 seconds
Process exited with code 137.
Output for 5.4.3
Single quotes: 1.8465991020203 seconds
Process exited with code 137.
Output for 5.3.4

Process exited with code 143.