3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Reman. 9mm Luger 125 gr. Match"; if(preg_match('/(9mm Luger|40 S&W|45 ACP)(?=.*Match)/',$string,$matches){ echo "match"; }else{ echo "no match"; }

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)
7.0.10.0000.05020.24
7.0.00.0070.08320.05
5.6.160.0030.05020.57
5.6.150.0070.08318.15
5.6.140.0070.04718.18
5.6.130.0030.05318.13
5.6.120.0100.08321.00
5.6.110.0030.09021.14
5.6.100.0200.07321.04
5.6.90.0100.06020.97
5.6.80.0030.04020.41
5.5.300.0070.04318.02
5.5.290.0070.08018.03
5.5.280.0030.06020.77
5.5.270.0130.08020.77
5.5.260.0100.07720.89
5.5.250.0100.07720.61
5.5.240.0200.05720.24

preferences:
139.69 ms | 1394 KiB | 7 Q