3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<span style="font-family: arial black,avant garde;"><img alt="cid:k32005" src="http://uligreetingscard.com/js/jscripts/tiny_mce/plugins/emotions/img/new/k32005.png" title="cid:k32005"><span style="color: #ff0000;">aweaweawea</span></span>"; $regex = array('/is/','/string/'); $replace = array('isnt','jedi'); echo preg_replace($regex,$replace,$string);

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.90.0200.05611.98
5.4.80.0150.04411.99
5.4.70.0150.04311.98
5.4.60.0270.07711.98
5.4.50.0190.03811.98
5.4.40.0150.04311.97
5.4.30.0310.05911.96
5.4.20.0140.04511.96
5.4.10.0260.06311.96
5.4.00.0140.04411.46
5.3.190.0210.04412.68
5.3.180.0280.06612.67
5.3.170.0230.03912.67
5.3.160.0220.04212.67
5.3.150.0220.03912.68
5.3.140.0220.05512.66
5.3.130.0160.04912.66
5.3.120.0170.04812.65
5.3.110.0180.04712.66
5.3.100.0200.04312.12
5.3.90.0320.07412.08
5.3.80.0210.04312.08
5.3.70.0290.09312.07
5.3.60.0180.04612.06
5.3.50.0220.04512.00
5.3.40.0170.04712.00
5.3.30.0160.04411.94
5.3.20.0260.06411.72
5.3.10.0190.04011.69
5.3.00.0260.05011.67

preferences:
133.71 ms | 1394 KiB | 7 Q