3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current_cart_url = "hello"; str_replace("hello","goodbye", $current_cart_url);} echo $current_cart_url; ?>

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)
5.4.340.0090.03812.01
5.4.320.0100.06612.50
5.4.310.0060.04212.49
5.4.300.0100.04512.50
5.4.290.0080.04312.49
5.4.280.0070.04412.39
5.4.270.0080.03912.39
5.4.260.0090.04112.39
5.4.250.0060.04412.39
5.4.240.0070.04312.39
5.4.230.0140.05212.38
5.4.220.0030.04312.38
5.4.210.0060.03712.38
5.4.200.0060.03812.38
5.4.190.0060.03712.38
5.4.180.0070.03812.38
5.4.170.0090.03412.39
5.4.160.0070.03712.38
5.4.150.0080.04012.38
5.4.140.0090.04112.07
5.4.130.0040.03812.05
5.4.120.0070.03712.02
5.4.110.0060.03712.01
5.4.100.0040.03812.01
5.4.90.0130.03712.01
5.4.80.0090.03912.01
5.4.70.0070.03812.01
5.4.60.0070.03812.00
5.4.50.0020.04212.01
5.4.40.0060.03512.00
5.4.30.0070.03811.99
5.4.20.0100.03311.99
5.4.10.0070.03411.99
5.4.00.0050.03611.49
5.3.290.0100.04312.80
5.3.280.0070.04212.71
5.3.270.0070.03912.73
5.3.260.0100.04312.72
5.3.250.0090.04212.72
5.3.240.0070.05612.72
5.3.230.0060.04212.70
5.3.220.0110.05412.68
5.3.210.0050.04112.68
5.3.200.0050.04012.68
5.3.190.0080.03712.68
5.3.180.0070.04012.68
5.3.170.0050.03912.66
5.3.160.0080.04112.68
5.3.150.0090.04412.67
5.3.140.0090.03812.66
5.3.130.0160.09512.66
5.3.120.0130.04712.66
5.3.110.0060.04312.66
5.3.100.0060.04012.12
5.3.90.0080.03412.08
5.3.80.0080.03612.08
5.3.70.0060.03612.08
5.3.60.0080.03812.07
5.3.50.0070.03812.00
5.3.40.0110.04512.00
5.3.30.0080.03911.95
5.3.20.0060.04711.73
5.3.10.0070.03611.70
5.3.00.0070.04411.68
5.2.170.0040.0389.18
5.2.160.0040.0329.18
5.2.150.0050.0329.18
5.2.140.0050.0369.17
5.2.130.0040.0309.14
5.2.120.0050.0329.14
5.2.110.0080.0279.14
5.2.100.0040.0339.14
5.2.90.0040.0319.14
5.2.80.0080.0359.14
5.2.70.0080.0279.14
5.2.60.0030.0329.09
5.2.50.0100.0319.06
5.2.40.0060.0309.04
5.2.30.0090.0299.02
5.2.20.0060.0319.00
5.2.10.0060.0278.92
5.2.00.0070.0278.78
5.1.60.0050.0228.06
5.1.50.0090.0328.06
5.1.40.0060.0308.05
5.1.30.0040.0308.40
5.1.20.0030.0288.41
5.1.10.0030.0338.14
5.1.00.0020.0298.14
5.0.50.0060.0236.62
5.0.40.0080.0226.48
5.0.30.0040.0316.29
5.0.20.0050.0226.26
5.0.10.0040.0206.24
5.0.00.0030.0386.23
4.4.90.0070.0154.78
4.4.80.0050.0134.75
4.4.70.0020.0174.75
4.4.60.0050.0134.75
4.4.50.0020.0164.77
4.4.40.0030.0244.71
4.4.30.0030.0164.75
4.4.20.0010.0194.84
4.4.10.0070.0154.85
4.4.00.0040.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0154.67
4.3.90.0060.0234.64
4.3.80.0040.0284.58
4.3.70.0040.0244.63
4.3.60.0060.0174.63
4.3.50.0050.0194.63
4.3.40.0070.0224.54
4.3.30.0010.0173.28
4.3.20.0050.0173.26
4.3.10.0010.0173.22
4.3.00.0070.01710.05

preferences:
139.51 ms | 1394 KiB | 7 Q