3v4l.org

run code in 300+ PHP versions simultaneously
<?php $searchString = "2014-02-20"; if (preg_match('/\b\d{4}-\d{2}-\d{2}\b/' $searchString)) { echo "Seach string is a date wish dashes."; } if (preg_match('/\b\d{2}/\d{2}/\d{4}\b/' $searchString)) { echo "Seach string is a date wish slashes."; }

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.260.0230.07018.99
5.4.250.0270.06719.21
5.4.240.0270.06319.21
5.4.230.0200.05718.85
5.4.220.0300.06319.21
5.4.210.0270.06718.86
5.4.200.0270.03719.16
5.4.190.0270.07318.84
5.4.180.0170.05019.00
5.4.170.0270.04719.13
5.4.160.0230.07318.94
5.4.150.0330.04318.96
5.4.140.0270.05016.46
5.4.130.0270.07016.45
5.4.120.0230.07016.46
5.4.110.0300.05316.55
5.4.100.0200.06316.40
5.4.90.0230.05016.45
5.4.80.0270.05016.36
5.4.70.0200.04316.25
5.4.60.0300.06016.49
5.4.50.0270.06316.32
5.4.40.0270.06316.30
5.4.30.0230.06016.16
5.4.20.0330.05716.40
5.4.10.0270.07016.53
5.4.00.0230.06315.79
5.3.280.0200.05014.47
5.3.270.0170.04014.45
5.3.260.0200.05014.44
5.3.250.0230.07314.46
5.3.240.0270.07014.59
5.3.230.0300.04314.47
5.3.220.0230.04314.52
5.3.210.0330.04714.43
5.3.200.0200.05314.62
5.3.190.0270.06314.51
5.3.180.0200.06714.47
5.3.170.0270.04314.59
5.3.160.0300.04314.52
5.3.150.0270.06314.51
5.3.140.0300.06014.50
5.3.130.0170.04714.47
5.3.120.0130.04014.40
5.3.110.0200.04014.64
5.3.100.0300.07013.99
5.3.90.0330.06013.88
5.3.80.0170.04314.04
5.3.70.0230.03013.92
5.3.60.0270.03313.80
5.3.50.0230.04313.89
5.3.40.0300.04013.74
5.3.30.0270.02713.75
5.3.20.0230.07013.58
5.3.10.0200.06713.51
5.3.00.0230.06013.41

preferences:
136.94 ms | 1394 KiB | 7 Q