3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mystr_replace($needle,$replace,$haystack,$count=null){ $args = func_get_args(); return call_user_func_array('str_replace',$args); } echo mystr_replace("frop","frml","frop",1);

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.60.0140.00716.75
8.3.50.0090.00922.04
8.3.40.0040.01118.63
8.3.30.0040.01119.10
8.3.20.0000.00720.25
8.3.10.0040.00420.48
8.3.00.0040.00419.01
8.2.180.0090.00616.88
8.2.170.0110.00422.96
8.2.160.0070.00720.40
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.02
8.2.110.0040.00722.16
8.2.100.0110.00018.16
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0060.00317.80
8.2.50.0000.00918.07
8.2.40.0050.00318.22
8.2.30.0080.00019.45
8.2.20.0000.00817.81
8.2.10.0000.00717.93
8.2.00.0000.00717.64
8.1.280.0150.00025.92
8.1.270.0080.00021.95
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0040.00422.71
8.1.230.0070.00419.44
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00717.25
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0000.00821.94
8.1.150.0040.00418.76
8.1.140.0030.00517.36
8.1.130.0030.00317.84
8.1.120.0020.00517.47
8.1.110.0000.00717.52
8.1.100.0070.00017.50
8.1.90.0030.00317.41
8.1.80.0030.00317.47
8.1.70.0040.00417.32
8.1.60.0030.00917.61
8.1.50.0040.00417.50
8.1.40.0040.00417.51
8.1.30.0080.00017.68
8.1.20.0050.00317.48
8.1.10.0070.00017.47
8.1.00.0040.00417.46
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0040.00417.26
8.0.260.0030.00317.33
8.0.250.0030.00317.02
8.0.240.0030.00316.97
8.0.230.0030.00317.08
8.0.220.0030.00316.96
8.0.210.0000.00716.93
8.0.200.0040.00416.91
8.0.190.0000.00716.93
8.0.180.0040.00416.95
8.0.170.0050.00316.86
8.0.160.0040.00416.96
8.0.150.0030.00316.78
8.0.140.0090.00016.80
8.0.130.0000.00513.35
8.0.120.0040.00416.82
8.0.110.0040.00416.88
8.0.100.0000.00716.85
8.0.90.0070.00017.02
8.0.80.0120.00316.90
8.0.70.0040.00416.80
8.0.60.0000.00716.94
8.0.50.0030.00316.79
8.0.30.0120.00717.32
8.0.20.0070.01217.40
8.0.10.0070.00017.04
8.0.00.0080.00816.83
7.4.330.0020.00215.08
7.4.320.0000.00616.58
7.4.300.0030.00316.46
7.4.290.0030.00316.61
7.4.280.0070.00316.61
7.4.270.0040.00416.67
7.4.260.0070.00016.62
7.4.250.0040.00416.48
7.4.240.0030.00316.55
7.4.230.0000.00716.41
7.4.220.0070.01116.70
7.4.210.0030.01116.64
7.4.200.0000.00716.59
7.4.160.0070.01516.47
7.4.150.0110.00717.40
7.4.140.0110.00717.86
7.4.130.0090.00716.61
7.4.120.0120.00516.53
7.4.110.0100.01316.64
7.4.100.0040.01216.48
7.4.90.0060.01016.48
7.4.80.0030.02319.39
7.4.70.0130.00416.52
7.4.60.0070.01016.50
7.4.50.0040.00416.63
7.4.40.0040.01116.22
7.4.30.0030.01116.47
7.4.00.0100.00514.65
7.3.330.0000.00513.20
7.3.320.0030.00313.30
7.3.310.0070.00016.41
7.3.300.0000.00616.17
7.3.290.0030.01016.27
7.3.280.0070.01016.28
7.3.270.0090.00917.40
7.3.260.0100.00716.32
7.3.250.0130.00816.48
7.3.240.0100.00716.36
7.3.230.0080.00816.41
7.3.210.0110.00716.39
7.3.200.0140.01019.39
7.3.190.0120.00416.51
7.3.180.0070.01016.25
7.3.170.0110.00516.43
7.3.160.0130.00716.45
7.2.330.0280.02616.66
7.2.320.0030.01316.66
7.2.310.0100.00716.29
7.2.300.0090.00916.58
7.2.290.0060.01016.65
7.2.60.0180.01816.32
7.2.00.0060.00619.22
7.1.200.0100.00515.41
7.1.100.0000.01418.14
7.1.70.0000.00817.10
7.1.60.0150.00919.61
7.1.50.0100.01034.38
7.1.00.0100.07022.36
7.0.200.0030.00316.27
7.0.140.0000.07722.12
7.0.60.0070.08719.86
7.0.50.0070.07717.98
7.0.40.0100.08320.21
7.0.30.0500.05020.12
7.0.20.0270.07320.21
7.0.10.0130.05020.25
7.0.00.0030.05320.09
5.6.280.0000.07720.87
5.6.210.0030.08720.56
5.6.200.0130.08018.14
5.6.190.0000.04720.39
5.6.180.3530.03320.64
5.6.170.0470.06720.52
5.6.160.0070.04320.56
5.6.150.0130.07318.12
5.6.140.0000.04318.27
5.6.130.0030.09018.23
5.6.120.0100.07721.02
5.6.110.0070.08320.92
5.6.100.0070.07320.99
5.6.90.0130.06020.88
5.6.80.0070.03320.36
5.6.70.0230.07720.38
5.5.350.0200.08720.43
5.5.340.0000.04717.94
5.5.330.0000.04320.18
5.5.320.0330.05320.35
5.5.310.0300.07320.35
5.5.300.0030.04017.97
5.5.290.0100.03318.04
5.5.280.0000.04320.78
5.5.270.0030.06320.73
5.5.260.0100.04720.84
5.5.250.0070.08720.68
5.5.240.0070.07320.26
5.4.450.0200.06319.55
5.4.440.0370.06019.63
5.4.430.0200.06319.66
5.4.420.0130.05319.46
5.4.410.0200.05019.08
5.4.400.0200.04718.91
5.4.390.0100.05719.11
5.4.380.0370.05018.78
5.4.370.0270.06018.71
5.4.360.0330.06718.56
5.4.350.0370.06718.57
5.4.340.0200.08318.72
5.4.320.0100.03212.50
5.4.310.0030.04012.50
5.4.300.0050.03712.50
5.4.290.0090.03512.50
5.4.280.0060.03712.40
5.4.270.0070.03612.40
5.4.260.0090.05012.39
5.4.250.0030.04312.39
5.4.240.0080.03512.40
5.4.230.0080.03512.39
5.4.220.0060.03612.39
5.4.210.0100.03212.39
5.4.200.0050.03912.39
5.4.190.0090.03212.38
5.4.180.0090.03312.39
5.4.170.0090.03412.39
5.4.160.0060.03912.39
5.4.150.0070.03712.39
5.4.140.0030.04112.07
5.4.130.0090.03412.06
5.4.120.0080.03412.02
5.4.110.0070.03512.01
5.4.100.0040.03712.01
5.4.90.0090.03912.01
5.4.80.0040.04312.02
5.4.70.0040.03812.01
5.4.60.0060.03612.01
5.4.50.0050.03612.01
5.4.40.0070.03512.00
5.4.30.0080.03312.00
5.4.20.0080.03411.99
5.4.10.0110.02912.00
5.4.00.0060.03511.48
5.3.290.0060.04012.80
5.3.280.0080.03612.71
5.3.270.0060.03912.72
5.3.260.0070.03812.72
5.3.250.0090.04012.72
5.3.240.0110.04312.72
5.3.230.0120.04612.71
5.3.220.0070.04112.68
5.3.210.0090.03612.68
5.3.200.0060.03612.68
5.3.190.0060.03812.68
5.3.180.0050.03812.68
5.3.170.0050.03812.67
5.3.160.0070.03612.68
5.3.150.0090.03512.67
5.3.140.0070.03712.66
5.3.130.0050.04012.66
5.3.120.0080.03812.66
5.3.110.0070.04512.65
5.3.100.0060.03712.12
5.3.90.0070.03512.10
5.3.80.0070.03612.09
5.3.70.0070.03612.09
5.3.60.0070.03612.07
5.3.50.0100.03412.02
5.3.40.0040.03812.02
5.3.30.0050.03511.97
5.3.20.0090.03511.77
5.3.10.0070.03411.73
5.3.00.0100.03511.72
5.2.170.0070.0299.21
5.2.160.0030.0319.22
5.2.150.0030.0339.22
5.2.140.0080.0439.21
5.2.130.0050.0409.17
5.2.120.0060.0299.17
5.2.110.0090.0269.18
5.2.100.0050.0329.18
5.2.90.0070.0299.18
5.2.80.0080.0289.17
5.2.70.0050.0299.17
5.2.60.0050.0309.13
5.2.50.0040.0319.10
5.2.40.0040.0299.07
5.2.30.0070.0319.04
5.2.20.0060.0359.03
5.2.10.0060.0288.94
5.2.00.0050.0308.80
5.1.60.0030.0258.09
5.1.50.0080.0278.09
5.1.40.0080.0218.06
5.1.30.0030.0278.42
5.1.20.0040.0278.43
5.1.10.0050.0258.17
5.1.00.0040.0268.17
5.0.50.0020.0236.64
5.0.40.0040.0196.50
5.0.30.0020.0326.31
5.0.20.0050.0176.28
5.0.10.0050.0186.25
5.0.00.0050.0296.25
4.4.90.0050.0134.78
4.4.80.0050.0134.75
4.4.70.0030.0154.75
4.4.60.0010.0174.76
4.4.50.0030.0154.77
4.4.40.0040.0234.71
4.4.30.0020.0164.76
4.4.20.0060.0134.84
4.4.10.0030.0154.85
4.4.00.0060.0214.76
4.3.110.0020.0164.67
4.3.100.0020.0164.66
4.3.90.0030.0154.63
4.3.80.0050.0224.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0020.0164.63
4.3.40.0050.0224.54
4.3.30.0010.0173.30
4.3.20.0050.0133.27
4.3.10.0030.0143.24
4.3.00.0100.0176.95

preferences:
38.42 ms | 401 KiB | 5 Q