3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('/(?:\D+|<\d+>)*[!?]/', 'foobar foobar foobar'); if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) { echo 'Backtrack limit was exhausted!'; } if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) { echo 'Backtrack limit was exhausted!'; }

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)
8.4.130.0080.00818.02
8.4.120.0110.01022.35
8.4.110.0130.01118.22
8.4.100.0110.01517.84
8.4.90.0090.01520.30
8.4.80.0050.00518.95
8.4.70.0050.00522.66
8.4.60.0110.01420.69
8.4.50.0150.00817.96
8.4.40.0180.00617.45
8.4.30.0170.00517.52
8.4.20.0160.00817.41
8.4.10.0170.00817.50
8.3.260.0060.00616.72
8.3.250.0110.01118.95
8.3.240.0140.00716.87
8.3.230.0040.00616.70
8.3.220.0080.00818.85
8.3.210.0060.00418.72
8.3.200.0060.00416.85
8.3.190.0030.00717.22
8.3.180.0170.00716.78
8.3.170.0160.00616.90
8.3.160.0170.00616.37
8.3.150.0170.00816.69
8.3.140.0190.00616.65
8.3.130.0150.00716.61
8.3.120.0140.00616.75
8.3.110.0180.00716.83
8.3.100.0150.00816.46
8.3.90.0170.00716.56
8.3.80.0150.00816.74
8.3.70.0170.00616.91
8.3.60.0150.00816.68
8.3.50.0170.00516.59
8.3.40.0200.00417.35
8.3.30.0110.00917.25
8.3.20.0120.00817.41
8.3.10.0150.00717.64
8.3.00.0100.00317.65
8.2.290.0050.00516.94
8.2.280.0120.00716.61
8.2.270.0170.00416.28
8.2.260.0120.00716.43
8.2.250.0140.00416.59
8.2.240.0150.00416.56
8.2.230.0130.00716.41
8.2.220.0120.01016.56
8.2.210.0160.00418.23
8.2.200.0150.00516.47
8.2.190.0120.00716.44
8.2.180.0130.00616.26
8.2.170.0150.00617.67
8.2.160.0160.00617.69
8.2.150.0160.00517.49
8.2.140.0150.00617.48
8.2.130.0140.00617.52
8.2.120.0130.00917.28
8.2.110.0150.00517.63
8.2.100.0170.00517.68
8.2.90.0150.00717.43
8.2.80.0140.00817.52
8.2.70.0140.00817.48
8.2.60.0170.00417.51
8.2.50.0130.00817.25
8.2.40.0150.00717.64
8.2.30.0100.00917.41
8.2.20.0130.00717.64
8.2.10.0130.00517.26
8.2.00.0130.00517.18
8.1.320.0130.00715.86

preferences:
33.9 ms | 403 KiB | 5 Q