3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "test_mit_schÄnen_strand"; $search = ['Ä', 'Ö', 'Ü', 'ä', 'ö', 'ü', 'ß']; $replace = ['Ae', 'Oe', 'Ue', 'ae', 'oe', 'ue', 'ss']; $result = str_replace($search, $replace, $value); var_dump($result);

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.0200.00816.59
8.4.150.0170.00521.21
8.4.140.0340.00817.39
8.4.130.0340.00917.41
8.4.120.0390.00617.48
8.4.110.0370.00817.46
8.4.100.0360.01017.64
8.4.90.0380.00817.70
8.4.80.0390.00817.30
8.4.70.0440.01017.49
8.4.60.0380.00617.58
8.4.50.0370.00717.68
8.4.40.0380.00917.36
8.4.30.0340.01217.22
8.4.20.0400.00717.18
8.4.10.0380.00917.35
8.3.280.0130.00819.91
8.3.270.0310.01116.65
8.3.260.0350.00916.32
8.3.250.0330.01016.45
8.3.240.0370.00816.55
8.3.230.0330.01016.46
8.3.220.0350.00816.52
8.3.210.0340.01016.37
8.3.200.0360.00716.65
8.3.190.0370.00916.60
8.3.180.0390.00416.61
8.3.170.0370.00916.45
8.3.160.0380.00816.53
8.3.150.0370.00816.49
8.3.140.0390.00816.44
8.3.130.0390.00616.48
8.3.120.0370.00916.49
8.3.110.0370.00816.57
8.3.100.0360.01116.50
8.3.90.0370.01318.15
8.3.80.0350.01116.45
8.3.70.0360.01016.48
8.3.60.0370.00816.65
8.3.50.0350.01016.30
8.3.40.0370.00917.88
8.3.30.0280.00817.86
8.3.20.0310.00717.60
8.3.10.0260.00917.73
8.3.00.0260.01017.65
8.2.290.0270.00916.50
8.2.280.0300.01116.50
8.2.270.0340.01116.49
8.2.260.0270.01016.32
8.2.250.0300.00816.34
8.2.240.0280.01216.38
8.2.230.0310.01016.27
8.2.220.0320.00616.48
8.2.210.0280.01016.39
8.2.200.0200.00716.43
8.2.190.0300.00816.30
8.2.180.0280.01116.43
8.2.170.0290.00817.79
8.2.160.0260.01017.85
8.2.150.0300.00617.73
8.2.140.0310.00717.67
8.2.130.0310.00817.83
8.2.120.0350.00517.70
8.2.110.0320.01217.79
8.2.100.0320.01019.47
8.2.90.0280.00817.91
8.2.80.0260.00917.61
8.2.70.0270.00817.74
8.2.60.0280.00817.72
8.2.50.0320.00617.78
8.2.40.0250.01217.80
8.2.30.0210.00317.67
8.2.20.0120.00617.51
8.2.10.0170.00217.71
8.2.00.0130.00417.93

preferences:
14.51 ms | 403 KiB | 5 Q