3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "1’With the youth in ’68 and ‘86 汉语 �..."; $string = preg_replace('/[\x00-\x1F\x7F-\xFF]/', '', $string); $string = str_replace("�","", $string); print($string); print ord("�");

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.00418.84
8.4.120.0120.00823.96
8.4.110.0090.00119.00
8.4.100.0140.00618.70
8.4.90.0110.00520.39
8.4.80.0040.00518.86
8.4.70.0070.00218.89
8.4.60.0080.01019.05
8.4.50.0130.00718.91
8.4.40.0100.01017.99
8.4.30.0060.01320.39
8.4.20.0140.00717.84
8.4.10.0060.00317.90
8.3.260.0110.00816.81
8.3.250.0040.00418.87
8.3.240.0100.00916.89
8.3.230.0170.00416.73
8.3.220.0150.00419.04
8.3.210.0090.00918.62
8.3.200.0060.00316.89
8.3.190.0110.00717.21
8.3.180.0110.00718.89
8.3.170.0090.00916.61
8.3.160.0090.00617.30
8.3.150.0030.00716.65
8.3.140.0090.00916.77
8.3.130.0040.00418.20
8.3.120.0110.00018.88
8.3.110.0160.00020.94
8.3.100.0130.01024.06
8.3.90.0000.00826.77
8.3.80.0060.00316.75
8.3.70.0110.00716.63
8.3.60.0120.00316.75
8.3.50.0060.01219.88
8.3.40.0120.00620.19
8.3.30.0060.00918.83
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.290.0060.00420.48
8.2.280.0100.00718.57
8.2.270.0130.00717.03
8.2.260.0110.00416.80
8.2.250.0050.00318.41
8.2.240.0110.00416.96
8.2.230.0070.00322.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0080.00316.75
8.2.190.0130.00916.88
8.2.180.0100.00725.92
8.2.170.0070.00718.83
8.2.160.0140.00022.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0050.00221.25
8.2.110.0060.00321.04
8.2.100.0070.00717.84
8.2.90.0100.00019.21
8.2.80.0090.00017.97
8.2.70.0040.00417.88
8.2.60.0090.00017.80
8.2.50.0040.00418.07
8.2.40.0000.00921.04
8.2.30.0070.00018.09
8.2.20.0040.00420.38
8.2.10.0070.00317.86
8.2.00.0090.00218.61
8.1.330.0110.00821.74
8.1.320.0110.00917.79
8.1.310.0110.00716.23
8.1.300.0030.00619.63
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00321.12
8.1.230.0000.01118.98
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0000.00917.48
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00721.95
8.1.150.0000.00718.70
8.1.140.0040.00417.54
8.1.130.0000.00917.40
8.1.120.0030.00717.52
8.1.110.0040.00817.58
8.1.100.0070.00517.54
8.1.90.0070.00617.55
8.1.80.0120.00117.55
8.1.70.0070.00517.46
8.1.60.0060.00417.59
8.1.50.0120.00417.64
8.1.40.0140.00617.57
8.1.30.0140.00517.67
8.1.20.0110.00417.68
8.1.10.0090.00617.55
8.1.00.0110.00417.47
8.0.300.0040.00421.50
8.0.290.0070.00016.75
8.0.280.0000.00718.46
8.0.270.0050.00417.14
8.0.260.0040.00816.95
8.0.250.0030.00616.98
8.0.240.0020.00617.06
8.0.230.0050.00317.02
8.0.220.0050.00616.87
8.0.210.0040.00616.90
8.0.200.0090.00316.99
8.0.190.0090.00316.98
8.0.180.0030.00916.92
8.0.170.0110.00416.90
8.0.160.0100.00416.89
8.0.150.0100.00316.90
8.0.140.0080.00416.83
8.0.130.0080.00516.90
8.0.120.0090.00416.86
8.0.110.0080.00416.85
8.0.100.0080.00516.89
8.0.90.0090.00516.72
8.0.80.0080.00616.88
8.0.70.0070.00616.81
8.0.60.0120.00116.84
8.0.50.0120.00216.84
8.0.30.0080.00516.82
8.0.20.0080.00516.85
8.0.10.0100.00416.93
7.4.330.0050.00416.93
7.4.320.0120.00216.65
7.4.300.0080.00316.60
7.4.290.0100.00416.56
7.4.280.0100.00416.61
7.4.270.0110.00516.57
7.4.260.0130.00216.59
7.4.250.0140.00416.53
7.4.240.0090.00616.60
7.4.230.0120.00516.54
7.4.220.0090.00516.58
7.4.210.0090.00616.52
7.4.200.0100.00416.50
7.4.190.0100.00616.66
7.4.180.0090.00516.52
7.4.160.0070.00616.54
7.4.150.0110.00416.63
7.4.140.0100.00516.50
7.4.130.0080.00516.59
7.4.120.0120.00116.51
7.4.110.0120.00316.53
7.4.100.0090.00516.52
7.4.90.0120.00216.47
7.4.80.0090.00516.58
7.4.70.0090.00516.57
7.4.60.0090.00416.61
7.4.50.0100.00316.39
7.4.40.0060.00716.53
7.4.30.0120.00116.55
7.4.20.0060.00516.49
7.4.10.0070.00416.49
7.4.00.0070.00416.46
5.5.380.0090.00119.52

preferences:
25.45 ms | 403 KiB | 5 Q