3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'test test test test'; echo preg_replace("/\w+\K/", '*', $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.120.0120.00720.43
8.4.110.0120.00818.55
8.4.100.0130.00519.57
8.4.90.0110.01018.70
8.4.80.0050.00417.89
8.4.70.0100.00918.16
8.4.60.0050.00318.67
8.4.50.0130.00720.32
8.4.40.0120.00917.88
8.4.30.0130.00720.44
8.4.20.0100.01018.02
8.4.10.0030.00619.76
8.3.250.0120.00718.72
8.3.240.0140.00716.66
8.3.230.0120.00816.52
8.3.220.0100.00817.06
8.3.210.0130.00416.54
8.3.200.0050.00416.74
8.3.190.0100.00719.09
8.3.180.0100.01016.80
8.3.170.0070.01117.19
8.3.160.0110.00718.54
8.3.150.0070.01020.61
8.3.140.0040.00416.80
8.3.130.0040.00418.38
8.3.120.0070.00718.79
8.3.110.0080.00420.94
8.3.100.0120.00324.06
8.3.90.0110.00726.77
8.3.80.0060.00317.97
8.3.70.0070.01116.75
8.3.60.0120.00618.40
8.3.50.0120.00616.58
8.3.40.0030.01721.72
8.3.30.0000.01419.09
8.3.20.0050.00224.18
8.3.10.0050.00224.66
8.3.00.0040.00426.16
8.2.290.0070.00716.73
8.2.280.0110.00822.34
8.2.270.0110.00717.53
8.2.260.0090.00918.77
8.2.250.0110.00418.61
8.2.240.0040.00417.44
8.2.230.0030.00722.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0060.00318.66
8.2.190.0040.01118.67
8.2.180.0060.01218.25
8.2.170.0040.01119.21
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00421.17
8.2.110.0060.00322.37
8.2.100.0280.00418.44
8.2.90.0170.01318.44
8.2.80.0150.01518.44
8.2.70.0260.00418.44
8.2.60.0260.00318.44
8.2.50.0260.00318.44
8.2.40.0200.00218.80
8.2.30.0260.00018.44
8.2.20.0150.01218.44
8.2.10.0270.00018.44
8.2.00.0190.00818.44
8.1.330.0130.00616.45
8.1.320.0110.00716.37
8.1.310.0130.00316.97
8.1.300.0190.00018.51
8.1.290.0030.00730.84
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0090.00019.32
8.1.230.0150.00418.73
8.1.220.0290.00418.44
8.1.210.0160.01018.44
8.1.200.0220.00418.44
8.1.190.0220.00418.44
8.1.180.0230.00318.44
8.1.170.0210.00518.44
8.1.160.0180.00918.44
8.1.150.0220.00618.44
8.1.140.0230.00418.44
8.1.130.0190.00718.44
8.1.120.0290.00318.44
8.1.110.0300.00518.44
8.1.100.0280.00018.44
8.1.90.0270.00018.44
8.1.80.0220.00518.44
8.1.70.0270.00218.44
8.1.60.0230.00618.44
8.1.50.0220.00418.44
8.1.40.0180.00918.44
8.1.30.0180.00918.44
8.1.20.0210.00518.44
8.1.10.0240.00518.44
8.1.00.0220.00418.44
8.0.300.0200.00718.44
8.0.290.0250.00318.44
8.0.280.0160.01018.44
8.0.270.0240.00318.44
8.0.260.0200.00718.44
8.0.250.0260.00018.44
8.0.240.0210.00418.44
8.0.230.0270.00018.44
8.0.220.0270.00018.44
8.0.210.0270.00018.44
8.0.200.0230.00418.44
8.0.190.0270.00018.44
8.0.180.0210.00618.44
8.0.170.0170.00918.44
8.0.160.0240.00318.44
8.0.150.0210.00618.44
8.0.140.0190.00618.44
8.0.130.0280.00018.44
8.0.120.0250.00318.44
8.0.110.0210.00718.44
8.0.100.0280.00318.44
8.0.90.0340.00318.44
8.0.80.0310.00018.44
8.0.70.0230.00618.44
8.0.60.0150.00918.44
8.0.50.0250.00018.44
8.0.30.0280.00018.44
8.0.20.0170.00918.44
8.0.10.0190.00718.44

preferences:
26.34 ms | 403 KiB | 5 Q