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.0100.01016.88
8.3.50.0060.01122.05
8.3.40.0150.00418.70
8.3.30.0100.00319.07
8.3.20.0080.00020.21
8.3.10.0040.00420.62
8.3.00.0050.00319.51
8.2.180.0120.00916.75
8.2.170.0110.00322.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00021.04
8.2.110.0030.00622.26
8.2.100.0050.00518.75
8.1.280.0090.00625.92
8.1.270.0040.00422.06
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00618.36
8.1.230.0100.00018.54
5.4.320.0040.03812.52
5.4.310.0090.03512.51
5.4.300.0060.03712.52
5.4.290.0040.04312.51
5.4.280.0070.03712.41
5.4.270.0070.03612.41
5.4.260.0110.03312.41
5.4.250.0070.03712.41
5.4.240.0070.03512.41
5.4.230.0050.03812.40
5.4.220.0070.03412.40
5.4.210.0060.03512.40
5.4.200.0050.03912.40
5.4.190.0090.03412.40
5.4.180.0060.03612.40
5.4.170.0080.03412.41
5.4.160.0060.03612.40
5.4.150.0070.03512.39
5.4.140.0060.03612.08
5.4.130.0060.03612.07
5.4.120.0070.03412.02
5.4.110.0070.03412.02
5.4.100.0090.03612.03
5.4.90.0090.03512.02
5.4.80.0060.03812.02
5.4.70.0060.03812.02
5.4.60.0060.04112.02
5.4.50.0070.03412.02
5.4.40.0080.03312.01
5.4.30.0080.03412.00
5.4.20.0010.04112.00
5.4.10.0050.03612.00
5.4.00.0130.03011.49
5.3.290.0050.04212.80
5.3.280.0070.04012.71
5.3.270.0090.04112.72
5.3.260.0080.04812.72
5.3.250.0060.04512.72
5.3.240.0090.04012.72
5.3.230.0050.03912.71
5.3.220.0050.03812.68
5.3.210.0080.03712.68
5.3.200.0060.03712.68
5.3.190.0090.03512.68
5.3.180.0080.03412.67
5.3.170.0070.04412.67
5.3.160.0020.04112.67
5.3.150.0050.04012.67
5.3.140.0090.03512.66
5.3.130.0060.04012.66
5.3.120.0050.04712.66
5.3.110.0050.04512.66
5.3.100.0050.03912.12
5.3.90.0060.03712.11
5.3.80.0050.03812.10
5.3.70.0060.04112.10
5.3.60.0050.04112.08
5.3.50.0120.03312.02
5.3.40.0150.04712.02
5.3.30.0100.04711.98
5.3.20.0090.04711.76
5.3.10.0040.03711.73
5.3.00.0110.03511.71
5.2.170.0060.0329.22
5.2.160.0030.0349.21
5.2.150.0080.0299.21
5.2.140.0050.0309.21
5.2.130.0060.0299.18
5.2.120.0080.0269.17
5.2.110.0040.0349.18
5.2.100.0070.0309.18
5.2.90.0060.0289.18
5.2.80.0060.0309.17
5.2.70.0050.0309.17
5.2.60.0030.0329.13
5.2.50.0050.0319.10
5.2.40.0080.0279.07
5.2.30.0040.0309.04
5.2.20.0080.0259.04
5.2.10.0040.0298.95
5.2.00.0040.0308.80
5.1.60.0040.0238.09
5.1.50.0040.0248.09
5.1.40.0020.0268.06
5.1.30.0020.0288.42
5.1.20.0040.0278.43
5.1.10.0030.0278.16
5.1.00.0040.0268.16
5.0.50.0070.0176.64
5.0.40.0040.0196.51
5.0.30.0020.0336.31
5.0.20.0040.0196.28
5.0.10.0020.0226.26
5.0.00.0040.0316.25
4.4.90.0020.0164.78
4.4.80.0050.0144.75
4.4.70.0030.0154.76
4.4.60.0030.0154.75
4.4.50.0030.0144.77
4.4.40.0020.0294.71
4.4.30.0040.0184.76
4.4.20.0020.0174.84
4.4.10.0040.0154.85
4.4.00.0050.0244.76
4.3.110.0020.0164.67
4.3.100.0050.0134.66
4.3.90.0020.0154.64
4.3.80.0000.0274.59
4.3.70.0020.0164.63
4.3.60.0010.0184.63
4.3.50.0030.0174.63
4.3.40.0050.0234.54
4.3.30.0020.0173.30
4.3.20.0030.0163.29
4.3.10.0030.0153.24
4.3.00.0030.01713.57

preferences:
32.19 ms | 401 KiB | 5 Q