3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_zwsp_utf8 = "\xE2\x80\x8B"; echo "Binary mode: match three bytes\n-----\n"; echo "in: $input_zwsp_utf8--\nhex: ".bin2hex($input_zwsp_utf8)."\n"; $output = preg_replace('/\xE2\x80\x8B/', '', $input_zwsp_utf8); echo "out: $output--\nhex: ".bin2hex($output)."\n\n"; echo "UTF-8 mode: match a Unicode code point\n-----\n"; echo "in: $input_zwsp_utf8--\nhex: ".bin2hex($input_zwsp_utf8)."\n"; $output = preg_replace('/\x{200B}/u', '', $input_zwsp_utf8); echo "out: $output--\nhex: ".bin2hex($output)."\n\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.5.00.0130.00921.66
8.4.150.0030.00014.05
8.4.140.0110.01117.58
8.4.130.0140.00717.99
8.4.120.0140.00624.18
8.4.110.0080.00218.91
8.4.100.0150.00617.97
8.4.90.0100.01120.75
8.4.80.0050.00318.82
8.4.70.0060.00618.95
8.4.60.0110.00920.38
8.4.50.0120.00518.64
8.4.40.0060.00317.79
8.4.30.0100.00718.99
8.4.20.0030.00524.15
8.4.10.0100.01023.47
8.3.280.0030.00014.05
8.3.270.0110.00816.78
8.3.260.0110.00816.48
8.3.250.0100.00916.63
8.3.240.0090.01120.98
8.3.230.0130.00616.52
8.3.220.0130.00818.85
8.3.210.0030.00516.84
8.3.200.0070.00616.91
8.3.190.0070.00217.10
8.3.180.0100.00818.88
8.3.170.0120.00618.93
8.3.160.0120.00619.03
8.3.150.0060.01317.19
8.3.140.0110.00416.72
8.3.130.0080.00316.73
8.3.120.0060.01018.70
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0120.00326.77
8.3.80.0100.00018.30
8.3.70.0120.00316.63
8.3.60.0180.00416.88
8.3.50.0120.00318.51
8.3.40.0060.00920.21
8.3.30.0140.00418.82
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0080.01118.82
8.2.280.0080.00218.21
8.2.270.0100.01017.07
8.2.260.0110.00716.42
8.2.250.0060.00317.11
8.2.240.0030.00617.32
8.2.230.0150.00622.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0090.00016.63
8.2.190.0040.01116.58
8.2.180.0110.00716.48
8.2.170.0150.00019.08
8.2.160.0110.00422.96
8.2.150.0070.00725.66
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0000.00826.16
8.2.110.0100.00019.24
8.2.100.0080.00418.09
8.2.90.0030.00617.63
8.2.80.0040.00418.91
8.2.70.0040.00417.90
8.2.60.0040.00417.88
8.2.50.0030.00517.75
8.2.40.0030.00617.72
8.2.30.0060.00617.72
8.2.20.0100.00217.72
8.2.10.0050.00517.74
8.2.00.0000.01017.88
8.1.330.0100.00916.11
8.1.320.0080.01118.23
8.1.310.0050.00318.31
8.1.300.0120.00620.05
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0060.00322.25
8.1.260.0140.00426.35
8.1.250.0030.00628.09
8.1.240.0040.00421.12
8.1.230.0090.00317.68
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0050.00317.48
8.1.190.0040.00417.35
8.1.180.0060.00318.10
8.1.170.0060.00617.72
8.1.160.0110.00017.72
8.1.150.0000.01219.25
8.1.140.0050.00517.72
8.1.130.0040.00817.72
8.1.120.0120.00017.72
8.1.110.0070.00417.72
8.1.100.0090.00317.72
8.1.90.0050.00517.72
8.1.80.0120.00017.72
8.1.70.0110.00019.13
8.1.60.0040.00717.72
8.1.50.0120.00317.72
8.1.40.0110.00017.72
8.1.30.0080.00417.72
8.1.20.0100.00017.72
8.1.10.0070.00517.72
8.1.00.0080.00417.72
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00617.72
8.0.270.0000.01117.72
8.0.260.0060.00617.72
8.0.250.0110.00017.72
8.0.240.0090.00317.72
8.0.230.0110.00017.72
8.0.220.0110.00017.72
8.0.210.0080.00417.72
8.0.200.0030.00817.72
8.0.190.0080.00517.72
8.0.180.0080.00317.72
8.0.170.0090.00317.72
8.0.160.0080.00417.72
8.0.150.0050.00518.62
8.0.140.0060.00617.72
8.0.130.0040.00818.61
8.0.120.0070.00417.72
8.0.110.0070.00417.72
8.0.100.0050.00517.72
8.0.90.0090.00017.72
8.0.80.0060.00617.72
8.0.70.0030.00617.72
8.0.60.0000.00817.72
8.0.50.0070.00417.72
8.0.30.0040.00717.72
8.0.20.0030.00717.72
8.0.10.0090.00017.72

preferences:
29.99 ms | 403 KiB | 5 Q