3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT This is !@#$%^& TEXT; echo preg_replace("/[[:alnum:]]+\K(?= [^[:alnum:]])/", ",", $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.10.0110.00916.64
8.5.00.0090.01220.13
8.4.150.0020.00014.05
8.4.140.0130.00817.77
8.4.130.0130.00618.74
8.4.120.0130.00724.22
8.4.110.0160.00422.49
8.4.100.0090.00418.77
8.4.90.0050.00520.58
8.4.80.0100.00918.74
8.4.70.0070.00618.92
8.4.60.0130.00918.93
8.4.50.0100.01018.70
8.4.40.0040.00418.02
8.4.30.0110.00819.00
8.4.20.0100.01019.88
8.4.10.0090.00019.58
8.3.280.0110.01118.57
8.3.270.0120.00816.76
8.3.260.0130.00716.82
8.3.250.0110.00718.99
8.3.240.0050.00417.05
8.3.230.0120.00617.07
8.3.220.0050.00418.97
8.3.210.0090.00918.75
8.3.200.0040.00516.76
8.3.190.0090.00717.02
8.3.180.0120.00617.16
8.3.170.0110.00718.75
8.3.160.0100.01018.44
8.3.150.0090.00917.20
8.3.140.0000.00817.25
8.3.130.0060.00318.27
8.3.120.0050.00520.51
8.3.110.0070.00016.91
8.3.100.0080.00016.71
8.3.90.0030.00618.32
8.3.80.0090.01230.84
8.3.70.0200.01130.84
8.3.60.0250.00730.84
8.3.50.0030.00630.84
8.3.40.0160.00430.84
8.3.30.0280.00830.84
8.3.20.0260.01330.84
8.3.10.0350.00330.84
8.3.00.0320.00930.84
8.2.290.0150.00520.16
8.2.280.0050.00518.71
8.2.270.0090.00917.46
8.2.260.0040.00418.71
8.2.250.0110.00718.68
8.2.240.0090.00017.28
8.2.230.0040.00420.94
8.2.220.0030.00624.06
8.2.210.0180.00026.77
8.2.200.0280.00930.84
8.2.190.0280.01130.84
8.2.180.0330.00730.84
8.2.170.0390.00330.84
8.2.160.0390.00430.84
8.2.150.0350.00630.84
8.2.140.0150.00530.84
8.2.130.0160.01030.84
8.2.120.0300.00430.84
8.2.110.0180.00230.84
8.2.100.0210.00430.84
8.2.90.0270.00030.84
8.2.80.0250.01430.84
8.2.70.0300.01130.84
8.2.60.0270.00730.84
8.2.50.0450.00030.84
8.2.40.0270.01230.84
8.2.30.0340.00730.84
8.2.20.0310.00930.84
8.2.10.0250.01530.84
8.2.00.0230.01030.84
8.1.330.0080.00922.07
8.1.320.0090.00918.21
8.1.310.0060.01218.58
8.1.300.0150.00418.29
8.1.290.0270.00830.84
8.1.280.0320.00430.84
8.1.270.0390.00630.84
8.1.260.0290.00930.84
8.1.250.0370.00730.84
8.1.240.0280.01030.84
8.1.230.0280.00930.84
8.1.220.0300.00730.84
8.1.210.0300.00730.84
8.1.200.0270.01230.84
8.1.190.0390.00730.84
8.1.180.0280.00330.84
8.1.170.0270.00430.84
8.1.160.0380.00330.84
8.1.150.0350.00330.84
8.1.140.0250.01230.84
8.1.130.0310.00930.84
8.1.120.0380.00030.84
8.1.110.0290.00830.84
8.1.100.0310.00730.84
8.1.90.0310.00830.84
8.1.80.0310.00630.84
8.1.70.0310.00730.84
8.1.60.0320.00930.84
8.1.50.0300.01230.84
8.1.40.0320.01030.84
8.1.30.0280.01430.84
8.1.20.0490.00030.84
8.1.10.0270.00930.84
8.1.00.0270.01130.84

preferences:
35.07 ms | 403 KiB | 5 Q