3v4l.org

run code in 300+ PHP versions simultaneously
<?php $patterns = [ '/[\x{ff}\x{100}\x{8000}\x{8002}\x{8004}\x{8006}]/u' => "\u{100}", '/[\x{ff}\x{100}\x{8000}\x{8002}\x{8004}\x{8006}\x{8008}]/u' => "\u{100}", '/[\x{ff}\x{101}\x{8000}\x{8002}\x{8004}\x{8006}\x{8008}]/u' => "\u{101}", ]; foreach ($patterns as $pattern => $str) { if (preg_match($pattern, $str, $m)) { echo "0: ", json_encode($m[0]), "\n"; } else { echo "No match.\n"; } }

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.140.0420.00617.74
8.4.130.0380.01017.71
8.4.120.0470.01317.52
8.4.110.0410.01217.82
8.4.100.0340.01417.90
8.4.90.0370.01017.76
8.4.80.0410.00817.57
8.4.70.0370.01018.03
8.4.60.0350.01217.61
8.4.50.0410.00617.94
8.4.40.0440.00917.82
8.4.30.0430.00717.81
8.4.20.0440.00917.73
8.4.10.0390.01217.65
8.3.270.0380.00916.81
8.3.260.0350.01216.69
8.3.250.0430.00616.62
8.3.240.0440.00616.41
8.3.230.0370.01016.77
8.3.220.0380.01216.55
8.3.210.0360.00716.70
8.3.200.0340.01116.44
8.3.190.0340.01016.86
8.3.180.0350.00916.21
8.3.170.0370.01116.46
8.3.160.0440.00816.60
8.3.150.0430.01116.43
8.3.140.0410.01016.60
8.3.130.0340.00816.60
8.3.120.0330.01016.49
8.3.110.0320.01016.73
8.3.100.0410.01016.81
8.3.90.0380.01216.91
8.3.80.0440.01116.89
8.3.70.0370.01216.71
8.3.60.0380.00916.64
8.3.50.0420.00716.58
8.3.40.0400.00817.46
8.3.30.0260.01117.57
8.3.20.0320.00517.39
8.3.10.0280.00517.60
8.3.00.0270.01017.46
8.2.290.0200.01016.47
8.2.280.0170.01416.59
8.2.270.0250.01116.05
8.2.260.0220.01216.43
8.2.250.0270.00916.80
8.2.240.0250.00916.60
8.2.230.0220.00616.54
8.2.220.0250.01116.66
8.2.210.0220.01016.76
8.2.200.0220.00916.67
8.2.190.0220.01516.36
8.2.180.0210.01716.51
8.2.170.0290.01017.70
8.2.160.0210.01117.84
8.2.150.0280.00717.85
8.2.140.0230.01017.51
8.2.130.0310.00517.79
8.2.120.0270.00917.91
8.2.110.0220.01217.78
8.2.100.0300.00717.79
8.2.90.0300.00817.68
8.2.80.0350.00517.62
8.2.70.0220.01017.63
8.2.60.0260.01217.57
8.2.50.0310.01317.39
8.2.40.0280.00517.48
8.2.30.0230.01017.32
8.2.20.0240.01417.63
8.2.10.0210.01717.26
8.2.00.0270.00417.88

preferences:
35.33 ms | 403 KiB | 5 Q