3v4l.org

run code in 200+ php & hhvm versions
<?php $a = "\t123456\t345\t575675\t676\t333"; for($i = 0; $i< 10; $i++){ $a .= $a; } $start = time(); $startMicro = microtime(); $result = explode("\t", $a)[0]; var_dump('Explode:' . ((time() - $start) + (microtime() - $startMicro) / 1000));
based on dEVvZ

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Notice: A non well formed numeric value encountered in /in/alk68 on line 14 Notice: A non well formed numeric value encountered in /in/alk68 on line 14 string(15) "Explode:3.44E-7"
Output for Arrow functions
Notice: A non well formed numeric value encountered in /in/alk68 on line 14 Notice: A non well formed numeric value encountered in /in/alk68 on line 14 string(15) "Explode:2.29E-7"
Output for Object typehint
Notice: A non well formed numeric value encountered in /in/alk68 on line 14 Notice: A non well formed numeric value encountered in /in/alk68 on line 14 string(15) "Explode:3.51E-7"
Output for Array change keys
Notice: A non well formed numeric value encountered in /in/alk68 on line 14 Notice: A non well formed numeric value encountered in /in/alk68 on line 14 string(15) "Explode:2.44E-7"
Output for Lexical anon
string(14) "Explode:2.6E-7"

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page