3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = '"x", "x,y" , "x,y,h"'; echo preg_replace_callback('/"[^"]+"/', fn($m) => str_replace(',', '', $m[0]), $text);

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.30.0090.01019.53
8.5.20.0090.00820.11
8.5.10.0110.00716.96
8.5.00.0120.00922.09
8.4.180.0090.01219.84
8.4.170.0130.00923.92
8.4.160.0130.01023.84
8.4.150.0090.00416.86
8.4.140.0100.01117.63
8.4.130.0130.00718.78
8.4.120.0090.00220.85
8.4.110.0100.00918.80
8.4.100.0110.01018.16
8.4.90.0060.01120.75
8.4.80.0100.00918.74
8.4.70.0090.00918.98
8.4.60.0020.00618.64
8.4.50.0100.00918.89
8.4.40.0130.00617.57
8.4.30.0100.01018.99
8.4.20.0100.01020.05
8.4.10.0080.01219.80
8.3.300.0120.01122.85
8.3.290.0110.00820.61
8.3.280.0170.01118.62
8.3.270.0170.00616.89
8.3.260.0110.00816.77
8.3.250.0110.00819.15
8.3.240.0080.00816.79
8.3.230.0070.00616.75
8.3.220.0140.00519.05
8.3.210.0050.00218.86
8.3.200.0060.00316.52
8.3.190.0120.00718.84
8.3.180.0100.00916.68
8.3.170.0090.00918.79
8.3.160.0160.00316.64
8.3.150.0110.00716.97
8.3.140.0090.00616.53
8.3.130.0080.00018.37
8.3.120.0060.01020.61
8.3.110.0090.00016.78
8.3.100.0110.00016.79
8.3.90.0040.00416.90
8.3.80.0350.01330.84
8.3.70.0400.00730.84
8.3.60.0320.00430.84
8.3.50.0120.00630.84
8.3.40.0320.00030.84
8.3.30.0140.00330.84
8.3.20.0180.00030.84
8.3.10.0210.00930.84
8.3.00.0300.00330.84
8.2.300.0080.00222.07
8.2.290.0110.00818.82
8.2.280.0110.00920.28
8.2.270.0060.00317.42
8.2.260.0090.00918.77
8.2.250.0150.00616.63
8.2.240.0190.00317.16
8.2.230.0030.00620.94
8.2.220.0040.00424.06
8.2.210.0090.00626.77
8.2.200.0250.01130.84
8.2.190.0300.00630.84
8.2.180.0320.01030.84
8.2.170.0380.00430.84
8.2.160.0360.00730.84
8.2.150.0360.00630.84
8.2.140.0400.00630.84
8.2.130.0310.01230.84
8.2.120.0330.00430.84
8.2.110.0360.01030.84
8.2.100.0230.01030.84
8.2.90.0200.01330.84
8.2.80.0270.00730.84
8.2.70.0390.00630.84
8.2.60.0330.00930.84
8.2.50.0260.00730.84
8.2.40.0350.00830.84
8.2.30.0210.01830.84
8.2.20.0350.00430.84
8.2.10.0380.00030.84
8.2.00.0250.01130.84
8.1.340.0120.00921.63
8.1.330.0130.00616.28
8.1.320.0110.00916.00
8.1.310.0000.01816.59
8.1.300.0090.00618.04
8.1.290.0250.00830.84
8.1.280.0280.01230.84
8.1.270.0340.00930.84
8.1.260.0350.00730.84
8.1.250.0360.00630.84
8.1.240.0200.01330.84
8.1.230.0260.00430.84
8.1.220.0380.00730.84
8.1.210.0240.02130.84
8.1.200.0340.00830.84
8.1.190.0270.01130.84
8.1.180.0250.01330.84
8.1.170.0260.01230.84
8.1.160.0220.01330.84
8.1.150.0250.01430.84
8.1.140.0210.01430.84
8.1.130.0330.00630.84
8.1.120.0340.00430.84
8.1.110.0320.00530.84
8.1.100.0280.00930.84
8.1.90.0340.00330.84
8.1.80.0400.00330.84
8.1.70.0230.00830.84
8.1.60.0180.00530.84
8.1.50.0070.01230.84
8.1.40.0090.00930.84
8.1.30.0170.00330.84
8.1.20.0180.00630.84
8.1.10.0180.00030.84
8.1.00.0130.00530.84

preferences:
45.8 ms | 973 KiB | 5 Q