3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $testStr = 'test test test'; if (preg_match('/(test|test3)$/', $testStr)) { 1+1; }

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.0200.08320.08
7.0.10.0030.04320.30
7.0.00.0130.07720.16
5.6.170.0370.07020.38
5.6.160.0070.05320.39
5.6.150.0200.07018.20
5.6.140.0030.04018.18
5.6.130.0070.08018.28
5.6.120.0070.04320.98
5.6.110.0200.07320.99
5.6.100.0170.07720.95
5.6.90.0130.08020.96
5.6.80.0030.04020.36
5.5.310.0400.07020.34
5.5.300.0100.05018.00
5.5.290.0070.07317.94
5.5.280.0070.08720.86
5.5.270.0200.07320.85
5.5.260.0070.04020.64
5.5.250.0070.06720.68
5.5.240.0100.06720.07

preferences:
140.91 ms | 1394 KiB | 7 Q