3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'this is Tom & Jerry'; echo preg_replace('/[^a-z\d]+/i', '-', $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.4.140.0130.01017.77
8.4.130.0040.00518.01
8.4.120.0050.00420.93
8.4.110.0130.00718.25
8.4.100.0120.00817.95
8.4.90.0140.00620.52
8.4.80.0100.01018.82
8.4.70.0090.01020.77
8.4.60.0090.00720.79
8.4.50.0150.00618.54
8.4.40.0150.00617.66
8.4.30.0070.01320.64
8.4.20.0130.01019.64
8.4.10.0060.00319.65
8.3.270.0120.00716.72
8.3.260.0110.00916.49
8.3.250.0080.00918.86
8.3.240.0090.00916.65
8.3.230.0100.00618.37
8.3.220.0110.00718.74
8.3.210.0040.00416.71
8.3.200.0130.00316.47
8.3.190.0080.01316.93
8.3.180.0050.00318.98
8.3.170.0090.00918.59
8.3.160.0030.01018.80
8.3.150.0060.00316.48
8.3.140.0040.00418.73
8.3.130.0060.00316.57
8.3.120.0030.00620.79
8.3.110.0150.00320.94
8.3.100.0420.00637.54
8.3.90.0370.00737.54
8.3.80.0330.01337.54
8.3.70.0420.00737.54
8.3.60.0420.00737.54
8.3.50.0450.00437.54
8.3.40.0320.00437.54
8.3.30.0290.01137.54
8.3.20.0370.00337.54
8.3.10.0320.00637.54
8.3.00.0290.01137.54
8.2.290.0090.01016.72
8.2.280.0110.01118.74
8.2.270.0120.00618.72
8.2.260.0060.01217.16
8.2.250.0050.00318.54
8.2.240.0070.01118.72
8.2.230.0080.00022.58
8.2.220.0380.00337.54
8.2.210.0260.00937.54
8.2.200.0380.00337.54
8.2.190.0290.00637.54
8.2.180.0260.01037.54
8.2.170.0380.00337.54
8.2.160.0270.01737.54
8.2.150.0370.00737.54
8.2.140.0350.01137.54
8.2.130.0340.00937.54
8.2.120.0350.00937.54
8.2.110.0330.01137.54
8.2.100.0340.01037.54
8.2.90.0350.01037.54
8.2.80.0420.00337.54
8.2.70.0430.00037.54
8.2.60.0390.00337.54
8.2.50.0270.01037.54
8.2.40.0300.01037.54
8.2.30.0330.00837.54
8.2.20.0380.00337.54
8.2.10.0360.00337.54
8.2.00.0300.01037.54
8.1.330.0120.00716.10
8.1.320.0120.00715.94
8.1.310.0140.00316.43
8.1.300.0040.00418.34
8.1.290.0360.00837.54
8.1.280.0340.00737.54
8.1.270.0370.00037.54
8.1.260.0370.01137.54
8.1.250.0390.00337.54
8.1.240.0300.00837.54
8.1.230.0310.00737.54
8.1.220.0230.01637.54
8.1.210.0400.00337.54
8.1.200.0380.00737.54
8.1.190.0280.01037.54
8.1.180.0290.01037.54
8.1.170.0240.01437.54
8.1.160.0200.01737.54
8.1.150.0250.01337.54
8.1.140.0200.02037.54
8.1.130.0380.00337.54
8.1.120.0250.01437.54
8.1.110.0300.00837.54
8.1.100.0250.01437.54
8.1.90.0340.00637.54
8.1.80.0370.00837.54
8.1.70.0230.01637.54
8.1.60.0340.01037.54
8.1.50.0350.00837.54
8.1.40.0340.00937.54
8.1.30.0320.01137.54
8.1.20.0340.01037.54
8.1.10.0430.00437.54
8.1.00.0430.00637.54

preferences:
34.96 ms | 403 KiB | 5 Q