3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $line = '"2012-08-01 00:00:00","41121","26295532","pneuman.sklik@seznam.cz","clie13546","15789276","""Pneu servis Internacional, spol. s r. o.""","None","None","False","corporate","deposit","","wbox_deductible","channel_transfer","15000.00","newbusinessreport","13546","15789276","\\Pneu servis Internacional, spol. s r. o.\"""""","Český Krumlov","Jihočeský kraj","Hanzal Petr","Sauto","Obchod","Sauto","Hanzal Petr","Sauto","Obchod","Sauto","Hanzal Petr","Sauto","Obchod","Sauto","Štětková Naděžda","JV Čechy 4","Obchodní síť","JVC"'; $line = '"220812","999 Kč za 25CD \""Antologie české populární hudby 1965-89\"" v hodnotě 1999 Kč","partner-self@slevomat.cz","partner-self@slevomat.cz","30073","Praha","Zboží","Nakupování / zboží","2011-02-14 00:00:00","2011-02-20 23:59:59","0","0.00","0.00","0.00","10","2011-02-15 00:00:00","2011-05-15 23:59:59","Yes","0","1","14","100","100","100","Praha","1","120","0","0.00","7232","0","0","1","1","1","0","0","0","1","0","0","0","0","0","0","--empty--","","katerina.horvathova@slevomat.cz","katerina.horvathova@slevomat.cz","","","Všechny slevy","0","0","0","0","--empty--","Local","katerina.horvathova@slevomat.cz","1","No","3rd Party Goods"'; $line = explode('","', $line); $line[0] = substr(trim($line[0], "\t\n\r"), 1); $lastItemIndex = count($line) - 1; $lastItem = rtrim($line[$lastItemIndex], "\t\n\r"); $line[$lastItemIndex] = substr($lastItem, 0, strlen($lastItem)-1); foreach ($line as &$l) { $l = str_replace('\"', '""', $l); $l = stripcslashes($l); } print_r($line);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0000.01219.50
7.1.100.0060.00318.22
7.1.70.0000.00817.31
7.1.60.0030.01419.46
7.1.50.0030.01316.85
7.1.00.0070.07322.36
7.0.200.0050.00216.92
7.0.140.0070.07022.13
7.0.60.0030.06720.11
7.0.50.0070.05317.73
7.0.40.0030.07720.11
7.0.30.0270.07320.18
7.0.20.0230.06320.07
7.0.10.0100.04020.09
7.0.00.0000.10020.11
5.6.280.0070.07320.89
5.6.210.0100.07020.70
5.6.200.0200.06318.15
5.6.190.0100.05320.57
5.6.180.0330.06720.50
5.6.170.0330.07020.44
5.6.160.0070.03720.57
5.6.150.0170.07018.19
5.6.140.0170.04718.26
5.6.130.0070.04018.24
5.6.120.0000.04721.01
5.6.110.0100.08320.93
5.6.100.0100.06320.99
5.6.90.0000.04321.00
5.6.80.0070.07720.38
5.5.350.0300.07020.41
5.5.340.0030.07018.03
5.5.330.0070.08320.43
5.5.320.0170.04720.34
5.5.310.0230.08320.37
5.5.300.0100.07718.08
5.5.290.0100.03318.08
5.5.280.0200.06720.90
5.5.270.0070.08320.77
5.5.260.0170.06720.75
5.5.250.0130.06720.49
5.5.240.0030.08320.36
5.4.450.0070.06337.90
5.4.440.0370.04732.62
5.4.430.0100.07319.19
5.4.420.0230.04027.09
5.4.410.0230.04725.39
5.4.400.0330.04723.77
5.4.390.0230.04322.00
5.4.380.0300.06018.48
5.4.370.0400.04718.52
5.4.360.0470.06318.52
5.4.350.0400.05718.56
5.4.340.0330.05318.78
5.4.320.0070.03912.50
5.4.310.0100.04312.50
5.4.300.0130.05012.50
5.4.290.0090.05812.49
5.4.280.0110.04912.39
5.4.270.0100.06212.39
5.4.260.0100.05612.39
5.4.250.0090.05412.39
5.4.240.0110.05112.39
5.4.230.0110.05512.38
5.4.220.0100.05312.38
5.4.210.0090.05212.38
5.4.200.0140.04912.38
5.4.190.0120.05112.38
5.4.180.0080.05312.38
5.4.170.0150.04912.39
5.4.160.0080.05212.39
5.4.150.0110.04912.38
5.4.140.0100.05412.06
5.4.130.0110.04812.05
5.4.120.0120.04512.01
5.4.110.0090.04812.01
5.4.100.0070.04812.00
5.4.90.0090.05012.00
5.4.80.0090.05212.00
5.4.70.0090.05212.00
5.4.60.0110.04912.00
5.4.50.0090.05312.00
5.4.40.0120.05011.98
5.4.30.0100.04711.99
5.4.20.0100.06911.99
5.4.10.0140.05611.98
5.4.00.0110.05211.48
5.3.290.0110.04112.80
5.3.280.0150.07012.70
5.3.270.0090.05712.72
5.3.260.0080.05612.72
5.3.250.0110.05512.72
5.3.240.0100.05612.71
5.3.230.0080.05612.71
5.3.220.0100.05812.68
5.3.210.0120.05512.68
5.3.200.0100.05312.68
5.3.190.0090.05012.68
5.3.180.0110.04912.67
5.3.170.0090.05012.67
5.3.160.0070.05312.68
5.3.150.0120.05112.68
5.3.140.0080.05112.66
5.3.130.0080.05312.66
5.3.120.0090.05312.66
5.3.110.0100.05112.66
5.3.100.0100.04912.13
5.3.90.0120.04712.10
5.3.80.0130.04312.09
5.3.70.0080.05712.09
5.3.60.0060.05012.07
5.3.50.0090.04712.02
5.3.40.0070.04912.02
5.3.30.0080.05111.98
5.3.20.0100.04711.76
5.3.10.0060.05011.73
5.3.00.0090.05011.71
5.2.170.0090.0409.22
5.2.160.0050.0439.22
5.2.150.0060.0399.22
5.2.140.0100.0279.21
5.2.130.0040.0319.18
5.2.120.0060.0299.18
5.2.110.0090.0279.18
5.2.100.0060.0299.18
5.2.90.0090.0279.18
5.2.80.0060.0329.17
5.2.70.0070.0299.17
5.2.60.0090.0289.13
5.2.50.0050.0319.10
5.2.40.0070.0309.08
5.2.30.0070.0319.05
5.2.20.0070.0279.04
5.2.10.0050.0288.95
5.2.00.0070.0298.81
5.1.60.0060.0248.09
5.1.50.0060.0248.08
5.1.40.0030.0268.06
5.1.30.0060.0318.41
5.1.20.0050.0328.43
5.1.10.0120.0258.15
5.1.00.0060.0268.15
5.0.50.0040.0216.64
5.0.40.0070.0246.50
5.0.30.0030.0326.31
5.0.20.0030.0206.29
5.0.10.0060.0196.26
5.0.00.0060.0316.25
4.4.90.0080.0194.78
4.4.80.0020.0164.75
4.4.70.0020.0164.75
4.4.60.0020.0164.75
4.4.50.0050.0134.77
4.4.40.0010.0284.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0050.0154.85
4.4.00.0020.0274.76
4.3.110.0040.0184.66
4.3.100.0050.0134.67
4.3.90.0040.0144.63
4.3.80.0040.0314.58
4.3.70.0050.0154.63
4.3.60.0010.0234.63
4.3.50.0160.0304.63
4.3.40.0050.0224.54
4.3.30.0020.0163.29
4.3.20.0030.0173.27
4.3.10.0030.0213.22
4.3.00.0070.01321.44