3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello%s%s"; echo str_replace('%s', '1', $string, 0);

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.0110.00716.63
8.3.50.0210.00922.66
8.3.40.0140.00318.84
8.3.30.0030.01319.01
8.3.20.0070.00020.34
8.3.10.0040.00421.96
8.3.00.0040.00417.46
8.2.180.0040.01416.88
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0110.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0070.00322.23
8.2.100.0030.00618.59
8.1.280.0100.00325.92
8.1.270.0040.00423.73
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00618.55
8.1.230.0030.00618.49
5.4.310.0050.04012.46
5.4.300.0070.03512.46
5.4.290.0060.03812.46
5.4.280.0060.04212.36
5.4.270.0070.04012.36
5.4.260.0060.04212.36
5.4.250.0090.03612.36
5.4.240.0060.03712.36
5.4.230.0060.03712.35
5.4.220.0090.03812.35
5.4.210.0040.03712.35
5.4.200.0070.03712.35
5.4.190.0090.03912.34
5.4.180.0060.04012.35
5.4.170.0090.03512.36
5.4.160.0090.03812.35
5.4.150.0090.04312.35
5.4.140.0050.03812.03
5.4.130.0030.03812.02
5.4.120.0010.04011.98
5.4.110.0030.03811.98
5.4.100.0030.03811.97
5.4.90.0070.03811.97
5.4.80.0040.04011.97
5.4.70.0030.04811.97
5.4.60.0090.03311.97
5.4.50.0100.03611.97
5.4.40.0060.03711.96
5.4.30.0070.03411.96
5.4.20.0050.03811.96
5.4.10.0090.03511.96
5.4.00.0060.03711.45
5.3.280.0050.04412.71
5.3.270.0070.03812.72
5.3.260.0050.04512.72
5.3.250.0070.03912.72
5.3.240.0060.04112.72
5.3.230.0040.03912.71
5.3.220.0080.03412.68
5.3.210.0090.03812.68
5.3.200.0100.03312.68
5.3.190.0060.03712.68
5.3.180.0060.04012.67
5.3.170.0100.03612.67
5.3.160.0090.04012.68
5.3.150.0100.04012.68
5.3.140.0030.03912.66
5.3.130.0050.03912.66
5.3.120.0060.03812.66
5.3.110.0060.04112.66
5.3.100.0060.03812.12
5.3.90.0040.03812.08
5.3.80.0060.03712.08
5.3.70.0090.03312.08
5.3.60.0060.04212.06
5.3.50.0110.03612.00
5.3.40.0070.03612.00
5.3.30.0060.03411.95
5.3.20.0040.03611.72
5.3.10.0040.03811.70
5.3.00.0060.03711.68
5.2.170.0030.0339.18
5.2.160.0090.0269.18
5.2.150.0060.0339.18
5.2.140.0030.0329.18
5.2.130.0090.0329.13
5.2.120.0070.0289.13
5.2.110.0060.0299.14
5.2.100.0030.0329.14
5.2.90.0050.0329.13
5.2.80.0030.0329.13
5.2.70.0070.0299.13
5.2.60.0050.0309.09
5.2.50.0030.0369.06
5.2.40.0080.0309.04
5.2.30.0030.0319.01
5.2.20.0070.0319.01
5.2.10.0060.0298.92
5.2.00.0060.0278.78
5.1.60.0050.0248.06
5.1.50.0070.0248.06
5.1.40.0080.0238.04
5.1.30.0030.0318.39
5.1.20.0060.0288.41
5.1.10.0050.0318.14
5.1.00.0050.0258.14
5.0.50.0040.0226.61
5.0.40.0050.0276.48
5.0.30.0030.0316.29
5.0.20.0060.0176.26
5.0.10.0040.0256.24
5.0.00.0050.0326.23
4.4.90.0050.0194.78
4.4.80.0060.0184.75
4.4.70.0040.0174.75
4.4.60.0040.0194.75
4.4.50.0030.0254.77
4.4.40.0040.0274.71
4.4.30.0050.0124.76
4.4.20.0030.0164.84
4.4.10.0020.0194.85
4.4.00.0050.0254.76
4.3.110.0030.0204.67
4.3.100.0040.0144.66
4.3.90.0020.0194.63
4.3.80.0020.0254.58
4.3.70.0030.0214.63
4.3.60.0040.0184.63
4.3.50.0020.0164.63
4.3.40.0020.0254.53
4.3.30.0010.0183.28
4.3.20.0010.0173.25
4.3.10.0010.0223.22
4.3.00.0130.02710.96

preferences:
33.36 ms | 401 KiB | 5 Q