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 012 TEXT; $orderId = "JKSZ089P6X07A07012"; $regex = '#\b' . substr_replace($orderId, '\s+', 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.10.0170.01116.92
8.5.00.0140.00720.33
8.4.150.0030.00014.05
8.4.140.0140.01117.95
8.4.130.0130.00819.51
8.4.120.0070.01326.03
8.4.110.0150.00522.69
8.4.100.0120.01117.95
8.4.90.0040.00422.52
8.4.80.0040.00417.80
8.4.70.0150.00718.04
8.4.60.0060.01520.61
8.4.50.0100.00622.75
8.4.40.0160.00017.75
8.4.30.0030.01618.75
8.4.20.0030.01618.14
8.4.10.0090.00019.49
8.3.280.0120.00818.66
8.3.270.0100.00916.58
8.3.260.0120.00716.65
8.3.250.0090.01018.79
8.3.240.0100.00917.30
8.3.230.0090.01216.70
8.3.220.0080.00817.10
8.3.210.0120.00518.50
8.3.200.0070.00116.60
8.3.190.0100.00916.92
8.3.180.0050.00318.48
8.3.170.0150.00317.20
8.3.160.0060.01217.11
8.3.150.0120.00618.87
8.3.140.0040.01118.70
8.3.130.0090.00916.98
8.3.120.0040.00420.84
8.3.110.0080.00020.94
8.3.100.0060.00324.06
8.3.90.0040.00418.36
8.3.80.0060.00318.43
8.3.70.0100.01016.63
8.3.60.0170.00318.23
8.3.50.0170.00316.80
8.3.40.0150.00020.38
8.3.30.0110.00419.00
8.3.20.0090.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0130.00620.24
8.2.280.0080.01018.71
8.2.270.0100.01016.61
8.2.260.0070.01016.91
8.2.250.0000.00816.75
8.2.240.0040.00717.09
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0090.00926.77
8.2.200.0060.00316.63
8.2.190.0160.00616.58
8.2.180.0070.00716.86
8.2.170.0080.00819.04
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00318.97
8.2.110.0100.00019.45
8.2.100.0290.00418.44
8.2.90.0220.00818.44
8.2.80.0250.00418.44
8.2.70.0250.00618.44
8.2.60.0070.00719.38
8.2.50.0240.00618.44
8.2.40.0180.00418.80
8.2.30.0190.01018.44
8.2.20.0270.00318.44
8.2.10.0250.00318.44
8.2.00.0250.00418.44
8.1.330.0090.00821.95
8.1.320.0120.00816.09
8.1.310.0090.00916.47
8.1.300.0060.00318.33
8.1.290.0100.00030.84
8.1.280.0070.01425.92
8.1.270.0070.00024.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00319.28
8.1.230.0150.00519.18
8.1.220.0280.00018.44
8.1.210.0230.00618.44
8.1.200.0260.00318.44
8.1.190.0220.00718.44
8.1.180.0150.01118.44
8.1.170.0330.00018.44
8.1.160.0230.00318.44
8.1.150.0180.00918.44
8.1.140.0240.00318.44
8.1.130.0240.00518.44
8.1.120.0260.00018.44
8.1.110.0240.00318.44
8.1.100.0250.00318.44
8.1.90.0200.00718.44
8.1.80.0250.00318.44
8.1.70.0180.00918.44
8.1.60.0200.00818.44
8.1.50.0220.00518.44
8.1.40.0250.00318.44
8.1.30.0230.00318.44
8.1.20.0200.00818.44
8.1.10.0230.00418.44
8.1.00.0170.00618.44
8.0.300.0220.00618.44
8.0.290.0230.00718.44
8.0.280.0280.00018.44
8.0.270.0270.00018.44
8.0.260.0220.00718.44
8.0.250.0230.00618.44
8.0.240.0170.00818.44
8.0.230.0280.00418.44
8.0.220.0290.00018.44
8.0.210.0250.00618.44
8.0.200.0260.00318.44
8.0.190.0240.00318.44
8.0.180.0210.00618.44
8.0.170.0270.00018.44
8.0.160.0230.00618.44
8.0.150.0260.00418.44
8.0.140.0250.00218.44
8.0.130.0240.00418.44
8.0.120.0180.00918.44
8.0.110.0200.00718.44
8.0.100.0290.00018.44
8.0.90.0200.00818.44
8.0.80.0210.00718.44
8.0.70.0240.00418.44
8.0.60.0220.00418.44
8.0.50.0230.00318.44
8.0.30.0230.00318.44
8.0.20.0240.00518.44
8.0.10.0250.00418.44

preferences:
47.2 ms | 403 KiB | 5 Q