3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<TEXT Order is purchased on 23-05-2023.Order is in progress and you can see order status on website by enter id JKSZ089P6X07&nbsp;&nbsp;012 TEXT; $orderId = "JKSZ089P6X07A07012"; $regex = '#\b' . substr_replace($orderId, '(?:&nbsp;)+', 12, 3) . '\b#'; var_export(preg_replace($regex, $orderId, $content));

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.20.0140.00518.65
8.5.10.0130.00616.82
8.5.00.0110.01020.16
8.4.170.0120.00920.43
8.4.160.0100.01222.11
8.4.150.0020.00014.05
8.4.140.0140.00718.00
8.4.130.0040.00518.13
8.4.120.0110.01024.13
8.4.110.0130.00622.57
8.4.100.0140.00717.71
8.4.90.0110.01020.76
8.4.80.0030.00518.11
8.4.70.0080.01217.98
8.4.60.0100.00618.48
8.4.50.0110.00919.70
8.4.40.0120.00817.68
8.4.30.0000.01618.82
8.4.20.0100.01019.84
8.4.10.0090.00019.52
8.3.290.0110.00920.95
8.3.280.0140.00918.54
8.3.270.0140.00616.85
8.3.260.0110.00816.79
8.3.250.0090.01018.85
8.3.240.0130.00617.24
8.3.230.0130.00716.57
8.3.220.0030.00418.77
8.3.210.0090.00916.64
8.3.200.0050.00317.21
8.3.190.0080.01416.65
8.3.180.0140.00519.02
8.3.170.0100.00717.01
8.3.160.0070.01518.59
8.3.150.0110.00720.58
8.3.140.0070.01316.93
8.3.130.0060.00616.74
8.3.120.0030.00620.97
8.3.110.0050.00316.73
8.3.100.0030.00524.06
8.3.90.0000.00826.77
8.3.80.0090.00018.43
8.3.70.0150.00718.43
8.3.60.0170.00318.30
8.3.50.0110.00418.57
8.3.40.0030.01422.05
8.3.30.0130.01018.99
8.3.20.0100.00324.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.300.0130.00722.30
8.2.290.0100.00820.54
8.2.280.0130.00518.51
8.2.270.0090.00016.96
8.2.260.0040.00419.00
8.2.250.0110.00718.39
8.2.240.0050.00517.17
8.2.230.0030.00620.94
8.2.220.0100.00037.54
8.2.210.0070.00326.77
8.2.200.0100.00018.66
8.2.190.0220.00016.71
8.2.180.0120.00916.63
8.2.170.0120.00319.04
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00820.77
8.2.110.0060.00319.24
8.2.100.0230.01218.44
8.2.90.0220.00718.44
8.2.80.0200.00918.44
8.2.70.0230.00718.44
8.2.60.0220.00718.44
8.2.50.0230.00418.44
8.2.40.0290.00018.44
8.2.30.0170.00918.44
8.2.20.0210.00618.44
8.2.10.0230.00318.44
8.2.00.0240.00418.44
8.1.340.0120.00919.81
8.1.330.0100.00821.89
8.1.320.0120.00716.31
8.1.310.0090.00018.32
8.1.300.0130.00316.16
8.1.290.0090.00030.84
8.1.280.0150.00425.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0220.00418.44
8.1.220.0270.00018.44
8.1.210.0220.00518.44
8.1.200.0210.00718.44
8.1.190.0320.00018.44
8.1.180.0290.00018.44
8.1.170.0250.00418.44
8.1.160.0230.00618.44
8.1.150.0290.00318.44
8.1.140.0210.00718.44
8.1.130.0220.00718.44
8.1.120.0290.00018.44
8.1.110.0160.01118.44
8.1.100.0210.00518.44
8.1.90.0230.00318.44
8.1.80.0210.00718.44
8.1.70.0170.01018.44
8.1.60.0210.00718.44
8.1.50.0140.01218.44
8.1.40.0210.00518.44
8.1.30.0200.00718.44
8.1.20.0250.00318.44
8.1.10.0220.00418.44
8.1.00.0230.00018.44
8.0.300.0230.00418.44
8.0.290.0260.00318.44
8.0.280.0230.00518.44
8.0.270.0210.00318.44
8.0.260.0240.00418.44
8.0.250.0200.00718.44
8.0.240.0170.01318.44
8.0.230.0270.00018.44
8.0.220.0270.00018.44
8.0.210.0270.00018.44
8.0.200.0240.00518.44
8.0.190.0240.00418.44
8.0.180.0230.00418.44
8.0.170.0370.00018.44
8.0.160.0300.00018.44
8.0.150.0200.00818.44
8.0.140.0270.00318.44
8.0.130.0190.00818.44
8.0.120.0240.00318.44
8.0.110.0280.00018.44
8.0.100.0180.01018.44
8.0.90.0180.00918.44
8.0.80.0210.00518.44
8.0.70.0230.00818.44
8.0.60.0290.00018.44
8.0.50.0230.00618.44
8.0.30.0230.00418.44
8.0.20.0190.00818.44
8.0.10.0250.00018.44

preferences:
102.97 ms | 403 KiB | 5 Q