3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'email already exists\r\n\r\nsuccess\r\n\r\ncoreg_status:duplicate\r\n\r\nlead_status:success\r\n'; $test = str_replace("\\r\\n", " ", $str); $hmm = explode("\n", $test); var_dump($hmm);

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.0040.01419.25
7.1.100.0060.00618.23
7.1.70.0000.00717.10
7.1.60.0030.02019.46
7.1.50.0040.01916.97
7.1.00.0130.06322.42
7.0.200.0000.00716.50
7.0.140.0070.06722.00
7.0.60.0070.05719.84
7.0.50.0030.08717.85
7.0.40.0070.08720.40
7.0.30.0730.05020.00
7.0.20.0330.03720.12
7.0.10.0100.07720.09
7.0.00.0130.08320.11
5.6.280.0030.07320.77
5.6.210.0130.07020.66
5.6.200.0070.05318.18
5.6.190.0100.08720.45
5.6.180.0270.06320.77
5.6.170.0200.04720.47
5.6.160.0030.04320.37
5.6.150.0100.03318.16
5.6.140.0100.08018.21
5.6.130.0100.07718.15
5.6.120.0030.07321.04
5.6.110.0030.04021.12
5.6.100.0070.06720.96
5.6.90.0130.07321.03
5.6.80.0030.07720.43
5.6.70.4100.04020.36
5.5.350.0330.05020.29
5.5.340.0070.04017.88
5.5.330.0100.07720.56
5.5.320.0300.07720.29
5.5.310.0370.06720.32
5.5.300.0000.04017.98
5.5.290.0130.07717.97
5.5.280.0030.04020.68
5.5.270.0130.05020.86
5.5.260.0100.05320.97
5.5.250.0130.07720.68
5.5.240.0300.05020.18
5.4.450.0670.06019.09
5.4.440.0630.06019.30
5.4.430.0700.05019.09
5.4.420.0700.05719.09
5.4.410.0770.05019.49
5.4.400.1000.05019.08
5.4.390.0700.05718.77
5.4.380.0270.05718.59
5.4.370.0300.05318.50
5.4.360.0230.07018.63
5.4.350.0200.06318.50
5.4.340.0500.06018.49
5.4.320.0100.03712.45
5.4.310.0060.03912.45
5.4.300.0060.03612.45
5.4.290.0050.04112.43
5.4.280.0070.03412.33
5.4.270.0030.03912.33
5.4.260.0060.03712.33
5.4.250.0030.04112.33
5.4.240.0040.03812.33
5.4.230.0070.03712.32
5.4.220.0060.03812.32
5.4.210.0060.03812.32
5.4.200.0110.04612.32
5.4.190.0040.04012.32
5.4.180.0080.03312.32
5.4.170.0080.03312.33
5.4.160.0050.03612.33
5.4.150.0060.03512.32
5.4.140.0020.04012.00
5.4.130.0040.03612.00
5.4.120.0040.03611.95
5.4.110.0060.03411.95
5.4.100.0040.03611.95
5.4.90.0110.03511.95
5.4.80.0060.03611.95
5.4.70.0080.03311.95
5.4.60.0120.02911.95
5.4.50.0030.03811.94
5.4.40.0070.03411.94
5.4.30.0070.03411.93
5.4.20.0040.03911.93
5.4.10.0050.03511.93
5.4.00.0080.03411.42
5.3.290.0060.04112.80
5.3.280.0050.03912.71
5.3.270.0030.04112.72
5.3.260.0050.03912.72
5.3.250.0080.03512.72
5.3.240.0080.03712.71
5.3.230.0070.03712.71
5.3.220.0040.03912.68
5.3.210.0040.04012.68
5.3.200.0050.03712.68
5.3.190.0070.03712.68
5.3.180.0090.03412.67
5.3.170.0030.04012.67
5.3.160.0070.03512.67
5.3.150.0090.03612.68
5.3.140.0110.03212.66
5.3.130.0040.04112.66
5.3.120.0070.03812.66
5.3.110.0050.03912.66
5.3.100.0050.03712.12
5.3.90.0040.03812.08
5.3.80.0080.03412.07
5.3.70.0070.03612.07
5.3.60.0040.03812.06
5.3.50.0060.03712.00
5.3.40.0070.03512.00
5.3.30.0040.03711.96
5.3.20.0040.03711.72
5.3.10.0060.03411.69
5.3.00.0040.03711.68
5.2.170.0050.0349.18
5.2.160.0040.0309.18
5.2.150.0030.0339.18
5.2.140.0040.0349.17
5.2.130.0060.0369.13
5.2.120.0070.0449.13
5.2.110.0070.0339.14
5.2.100.0060.0299.14
5.2.90.0060.0309.14
5.2.80.0040.0319.14
5.2.70.0040.0329.13
5.2.60.0070.0289.09
5.2.50.0060.0309.06
5.2.40.0070.0279.04
5.2.30.0050.0329.01
5.2.20.0080.0268.99
5.2.10.0040.0288.91
5.2.00.0070.0268.78
5.1.60.0060.0228.06
5.1.50.0060.0238.05
5.1.40.0040.0248.04
5.1.30.0070.0238.39
5.1.20.0060.0268.41
5.1.10.0050.0268.14
5.1.00.0050.0268.13
5.0.50.0030.0226.62
5.0.40.0050.0186.48
5.0.30.0010.0346.29
5.0.20.0040.0196.26
5.0.10.0020.0216.23
5.0.00.0020.0326.23
4.4.90.0020.0224.78
4.4.80.0040.0144.76
4.4.70.0000.0194.75
4.4.60.0040.0144.76
4.4.50.0030.0154.77
4.4.40.0040.0254.70
4.4.30.0010.0184.76
4.4.20.0030.0154.84
4.4.10.0040.0144.85
4.4.00.0020.0264.76
4.3.110.0030.0224.67
4.3.100.0050.0204.67
4.3.90.0030.0144.63
4.3.80.0050.0264.59
4.3.70.0030.0144.63
4.3.60.0040.0134.62
4.3.50.0030.0154.63
4.3.40.0020.0244.54
4.3.30.0020.0153.28
4.3.20.0010.0173.26
4.3.10.0020.0253.21
4.3.00.0030.02310.54