3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( preg_match("\x01^((?:(.)\1{2,}))\\z\x01u#", 'xaaax') ); var_dump( preg_match('"x01^((?:(.)\2{2,}))\\z\x01u#", 'xaaax') );

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.20.0330.06720.30
7.0.10.0070.08720.25
7.0.00.0200.07020.30
5.6.170.0200.08720.44
5.6.160.0230.06320.55
5.6.150.0130.07018.16
5.6.140.0070.05018.28
5.6.130.0070.04718.18
5.6.120.0070.04021.03
5.6.110.0100.08021.09
5.6.100.0030.04020.95
5.6.90.0070.06721.09
5.6.80.0170.07320.40
5.5.310.0270.04320.34
5.5.300.0100.03717.92
5.5.290.0000.04318.07
5.5.280.0000.09020.97
5.5.270.0100.08020.88
5.5.260.0100.03720.79
5.5.250.0100.08020.59
5.5.240.0100.07320.25

preferences:
131.27 ms | 1398 KiB | 7 Q