3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Ahoj a. s."; $string = strtr($string, array( "\r" => "\n", "a. s." => "a.\xa0s." )); var_dump($string); $string = strtr($string, array("a.\xa0s." => "a. s.")); var_dump($string);

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.3.40.0150.00318.56
8.3.30.0110.00418.96
8.3.20.0040.00420.07
8.3.10.0050.00323.57
8.3.00.0000.00819.25
8.2.170.0070.00722.96
8.2.160.0150.00022.08
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00020.93
8.2.110.0060.00320.38
8.2.100.0110.00017.47
8.2.90.0050.00319.09
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0050.00319.82
8.2.30.0070.00017.98
8.2.20.0040.00417.49
8.2.10.0080.00017.93
8.2.00.0000.00917.73
8.1.270.0080.00018.92
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0040.00420.84
8.1.230.0030.00718.97
8.1.220.0070.00017.77
8.1.210.0000.00818.77
8.1.200.0040.00417.12
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0000.00818.83
8.1.150.0000.00718.73
8.1.140.0040.00417.37
8.1.130.0090.00017.85
8.1.120.0040.00417.39
8.1.110.0040.00417.38
8.1.100.0000.00717.34
8.1.90.0030.00317.34
8.1.80.0040.00417.29
8.1.70.0000.00717.34
8.1.60.0050.00317.56
8.1.50.0000.00817.41
8.1.40.0000.00717.35
8.1.30.0000.00817.52
8.1.20.0040.00417.63
8.1.10.0050.00317.30
8.1.00.0070.00017.38
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0040.00318.43
8.0.270.0050.00417.14
8.0.260.0050.00317.06
8.0.250.0000.00716.85
8.0.240.0030.00316.86
8.0.230.0000.00816.93
8.0.220.0030.00316.84
8.0.210.0070.00016.78
8.0.200.0030.00316.95
8.0.190.0040.00416.92
8.0.180.0030.00516.85
8.0.170.0030.00516.77
8.0.160.0000.00716.79
8.0.150.0030.00316.77
8.0.140.0000.00716.74
8.0.130.0000.00613.29
8.0.120.0050.00316.81
8.0.110.0000.00816.83
8.0.100.0070.00016.86
8.0.90.0000.00716.81
8.0.80.0060.00916.87
8.0.70.0040.00416.79
8.0.60.0000.00716.65
8.0.50.0040.00416.72
8.0.30.0120.01017.01
8.0.20.0140.00617.40
8.0.10.0000.00716.91
8.0.00.0080.01016.75
7.4.330.0050.00015.08
7.4.320.0000.00716.57
7.4.300.0060.00016.53
7.4.290.0000.00716.44
7.4.280.0000.00816.44
7.4.270.0000.00716.34
7.4.260.0040.00416.53
7.4.250.0060.00316.52
7.4.240.0070.00016.50
7.4.230.0030.00316.23
7.4.220.0030.01416.47
7.4.210.0100.01016.65
7.4.200.0030.00316.60
7.4.160.0070.01016.32
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0130.00516.39
7.4.120.0090.00916.30
7.4.110.0170.00716.36
7.4.100.0090.01216.52
7.4.90.0070.01016.48
7.4.80.0000.01819.39
7.4.70.0050.01216.27
7.4.60.0070.01016.23
7.4.50.0030.00616.28
7.4.40.0130.00416.41
7.4.30.0180.00616.25
7.4.00.0070.00715.03
7.3.330.0060.00012.98
7.3.320.0050.00013.08
7.3.310.0000.00716.09
7.3.300.0040.00416.04
7.3.290.0070.01016.12
7.3.280.0070.01116.20
7.3.270.0170.00717.40
7.3.260.0080.00816.18
7.3.250.0130.00416.21
7.3.240.0060.01016.10
7.3.230.0060.01216.39
7.3.210.0060.01316.28
7.3.200.0190.00319.39
7.3.190.0070.01416.45
7.3.180.0140.00816.39
7.3.170.0100.00716.52
7.3.160.0120.00416.31
7.3.10.0140.00316.26
7.3.00.0070.00516.35
7.2.330.0100.00716.60
7.2.320.0030.01316.58
7.2.310.0060.01316.62
7.2.300.0070.01716.19
7.2.290.0140.00716.41
7.2.130.0070.00716.57
7.2.120.0010.01016.66
7.2.110.0070.01016.58
7.2.100.0020.00916.69
7.2.90.0050.00916.49
7.2.80.0060.01116.66
7.2.70.0080.00716.80
7.2.60.0090.00316.82
7.2.50.0190.00016.51
7.2.40.0030.01116.80
7.2.30.0070.00516.68
7.2.20.0070.00716.55
7.2.10.0040.01216.64
7.2.00.0100.00417.64
7.1.250.0040.00815.49
7.1.240.0030.01015.65
7.1.230.0040.01215.78
7.1.220.0030.01415.69
7.1.210.0030.00815.50
7.1.200.0030.01015.81
7.1.190.0070.01015.88
7.1.180.0000.01515.43
7.1.170.0000.00915.85
7.1.160.0060.00615.81
7.1.150.0040.01115.51
7.1.140.0070.00315.56
7.1.130.0000.01015.55
7.1.120.0060.00915.86
7.1.110.0090.00015.88
7.1.100.0080.00516.79
7.1.90.0100.00615.77
7.1.80.0090.00315.58
7.1.70.0070.00516.29
7.1.60.0080.00717.53
7.1.50.0040.01416.37
7.1.40.0130.00015.95
7.1.30.0060.00315.63
7.1.20.0040.01115.61
7.1.10.0090.00315.41
7.1.00.0060.04119.04
7.0.330.0030.00615.10
7.0.320.0040.01415.37
7.0.310.0040.00815.10
7.0.300.0070.00715.51
7.0.290.0060.00615.22
7.0.280.0060.00615.15
7.0.270.0120.00015.39
7.0.260.0060.00915.32
7.0.250.0030.00615.36
7.0.240.0060.00615.16
7.0.230.0120.00315.44
7.0.220.0100.00614.93
7.0.210.0100.00315.35
7.0.200.0060.00515.68
7.0.190.0060.00315.11
7.0.180.0070.00315.37
7.0.170.0030.01014.96
7.0.160.0040.01115.21
7.0.150.0060.00615.41
7.0.140.0090.03418.72
7.0.130.0040.00415.39
7.0.120.0110.00414.82
7.0.110.0060.00815.04
7.0.100.0040.04517.58
7.0.90.0070.04817.59
7.0.80.0190.04117.65
7.0.70.0050.04317.58
7.0.60.0120.03017.56
7.0.50.0020.03317.88
7.0.40.0050.03516.62
7.0.30.0060.04116.82
7.0.20.0060.05316.64
7.0.10.0090.04016.62
7.0.00.0070.04516.59
5.6.380.0060.00814.47
5.6.370.0120.00014.19
5.6.360.0100.00314.07
5.6.350.0070.00414.27
5.6.340.0090.00614.37
5.6.330.0090.00614.38
5.6.320.0030.00714.05
5.6.310.0030.01014.25
5.6.300.0060.00914.42
5.6.290.0170.00214.22
5.6.280.0110.03817.56
5.6.270.0050.01114.68
5.6.260.0120.00714.31
5.6.250.0150.04217.42
5.6.240.0050.02517.41
5.6.230.0070.04517.38
5.6.220.0080.04317.37
5.6.210.0100.04317.32
5.6.200.0070.04217.73
5.6.190.0070.03217.58
5.6.180.0050.03317.62
5.6.170.0120.03917.58
5.6.160.0030.04717.58
5.6.150.0070.04517.69
5.6.140.0050.04617.70
5.6.130.0090.04317.54
5.6.120.0030.05317.79
5.6.110.0050.03517.45
5.6.100.0070.02217.67
5.6.90.0040.03417.71
5.6.80.0030.03217.26
5.6.70.0030.04517.19
5.6.60.0040.03117.40
5.6.50.0100.03717.37
5.6.40.0090.02417.26
5.6.30.0050.02917.23
5.6.20.0080.02517.24
5.6.10.0050.04217.29
5.6.00.0150.03217.16
5.5.380.0070.02215.76
5.5.370.0110.04215.74
5.5.360.0060.02615.58
5.5.350.0050.04315.64
5.5.340.0030.02815.84
5.5.330.0050.02115.88
5.5.320.0070.02815.82
5.5.310.0070.03415.93
5.5.300.0070.02715.82
5.5.290.0100.02315.79
5.5.280.0020.02515.82
5.5.270.0050.02215.94
5.5.260.0070.01815.85
5.5.250.0030.02815.63
5.5.240.0120.03215.58
5.5.230.0060.03815.54
5.5.220.0040.03715.56
5.5.210.0010.02515.43
5.5.200.0030.03015.46
5.5.190.0060.03915.50
5.5.180.0090.03215.63
5.5.170.0030.00710.62
5.5.160.0030.04515.56
5.5.150.0030.03515.57
5.5.140.0090.03015.54
5.5.130.0050.03615.60
5.5.120.0020.04615.52
5.5.110.0100.03815.46
5.5.100.0070.04015.48
5.5.90.0000.02315.51
5.5.80.0030.02015.48
5.5.70.0010.04615.53
5.5.60.0050.04015.40
5.5.50.0070.03815.41
5.5.40.0020.03615.60
5.5.30.0090.02615.54
5.5.20.0030.02315.52
5.5.10.0050.03615.58
5.5.00.0030.04515.44
5.4.450.0050.04315.15
5.4.440.0050.02715.24
5.4.430.0050.02415.22
5.4.420.0050.03015.17
5.4.410.0050.03515.11
5.4.400.0070.04214.97
5.4.390.0080.03814.94
5.4.380.0020.04314.88
5.4.370.0050.03914.87
5.4.360.0010.03814.99
5.4.350.0050.02014.95
5.4.340.0050.04114.96
5.4.330.0060.00310.89
5.4.320.0050.04214.88
5.4.310.0060.03814.96
5.4.300.0070.01915.01
5.4.290.0050.03415.10
5.4.280.0100.03814.95
5.4.270.0070.02015.01
5.4.260.0020.03915.06
5.4.250.0070.03815.02
5.4.240.0070.02014.90
5.4.230.0070.03614.90
5.4.220.0080.04014.88
5.4.210.0050.02014.83
5.4.200.0030.03214.96
5.4.190.0070.02215.04
5.4.180.0030.04015.26
5.4.170.0050.04114.75
5.4.160.0100.03114.97
5.4.150.0050.04014.92
5.4.140.0070.03013.58
5.4.130.0050.03813.52
5.4.120.0050.02413.56
5.4.110.0030.02113.54
5.4.100.0000.02913.60
5.4.90.0000.02213.43
5.4.80.0050.03813.55
5.4.70.0070.03213.44
5.4.60.0040.02713.56
5.4.50.0100.03713.64
5.4.40.0020.03813.60
5.4.30.0030.02013.47
5.4.20.0140.03013.53
5.4.10.0030.02213.55
5.4.00.0030.02113.31
5.3.290.0070.03912.37
5.3.280.0030.02012.42
5.3.270.0030.03912.50
5.3.260.0050.03812.31
5.3.250.0070.01812.43
5.3.240.0050.03712.40
5.3.230.0020.04612.35
5.3.220.0070.01712.42
5.3.210.0080.04012.42
5.3.200.0030.02012.42
5.3.190.0020.02612.47
5.3.180.0050.02812.56
5.3.170.0020.04412.34
5.3.160.0040.02312.32
5.3.150.0080.03212.36
5.3.140.0010.02912.39
5.3.130.0050.03712.38
5.3.120.0100.03212.31
5.3.110.0030.02112.47
5.3.100.0030.03412.15
5.3.90.0080.03812.22
5.3.80.0020.03912.16
5.3.70.0090.03012.09
5.3.60.0060.03312.10
5.3.50.0090.02312.12
5.3.40.0020.02512.09
5.3.30.0030.02712.01
5.3.20.0050.03711.88
5.3.10.0040.01911.82
5.3.00.0050.01711.72
5.2.170.0020.01710.28
5.2.160.0030.02510.30
5.2.150.0000.01710.25
5.2.140.0050.03010.19
5.2.130.0050.03210.13
5.2.120.0000.02110.29
5.2.110.0030.01610.28
5.2.100.0000.02010.30
5.2.90.0050.02310.25
5.2.80.0030.03710.15
5.2.70.0050.03210.04
5.2.60.0010.01610.19
5.2.50.0050.03010.14
5.2.40.0060.02810.04
5.2.30.0050.02210.04
5.2.20.0050.02210.10
5.2.10.0030.01910.02
5.2.00.0030.0289.95
5.1.60.0040.0239.24
5.1.50.0030.0319.09
5.1.40.0010.0309.17
5.1.30.0020.0299.50
5.1.20.0030.0319.42
5.1.10.0020.0259.34
5.1.00.0030.0269.16
5.0.50.0060.0158.94
5.0.40.0030.0138.94
5.0.30.0020.0188.94
5.0.20.0030.0128.94
5.0.10.0000.0258.94
5.0.00.0000.0378.94
4.4.90.0050.0068.94
4.4.80.0000.0138.94
4.4.70.0000.0218.94
4.4.60.0020.0188.94
4.4.50.0040.0158.94
4.4.40.0030.0278.94
4.4.30.0020.0188.94
4.4.20.0000.0138.94
4.4.10.0000.0198.94
4.4.00.0030.0258.94
4.3.110.0060.0158.94
4.3.100.0050.0158.94
4.3.90.0000.0208.94
4.3.80.0030.0238.94
4.3.70.0030.0088.94
4.3.60.0020.0208.94
4.3.50.0000.0198.94
4.3.40.0010.0288.94
4.3.30.0020.0128.94
4.3.20.0040.0178.94
4.3.10.0000.0198.94
4.3.00.0060.0158.94

preferences:
50.92 ms | 400 KiB | 5 Q