3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<foo:bar/fizz\\buzz|fuzz|"*?">'; var_dump($string); var_dump( strtr($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.5.00.0150.01021.80
8.4.150.0020.00014.05
8.4.140.0110.01017.29
8.4.130.0150.00917.70
8.4.120.0090.01120.40
8.4.110.0120.01018.84
8.4.100.0120.00817.69
8.4.90.0060.01220.40
8.4.80.0080.00819.03
8.4.70.0090.00524.14
8.4.60.0120.00720.43
8.4.50.0070.00420.39
8.4.40.0130.00717.33
8.4.30.0130.00720.51
8.4.20.0110.00721.43
8.4.10.0090.00619.34
8.3.280.0110.00918.31
8.3.270.0100.01116.64
8.3.260.0100.00816.48
8.3.250.0100.00918.71
8.3.240.0110.00816.41
8.3.230.0110.00816.37
8.3.220.0080.01019.03
8.3.210.0090.00316.48
8.3.200.0050.00416.27
8.3.190.0120.00717.20
8.3.180.0050.00518.89
8.3.170.0070.01118.81
8.3.160.0030.01516.88
8.3.150.0070.00716.41
8.3.140.0080.00016.69
8.3.130.0150.00418.13
8.3.120.0030.00720.89
8.3.110.0000.00820.94
8.3.100.0330.01337.54
8.3.90.0380.00837.54
8.3.80.0450.00337.54
8.3.70.0400.01137.54
8.3.60.0340.01437.54
8.3.50.0510.00637.54
8.3.40.0340.00937.54
8.3.30.0280.01137.54
8.3.20.0310.00337.54
8.3.10.0290.01037.54
8.3.00.0350.00437.54
8.2.290.0130.00220.25
8.2.280.0120.00720.39
8.2.270.0060.01018.27
8.2.260.0090.00617.09
8.2.250.0040.00418.41
8.2.240.0110.00717.05
8.2.230.0090.00022.58
8.2.220.0240.01437.54
8.2.210.0440.00037.54
8.2.200.0330.00737.54
8.2.190.0220.01137.54
8.2.180.0320.00437.54
8.2.170.0280.01637.54
8.2.160.0350.00637.54
8.2.150.0350.01637.54
8.2.140.0270.00737.54
8.2.130.0220.00637.54
8.2.120.0130.00737.54
8.2.110.0170.00737.54
8.2.100.0280.00637.54
8.2.90.0300.00437.54
8.2.80.0390.00337.54
8.2.70.0340.00837.54
8.2.60.0230.00937.54
8.2.50.0340.00437.54
8.2.40.0360.00437.54
8.2.30.0360.00637.54
8.2.20.0340.00837.54
8.2.10.0410.00037.54
8.2.00.0260.00637.54
8.1.330.0060.00321.66
8.1.320.0040.00415.79
8.1.310.0030.01418.29
8.1.300.0040.01216.24
8.1.290.0360.00737.54
8.1.280.0390.01137.54
8.1.270.0390.01137.54
8.1.260.0340.01037.54
8.1.250.0370.00637.54
8.1.240.0220.01137.54
8.1.230.0300.01337.54
8.1.220.0250.00737.54
8.1.210.0260.01337.54
8.1.200.0350.00437.54
8.1.190.0340.00837.54
8.1.180.0310.00737.54
8.1.170.0390.00337.54
8.1.160.0370.01337.54
8.1.150.0310.00837.54
8.1.140.0300.00437.54
8.1.130.0290.00637.54
8.1.120.0260.00637.54
8.1.110.0330.00537.54
8.1.100.0360.00337.54
8.1.90.0360.00437.54
8.1.80.0320.01037.54
8.1.70.0270.01037.54
8.1.60.0330.00937.54
8.1.50.0340.00837.54
8.1.40.0330.01037.54
8.1.30.0350.00837.54
8.1.20.0340.01037.54
8.1.10.0270.01737.54
8.1.00.0400.00337.54

preferences:
36.89 ms | 403 KiB | 5 Q