3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "ABC01 ABC02 ABC03 ABC04 ABC05 ABC06 "; echo preg_replace( '/.+\K\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.4.130.0090.01217.98
8.4.120.0100.01020.36
8.4.110.0110.00922.52
8.4.100.0140.00717.98
8.4.90.0120.00918.80
8.4.80.0120.00818.61
8.4.70.0100.01018.02
8.4.60.0120.00818.87
8.4.50.0130.00822.26
8.4.40.0170.00317.80
8.4.30.0090.01018.97
8.4.20.0130.00619.99
8.4.10.0100.00719.41
8.3.260.0120.00516.86
8.3.250.0130.00518.66
8.3.240.0070.00717.09
8.3.230.0060.00516.71
8.3.220.0100.00818.79
8.3.210.0110.00818.33
8.3.200.0060.00216.69
8.3.190.0020.00718.73
8.3.180.0130.00616.84
8.3.170.0100.00720.73
8.3.160.0110.00716.90
8.3.150.0110.00718.75
8.3.140.0070.00720.77
8.3.130.0040.00418.62
8.3.120.0040.00419.00
8.3.110.0000.01020.94
8.3.100.0120.00624.06
8.3.90.0040.00426.77
8.3.80.0040.00418.27
8.3.70.0040.01416.63
8.3.60.0000.01516.63
8.3.50.0090.00918.51
8.3.40.0060.00923.62
8.3.30.0070.01020.34
8.3.20.0000.00724.18
8.3.10.0030.01523.61
8.3.00.0090.00920.68
8.2.290.0040.00420.32
8.2.280.0100.00818.41
8.2.270.0070.01119.22
8.2.260.0000.00820.59
8.2.250.0080.00016.66
8.2.240.0030.00617.06
8.2.230.0060.00322.58
8.2.220.0060.00937.54
8.2.210.0070.01126.77
8.2.200.0000.00918.66
8.2.190.0040.01116.63
8.2.180.0100.01016.63
8.2.170.0100.01018.96
8.2.160.0140.00022.96
8.2.150.0050.00325.66
8.2.140.0070.01122.29
8.2.130.0130.00622.19
8.2.120.0120.00621.05
8.2.110.0120.00621.00
8.2.100.0070.01420.99
8.2.90.0090.00620.77
8.2.80.0090.00620.86
8.2.70.0090.00620.62
8.2.60.0060.01020.75
8.2.50.0070.00720.74
8.2.40.0110.00720.80
8.2.30.0170.00320.82
8.2.20.0030.00620.55
8.2.10.0030.00620.54
8.2.00.0150.00320.57
8.1.330.0120.00721.86
8.1.320.0120.00716.27
8.1.310.0120.00616.46
8.1.300.0040.00417.95
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0040.00423.91
8.1.260.0040.00423.85
8.1.250.0000.00823.84
8.1.240.0090.00920.44
8.1.230.0150.00420.50
8.1.220.0110.00720.79
8.1.210.0100.00620.39
8.1.200.0090.00020.44
8.1.190.0070.00720.33
8.1.180.0080.00820.20
8.1.170.0070.00720.40
8.1.160.0070.00720.26
8.1.150.0080.00020.22
8.1.140.0040.00420.29
8.1.130.0080.00020.53
8.1.120.0060.00320.45
8.1.110.0080.00020.46
8.1.100.0040.00420.51
8.1.90.0030.00520.34
8.1.80.0030.00520.46
8.1.70.0050.00320.33
8.1.60.0060.00320.45
8.1.50.0060.00320.34
8.1.40.0050.00320.46
8.1.30.0060.00320.50
8.1.20.0060.00320.60
8.1.10.0040.00420.52
8.1.00.0080.00020.39

preferences:
68.08 ms | 406 KiB | 6 Q