3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "ABC01 ABC02 ABC03 ABC04 ABC05 ABC06 "; echo preg_replace( '/\R+(?=ABC04)/', ' - ', trim($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.3.130.0090.00618.26
8.3.120.0090.00618.80
8.3.110.0060.01320.94
8.3.100.0050.00524.06
8.3.90.0080.00026.77
8.3.80.0060.00318.31
8.3.70.0180.00016.75
8.3.60.0110.00416.63
8.3.50.0070.01116.63
8.3.40.0130.00723.68
8.3.30.0030.01320.18
8.3.20.0040.00424.18
8.3.10.0000.02023.56
8.3.00.0110.00720.93
8.2.250.0040.00416.96
8.2.240.0070.01117.27
8.2.230.0040.00422.58
8.2.220.0090.00037.54
8.2.210.0160.00326.77
8.2.200.0090.00016.88
8.2.190.0130.00616.63
8.2.180.0070.01425.92
8.2.170.0100.01019.14
8.2.160.0110.00722.96
8.2.150.0040.00425.66
8.2.140.0060.01222.34
8.2.130.0140.00422.25
8.2.120.0130.00619.14
8.2.110.0000.01919.15
8.2.100.0070.01119.19
8.2.90.0080.00818.84
8.2.80.0120.00319.04
8.2.70.0080.01118.75
8.2.60.0100.01018.85
8.2.50.0090.00618.93
8.2.40.0040.01518.95
8.2.30.0100.01018.80
8.2.20.0100.01018.70
8.2.10.0140.00018.65
8.2.00.0070.01318.70
8.1.300.0070.00718.22
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0080.00022.14
8.1.260.0140.00421.87
8.1.250.0120.00622.19
8.1.240.0190.00018.60
8.1.230.0060.00318.70
8.1.220.0050.00318.87
8.1.210.0090.00018.49
8.1.200.0040.00418.46
8.1.190.0080.00018.55
8.1.180.0000.00818.39
8.1.170.0060.00318.45
8.1.160.0150.00018.66
8.1.150.0090.00618.59
8.1.140.0060.00920.27
8.1.130.0000.00820.52
8.1.120.0040.00420.49
8.1.110.0130.00320.36
8.1.100.0060.00920.17
8.1.90.0080.00020.41
8.1.80.0040.01120.46
8.1.70.0080.00820.27
8.1.60.0120.00320.50
8.1.50.0060.00320.59
8.1.40.0080.00020.60
8.1.30.0070.00720.59
8.1.20.0080.00020.56
8.1.10.0000.00820.52
8.1.00.0040.00420.48

preferences:
26.26 ms | 403 KiB | 5 Q