3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = 'Peugeot 107' $patterns = array('107', '108', '207', '208', '2008', '308', '3008', '508', '5008 SW' ); echo preg_replace('/(\d+)/i', '<span class="h1firstword">$1</span>', $title); ?>

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.300.0070.05412.50
5.4.290.0160.09312.49
5.4.280.0210.07812.39
5.4.270.0130.05512.39
5.4.260.0190.05712.39
5.4.250.0090.07012.39
5.4.240.0150.07512.39
5.4.230.0120.05312.38
5.4.220.0110.05212.38
5.4.210.0120.05012.38
5.4.200.0080.05412.38
5.4.190.0130.04712.38
5.4.180.0130.04712.38
5.4.170.0080.05212.39
5.4.160.0070.05012.38
5.4.150.0080.04912.38
5.4.140.0110.05112.07
5.4.130.0150.04312.05
5.4.120.0090.05012.01
5.4.110.0110.04812.01
5.4.100.0060.05012.01
5.4.90.0110.05012.01
5.4.80.0110.05012.01
5.4.70.0090.05012.01
5.4.60.0120.04712.00
5.4.50.0140.04512.00
5.4.40.0070.05212.00
5.4.30.0080.05011.99
5.4.20.0090.05111.98
5.4.10.0080.05012.00
5.4.00.0100.05111.49
5.3.280.0120.04912.70
5.3.270.0090.05412.72
5.3.260.0160.04812.72
5.3.250.0090.05412.72
5.3.240.0100.05212.72
5.3.230.0130.04812.71
5.3.220.0120.05012.68
5.3.210.0070.04912.68
5.3.200.0140.04612.68
5.3.190.0290.07712.67
5.3.180.0160.06512.67
5.3.170.0150.05112.67
5.3.160.0090.04712.68
5.3.150.0040.05312.68
5.3.140.0090.05612.66
5.3.130.0100.05712.66
5.3.120.0070.06112.66
5.3.110.0070.06012.66
5.3.100.0080.05612.12
5.3.90.0130.05312.08
5.3.80.0080.05412.08
5.3.70.0080.05412.07
5.3.60.0100.05212.06
5.3.50.0080.05212.00
5.3.40.0070.05312.00
5.3.30.0120.04811.95
5.3.20.0090.04311.72
5.3.10.0090.04111.70
5.3.00.0070.04911.68

preferences:
138.12 ms | 1394 KiB | 7 Q