3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string1 = 'aaaaaaaaaaaaaaaaaaaa'; $string2 = 'bbbbbbbbbbbbbbbbbbbb'; $string3 = 'cccccccccccccccccccc'; $string4 = 'dddddddddddddddddddd'; $string5 = 'eeeeeeeeeeeeeeeeeeee'; $time1 = microtime(); for ($k = 0; $k<100.00; $k++) { $concatTest1 = $string1 . $string2 . $string3 . $string4 . $string5; } $time2 = microtime(); $testDuration1 = $time2 - $time1; $time3 = microtime(); for ($m = 0; $m<100.00; $m++) { $concatTest2 = "{$string1}{$string2}{$string3}{$string4}{$string5}"; } $time4 = microtime(); $testDuration2 = $time4 - $time3; $time5 = microtime(); for ($p = 0; $p<100.00; $p++) { $concatTest3 = implode('', array($string1, $string2, $string3, $string4, $string5)); } $time6 = microtime(); $testDuration3 = $time6 - $time5; var_dump( $testDuration1, $testDuration2, $testDuration3 );
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/LSvfV on line 16 Notice: A non well formed numeric value encountered in /in/LSvfV on line 16 Notice: A non well formed numeric value encountered in /in/LSvfV on line 24 Notice: A non well formed numeric value encountered in /in/LSvfV on line 24 Notice: A non well formed numeric value encountered in /in/LSvfV on line 33 Notice: A non well formed numeric value encountered in /in/LSvfV on line 33 float(3.8000000000002E-5) float(1.7999999999999E-5) float(5.7E-5)
Output for 7.0.14
float(2.9E-5) float(1.1E-5) float(3.3E-5)
Output for 7.0.6
float(2.8999999999946E-5) float(1.0000000000066E-5) float(2.8000000000028E-5)
Output for 7.0.5
float(2.8E-5) float(9.0000000000021E-6) float(2.6999999999999E-5)
Output for 7.0.4
float(2.5999999999998E-5) float(1.000000000001E-5) float(2.6999999999999E-5)
Output for 7.0.3
float(3.4000000000034E-5) float(1.6999999999989E-5) float(3.1999999999976E-5)
Output for 7.0.2
float(3.6999999999981E-5) float(1.8999999999991E-5) float(3.6000000000008E-5)
Output for 7.0.1
float(2.4999999999997E-5) float(1.1999999999998E-5) float(2.4000000000003E-5)
Output for 7.0.0
float(3.1999999999976E-5) float(1.6000000000016E-5) float(3.1999999999976E-5)
Output for hhvm-3.12.0
float(5.9000000000031E-5) float(2.6999999999999E-5) float(4.6999999999964E-5)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
float(3.4E-5) float(2.9E-5) float(6.9E-5)
Output for 5.6.21
float(3.5999999999925E-5) float(2.8000000000028E-5) float(6.600000000001E-5)
Output for 5.6.20
float(3.1E-5) float(2.7000000000003E-5) float(5.9E-5)
Output for 5.6.19
float(1.8999999999991E-5) float(1.4999999999987E-5) float(4.2000000000014E-5)
Output for 5.6.18
float(2.9999999999974E-5) float(2.0999999999993E-5) float(5.9000000000031E-5)
Output for 5.6.17
float(2.9000000000001E-5) float(2.2000000000022E-5) float(4.9999999999994E-5)
Output for 5.6.16
float(3.7000000000009E-5) float(2.9000000000001E-5) float(6.600000000001E-5)
Output for 5.6.15
float(3.7000000000009E-5) float(3.2000000000032E-5) float(7.0000000000014E-5)
Output for 5.6.14
float(3.2000000000032E-5) float(2.6999999999999E-5) float(6.0999999999978E-5)
Output for 5.6.13
float(3.2000000000032E-5) float(2.6999999999999E-5) float(5.9999999999949E-5)
Output for 5.6.12
float(3.2000000000004E-5) float(2.5999999999998E-5) float(5.7000000000001E-5)
Output for 5.6.11
float(3.9999999999998E-5) float(3.4999999999993E-5) float(8.4000000000001E-5)
Output for 5.6.10
float(2.6E-5) float(2.1999999999999E-5) float(5.0E-5)
Output for 5.6.9
float(4.0999999999999E-5) float(3.2999999999998E-5) float(7.6E-5)
Output for 5.6.8
float(2.6999999999999E-5) float(2.0999999999993E-5) float(4.8999999999993E-5)
Output for 5.5.35
float(3.9000000000011E-5) float(3.3999999999978E-5) float(7.6999999999994E-5)
Output for 5.5.34
float(3.7000000000065E-5) float(3.0000000000086E-5) float(6.8000000000068E-5)
Output for 5.5.33
float(3.1999999999997E-5) float(2.5000000000004E-5) float(7.0000000000001E-5)
Output for 5.5.32
float(2.9999999999974E-5) float(2.0999999999938E-5) float(4.8000000000048E-5)
Output for 5.5.31
float(2.9999999999974E-5) float(2.1999999999966E-5) float(4.9999999999994E-5)
Output for 5.5.30
float(2.4999999999942E-5) float(2.1999999999966E-5) float(4.7999999999937E-5)
Output for 5.5.29
float(3.9999999999984E-5) float(3.4000000000034E-5) float(0.00010100000000002)
Output for 5.5.28
float(2.8000000000028E-5) float(2.1999999999966E-5) float(5.3000000000081E-5)
Output for 5.5.27
float(4.0999999999958E-5) float(3.3999999999978E-5) float(7.8999999999996E-5)
Output for 5.5.26
float(2.8000000000028E-5) float(2.2999999999995E-5) float(5.299999999997E-5)
Output for 5.5.25
float(2.9999999999974E-5) float(2.599999999997E-5) float(6.000000000006E-5)
Output for 5.5.24
float(2.6999999999999E-5) float(2.2000000000078E-5) float(5.1000000000023E-5)
Output for 5.4.45
float(2.4000000000024E-5) float(1.6000000000016E-5) float(4.4999999999962E-5)
Output for 5.4.44
float(2.3999999999996E-5) float(1.6000000000016E-5) float(4.3999999999988E-5)
Output for 5.4.43
float(2.4999999999942E-5) float(1.5999999999905E-5) float(4.4000000000044E-5)
Output for 5.4.42
float(2.2000000000078E-5) float(1.4999999999987E-5) float(4.0999999999958E-5)
Output for 5.4.41
float(2.5000000000053E-5) float(1.6000000000016E-5) float(4.3999999999933E-5)
Output for 5.4.40
float(2.1999999999966E-5) float(1.6000000000016E-5) float(4.4999999999962E-5)
Output for 5.4.39
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.5000000000017E-5)
Output for 5.4.38
float(2.8E-5) float(1.6999999999989E-5) float(4.6000000000018E-5)
Output for 5.4.37
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.3999999999933E-5)
Output for 5.4.36
float(2.4999999999997E-5) float(1.6000000000016E-5) float(4.3999999999988E-5)
Output for 5.4.35
float(2.1000000000049E-5) float(1.4999999999987E-5) float(5.2000000000052E-5)
Output for 5.4.34
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.4999999999962E-5)
Output for 5.4.32
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.3999999999988E-5)
Output for 5.4.31
float(2.2999999999995E-5) float(1.9999999999964E-5) float(4.3999999999988E-5)
Output for 5.4.30
float(2.2000000000078E-5) float(1.7000000000045E-5) float(4.3999999999933E-5)
Output for 5.4.29
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.6999999999964E-5)
Output for 5.4.28
float(2.2000000000022E-5) float(1.599999999996E-5) float(4.3000000000015E-5)
Output for 5.4.27
float(2.9000000000001E-5) float(1.6000000000016E-5) float(4.2000000000042E-5)
Output for 5.4.26
float(2.0999999999993E-5) float(1.4000000000014E-5) float(4.1999999999986E-5)
Output for 5.4.25
float(1.9999999999964E-5) float(1.6000000000016E-5) float(4.3000000000015E-5)
Output for 5.4.24
float(2.2999999999995E-5) float(1.4999999999987E-5) float(4.4000000000044E-5)
Output for 5.4.23
float(2.0999999999993E-5) float(1.4999999999987E-5) float(4.3000000000015E-5)
Output for 5.4.22
float(2.1E-5) float(1.5000000000001E-5) float(4.3999999999995E-5)
Output for 5.4.16, 5.4.21
float(2.1999999999966E-5) float(1.4999999999987E-5) float(4.4000000000044E-5)
Output for 5.4.20
float(2.1000000000049E-5) float(1.6000000000016E-5) float(4.3000000000015E-5)
Output for 5.4.19
float(3.5000000000007E-5) float(2.3999999999913E-5) float(5.6999999999974E-5)
Output for 5.4.18
float(2.2000000000078E-5) float(1.4999999999987E-5) float(4.3000000000015E-5)
Output for 5.4.3, 5.4.17
float(2.2000000000022E-5) float(1.6000000000016E-5) float(4.3999999999988E-5)
Output for 5.4.15
float(2.1999999999966E-5) float(1.4999999999987E-5) float(4.4999999999962E-5)
Output for 5.4.14
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.4999999999989E-5)
Output for 5.4.13
float(2.2999999999995E-5) float(1.7000000000045E-5) float(4.6999999999964E-5)
Output for 5.4.12
float(2.1999999999994E-5) float(1.5000000000015E-5) float(4.4999999999989E-5)
Output for 5.4.11
float(2.1999999999966E-5) float(1.4999999999987E-5) float(4.3000000000015E-5)
Output for 5.4.10
float(3.5999999999925E-5) float(2.5000000000053E-5) float(7.7000000000105E-5)
Output for 5.4.9
float(2.2999999999995E-5) float(1.5000000000043E-5) float(4.3000000000015E-5)
Output for 5.4.8
float(2.1999999999966E-5) float(1.4999999999987E-5) float(4.3999999999933E-5)
Output for 5.4.7
float(3.5000000000007E-5) float(2.6999999999999E-5) float(5.1999999999941E-5)
Output for 5.4.6
float(2.0999999999993E-5) float(1.4999999999987E-5) float(4.2000000000042E-5)
Output for 5.4.5
float(2.2999999999995E-5) float(1.4999999999987E-5) float(4.4999999999962E-5)
Output for 5.4.4
float(2.1999999999966E-5) float(1.400000000007E-5) float(4.3000000000015E-5)
Output for 5.4.2
float(2.1999999999966E-5) float(1.6000000000016E-5) float(4.4000000000044E-5)
Output for 5.4.1
float(2.4000000000024E-5) float(1.4999999999987E-5) float(4.4999999999962E-5)
Output for 5.4.0
float(2.2999999999995E-5) float(1.7000000000045E-5) float(4.4999999999962E-5)
Output for 5.3.29
float(2.2999999999995E-5) float(1.3999999999958E-5) float(4.599999999999E-5)
Output for 5.3.28
float(2.1999999999994E-5) float(1.5000000000001E-5) float(4.4999999999989E-5)
Output for 5.3.27
float(2.3999999999913E-5) float(1.5999999999905E-5) float(4.7000000000019E-5)
Output for 5.3.23, 5.3.26
float(2.4000000000024E-5) float(1.6000000000016E-5) float(4.599999999999E-5)
Output for 5.3.9, 5.3.25
float(2.4000000000024E-5) float(1.6999999999934E-5) float(4.599999999999E-5)
Output for 5.3.24
float(3.2000000000032E-5) float(2.599999999997E-5) float(7.5999999999965E-5)
Output for 5.3.22
float(3.7999999999982E-5) float(1.6999999999934E-5) float(5.0999999999912E-5)
Output for 5.3.21
float(2.4999999999997E-5) float(1.6999999999989E-5) float(5.0999999999995E-5)
Output for 5.3.20
float(2.6999999999999E-5) float(1.5999999999988E-5) float(4.7000000000019E-5)
Output for 5.3.19
float(2.8000000000028E-5) float(1.4999999999987E-5) float(5.8000000000002E-5)
Output for 5.3.18
float(3.3000000000005E-5) float(2.6000000000026E-5) float(8.0000000000024E-5)
Output for 5.3.17
float(2.2999999999995E-5) float(1.599999999996E-5) float(7.299999999999E-5)
Output for 5.3.16
float(2.8000000000028E-5) float(2.6999999999999E-5) float(7.6999999999994E-5)
Output for 5.3.15
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.9000000000021E-5)
Output for 5.3.14
float(2.4000000000024E-5) float(1.7000000000045E-5) float(4.6999999999964E-5)
Output for 5.3.13
float(2.4000000000024E-5) float(1.7000000000045E-5) float(4.599999999999E-5)
Output for 5.3.12
float(2.4999999999997E-5) float(1.6999999999989E-5) float(4.7000000000019E-5)
Output for 5.3.11
float(2.4999999999997E-5) float(1.7000000000045E-5) float(4.7000000000019E-5)
Output for 5.3.10
float(2.3000000000009E-5) float(1.6000000000002E-5) float(4.4000000000002E-5)
Output for 5.3.8
float(2.3999999999996E-5) float(1.7000000000003E-5) float(4.599999999999E-5)
Output for 5.3.7
float(2.2999999999995E-5) float(1.8000000000074E-5) float(6.2999999999924E-5)
Output for 5.3.6
float(2.5000000000025E-5) float(1.7000000000017E-5) float(4.599999999999E-5)
Output for 5.3.5
float(2.2999999999995E-5) float(1.7000000000045E-5) float(4.599999999999E-5)
Output for 5.3.4
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.6000000000018E-5)
Output for 5.3.3
float(2.2999999999995E-5) float(1.8000000000004E-5) float(5.0999999999995E-5)
Output for 5.3.2
float(2.4999999999997E-5) float(1.6999999999989E-5) float(4.6000000000018E-5)
Output for 5.3.1
float(2.2999999999995E-5) float(1.6000000000016E-5) float(4.7000000000019E-5)
Output for 5.3.0
float(2.6000000000082E-5) float(1.7000000000045E-5) float(4.6999999999908E-5)
Output for 5.2.17
float(2.6999999999999E-5) float(2.000000000002E-5) float(4.7999999999992E-5)
Output for 5.2.16
float(2.6000000000082E-5) float(2.000000000002E-5) float(4.8999999999966E-5)
Output for 5.2.15
float(4.6000000000102E-5) float(3.7999999999982E-5) float(9.9000000000071E-5)
Output for 5.2.14
float(2.6999999999999E-5) float(1.8999999999991E-5) float(4.9000000000077E-5)
Output for 5.2.13
float(2.4999999999942E-5) float(1.8000000000074E-5) float(4.8000000000048E-5)
Output for 5.2.12
float(4.2E-5) float(3.2999999999998E-5) float(8.4000000000001E-5)
Output for 5.2.11
float(2.6999999999999E-5) float(2.0000000000006E-5) float(4.8999999999993E-5)
Output for 5.2.10
float(2.6999999999999E-5) float(1.8999999999991E-5) float(4.9000000000007E-5)
Output for 5.2.9
float(2.7999999999917E-5) float(2.1999999999966E-5) float(4.8999999999966E-5)
Output for 5.2.8
float(3.1999999999921E-5) float(2.599999999997E-5) float(6.4999999999982E-5)
Output for 5.2.7
float(2.6999999999999E-5) float(2.2999999999995E-5) float(4.7999999999937E-5)
Output for 5.2.6
float(4.0000000000012E-5) float(3.4999999999979E-5) float(8.1999999999999E-5)
Output for 5.2.5
float(2.6999999999999E-5) float(2.000000000002E-5) float(4.7999999999937E-5)
Output for 5.2.4
float(2.2000000000001E-5) float(1.9000000000005E-5) float(6.1000000000005E-5)
Output for 5.2.3
float(2.1999999999966E-5) float(2.000000000002E-5) float(4.7999999999992E-5)
Output for 5.2.2
float(3.0000000000086E-5) float(2.6999999999999E-5) float(6.3999999999953E-5)
Output for 5.2.1
float(2.0999999999938E-5) float(2.8000000000028E-5) float(5.8000000000002E-5)
Output for 5.2.0
float(2.3999999999996E-5) float(2.1999999999994E-5) float(5.0999999999995E-5)
Output for 5.1.6
float(3.0000000000086E-5) float(4.4000000000044E-5) float(5.5999999999945E-5)
Output for 5.1.5
float(3.0000000000002E-5) float(4.5000000000017E-5) float(5.9999999999977E-5)
Output for 5.1.4
float(3.1999999999921E-5) float(4.4000000000044E-5) float(0.00011100000000008)
Output for 5.1.3
float(3.1999999999976E-5) float(4.3999999999988E-5) float(5.8000000000002E-5)
Output for 5.1.2
float(3.5000000000007E-5) float(3.9000000000011E-5) float(5.3999999999998E-5)
Output for 5.1.1
float(3.5000000000007E-5) float(5.6999999999974E-5) float(9.1999999999981E-5)
Output for 5.1.0
float(3.1000000000003E-5) float(3.6999999999954E-5) float(5.5000000000027E-5)
Output for 5.0.5
float(6.299999999998E-5) float(7.5000000000047E-5) float(9.1999999999981E-5)
Output for 5.0.4
float(5.3999999999998E-5) float(6.2000000000006E-5) float(8.5000000000002E-5)
Output for 5.0.3
float(5.0999999999968E-5) float(6.4000000000008E-5) float(8.9000000000006E-5)
Output for 5.0.2
float(8.9999999999923E-5) float(0.00012000000000001) float(0.00014000000000003)
Output for 5.0.1
float(5.0999999999968E-5) float(6.0000000000004E-5) float(7.8000000000022E-5)
Output for 5.0.0
float(5.6999999999974E-5) float(7.299999999999E-5) float(8.7999999999977E-5)
Output for 4.4.9
float(0.000104) float(0.000118) float(0.000181)
Output for 4.4.8
float(5.8999999999976E-5) float(6.600000000001E-5) float(0.00010000000000004)
Output for 4.4.7
float(5.3000000000004E-5) float(6.1000000000005E-5) float(8.7000000000004E-5)
Output for 4.4.6
float(8.9000000000006E-5) float(0.000109) float(0.00015100000000001)
Output for 4.4.5
float(6.2000000000006E-5) float(8.0000000000024E-5) float(8.5999999999975E-5)
Output for 4.4.4
float(9.1999999999981E-5) float(0.00010600000000005) float(0.00014700000000001)
Output for 4.4.3
float(5.1000000000023E-5) float(5.9999999999949E-5) float(8.7999999999977E-5)
Output for 4.4.2
float(5.6E-5) float(6.0000000000001E-5) float(9.1000000000001E-5)
Output for 4.4.1
float(6.2000000000006E-5) float(7.3999999999991E-5) float(0.00010700000000001)
Output for 4.4.0
float(5.6000000000056E-5) float(6.600000000001E-5) float(9.7000000000014E-5)
Output for 4.3.11
float(7.2000000000003E-5) float(6.1000000000005E-5) float(8.7999999999991E-5)
Output for 4.3.10
float(6.6999999999928E-5) float(7.9999999999969E-5) float(9.1999999999981E-5)
Output for 4.3.9
float(5.200000000001E-5) float(5.9000000000003E-5) float(8.8000000000005E-5)
Output for 4.3.8
float(5.9000000000031E-5) float(6.600000000001E-5) float(9.1999999999981E-5)
Output for 4.3.7
float(8.7999999999977E-5) float(0.00010300000000008) float(0.00014700000000001)
Output for 4.3.6
float(0.000101) float(0.000115) float(0.000168)
Output for 4.3.5
float(0.000108) float(0.00012500000000001) float(0.00020899999999999)
Output for 4.3.4
float(7.2000000000016E-5) float(8.0999999999998E-5) float(0.00012599999999996)
Output for 4.3.3
float(7.4999999999992E-5) float(8.7999999999977E-5) float(0.00012600000000001)
Output for 4.3.2
float(0.00010299999999996) float(0.00011899999999998) float(0.00017400000000001)
Output for 4.3.1
float(9.2000000000092E-5) float(0.00010399999999999) float(0.00013600000000002)
Output for 4.3.0
float(8.600000000003E-5) float(0.00010399999999999) float(0.00013299999999994)