3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sitelist = 'SC001rug,SC002nw,SC003nrge'; $siteId = preg_quote('SC001', '/'); $regex = "/$siteId\K[^\s,]+/"; if (preg_match($regex, $sitelist, $matches)) { var_export($matches); } else { echo "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.30.0110.00619.54
8.5.20.0100.00720.14
8.5.10.0110.00916.95
8.5.00.0110.01219.92
8.4.180.0110.01025.63
8.4.170.0110.00923.92
8.4.160.0110.01023.94
8.4.150.0080.00516.86
8.4.140.0170.00417.91
8.4.130.0060.00517.92
8.4.120.0110.00922.21
8.4.110.0080.00918.60
8.4.100.0060.00418.92
8.4.90.0090.00218.83
8.4.80.0140.00818.56
8.4.70.0130.00818.28
8.4.60.0150.00518.81
8.4.50.0140.00618.60
8.4.40.0200.00018.66
8.4.30.0130.00718.59
8.4.20.0180.00319.84
8.4.10.0060.00319.64
8.3.300.0090.01120.67
8.3.290.0120.00820.94
8.3.280.0130.00918.41
8.3.270.0130.00616.60
8.3.260.0120.00816.66
8.3.250.0130.00619.07
8.3.240.0110.00816.55
8.3.230.0060.00216.43
8.3.220.0060.01018.71
8.3.210.0010.00716.76
8.3.200.0060.01116.84
8.3.190.0060.00216.98
8.3.180.0110.00717.12
8.3.170.0070.01120.69
8.3.160.0180.00017.13
8.3.150.0150.00417.24
8.3.140.0120.00317.03
8.3.130.0080.00018.40
8.3.120.0100.00720.73
8.3.110.0060.00316.78
8.3.100.0000.00924.06
8.3.90.0060.00326.77
8.3.80.0090.00017.97
8.3.70.0070.00716.38
8.3.60.0110.01125.92
8.3.50.0150.00625.92
8.3.40.0360.00725.92
8.3.30.0290.01425.92
8.3.20.0220.02225.92
8.3.10.0340.00925.92
8.3.00.0490.00325.92
8.2.300.0130.00722.08
8.2.290.0100.00820.38
8.2.280.0090.00918.74
8.2.270.0110.00718.84
8.2.260.0080.00018.43
8.2.250.0060.00316.59
8.2.240.0110.00718.85
8.2.230.0080.00020.94
8.2.220.0060.00337.54
8.2.210.0040.01126.77
8.2.200.0060.00317.00
8.2.190.0060.01218.54
8.2.180.0520.01125.92
8.2.170.0400.00925.92
8.2.160.0470.01325.92
8.2.150.0370.00725.92
8.2.140.0300.00925.92
8.2.130.0290.00725.92
8.2.120.0310.00625.92
8.2.110.0270.00625.92
8.2.100.0300.00325.92
8.2.90.0240.00925.92
8.2.80.0190.01525.92
8.2.70.0300.00725.92
8.2.60.0420.00625.92
8.2.50.0500.00325.92
8.2.40.0310.00325.92
8.2.30.0240.01425.92
8.2.20.0280.01625.92
8.2.10.0310.00725.92
8.2.00.0250.00625.92
8.1.340.0040.00617.82
8.1.330.0090.01122.26
8.1.320.0130.00816.28
8.1.310.0090.00616.57
8.1.300.0090.00017.94
8.1.290.0000.01030.84
8.1.280.0330.00025.92
8.1.270.0270.01325.92
8.1.260.0360.00625.92
8.1.250.0320.00625.92
8.1.240.0310.00625.92
8.1.230.0190.01625.92
8.1.220.0240.01225.92
8.1.210.0270.01025.92
8.1.200.0300.00925.92
8.1.190.0280.00325.92
8.1.180.0180.01225.92
8.1.170.0330.01025.92
8.1.160.0320.00725.92
8.1.150.0200.01025.92
8.1.140.0240.00625.92
8.1.130.0260.00625.92
8.1.120.0340.01025.92
8.1.110.0410.00525.92
8.1.100.0380.00325.92
8.1.90.0280.01325.92
8.1.80.0340.01125.92
8.1.70.0410.00725.92
8.1.60.0310.01025.92
8.1.50.0380.00325.92
8.1.40.0310.01425.92
8.1.30.0390.00925.92
8.1.20.0370.01225.92
8.1.10.0340.01425.92
8.1.00.0270.01625.92

preferences:
62.05 ms | 973 KiB | 5 Q