3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 'a1'; if (preg_match('/[^0-9]/',$id)) { print "Match"; } else { print "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)
8.5.20.0120.00520.01
8.5.10.0090.00916.66
8.5.00.0110.01123.02
8.4.170.0100.01123.79
8.4.160.0140.00823.93
8.4.150.0030.00014.05
8.4.140.0150.01517.88
8.4.130.0110.01018.03
8.4.120.0430.00917.64
8.4.110.0400.00717.70
8.4.100.0090.00117.60
8.4.90.0200.00217.91
8.4.80.0390.01017.51
8.4.70.0390.01217.82
8.4.60.0320.01117.75
8.4.50.0200.00218.10
8.4.40.0200.00617.82
8.4.30.0180.00917.53
8.4.20.0200.00517.45
8.4.10.0210.00417.59
8.3.300.0120.01020.79
8.3.290.0140.00618.64
8.3.280.0100.01020.24
8.3.270.0080.01116.70
8.3.260.0110.00616.61
8.3.250.0170.00516.41
8.3.240.0170.00416.79
8.3.230.0190.00316.65
8.3.220.0360.00516.61
8.3.210.0190.00216.64
8.3.200.0200.00216.34
8.3.190.0150.00616.64
8.3.180.0170.00516.61
8.3.170.0410.01016.53
8.3.160.0470.00716.33
8.3.150.0400.01216.57
8.3.140.0430.00916.46
8.3.130.0380.00816.61
8.3.120.0380.00616.33
8.3.110.0360.00916.29
8.3.100.0430.00916.57
8.3.90.0410.01016.28
8.3.80.0450.00716.43
8.3.70.0440.00816.73
8.3.60.0440.00716.56
8.3.50.0410.01016.48
8.3.40.0470.00617.49
8.3.30.0330.00917.46
8.3.20.0330.00717.32
8.3.10.0280.01117.57
8.3.00.0370.00717.52
8.2.300.0140.00618.29
8.2.290.0340.00816.74
8.2.280.0310.01116.39
8.2.270.0390.01016.87
8.2.260.0300.00316.70
8.2.250.0300.00716.36
8.2.240.0340.00716.65
8.2.230.0390.00416.31
8.2.220.0360.00916.76
8.2.210.0310.01116.20
8.2.200.0360.00816.40
8.2.190.0310.00716.41
8.2.180.0310.00716.27
8.2.170.0400.00617.68
8.2.160.0360.00717.84
8.2.150.0240.00517.61
8.2.140.0180.00317.58
8.2.130.0250.00617.32
8.2.120.0240.00417.64
8.2.110.0340.00717.57
8.2.100.0350.00717.81
8.2.90.0370.00317.85
8.2.80.0160.00417.75
8.2.70.0160.00417.82
8.2.60.0130.00817.76
8.2.50.0200.00717.73
8.2.40.0420.00517.62
8.2.30.0230.00817.49
8.2.20.0300.00917.64
8.2.10.0310.00717.45
8.2.00.0270.01417.32
8.1.340.0120.00817.90

preferences:
29.53 ms | 403 KiB | 5 Q