3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strOne = "Programming requires life long learning #learning #stackoverflow #programming"; $strTwo = "\n\n"; echo preg_replace('/ \K(?=#\w)/', $strTwo, $strOne, 1);

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.30.0110.00719.57
8.5.20.0090.01220.16
8.5.10.0100.00719.40
8.5.00.0100.01022.84
8.4.180.0150.00919.70
8.4.170.0120.01020.37
8.4.160.0140.00822.10
8.4.150.0070.00516.96
8.4.140.0140.00717.87
8.4.130.0100.01017.76
8.4.120.0030.00520.47
8.4.110.0130.00822.63
8.4.100.0130.00817.93
8.4.90.0140.00618.95
8.4.80.0040.00517.89
8.4.70.0020.00617.91
8.4.60.0110.00519.11
8.4.50.0120.00818.77
8.4.40.0090.00620.49
8.4.30.0000.00822.06
8.4.20.0150.00718.10
8.4.10.0140.00323.68
8.3.300.0140.00820.79
8.3.290.0100.01120.69
8.3.280.0130.00718.51
8.3.270.0130.00816.66
8.3.260.0130.00516.90
8.3.250.0110.00718.80
8.3.240.0130.00716.90
8.3.230.0150.00516.70
8.3.220.0100.00917.17
8.3.210.0110.00618.41
8.3.200.0030.00516.93
8.3.190.0120.00616.81
8.3.180.0110.00717.07
8.3.170.0180.00018.77
8.3.160.0140.00417.21
8.3.150.0070.01117.02
8.3.140.0110.00718.84
8.3.130.0040.00418.48
8.3.120.0140.00420.63
8.3.110.0160.00316.96
8.3.100.0040.00416.62
8.3.90.0040.00426.77
8.3.80.0070.00317.97
8.3.70.0100.00618.30
8.3.60.0090.00616.63
8.3.50.0120.00418.58
8.3.40.0070.00720.49
8.3.30.0090.00620.56
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.300.0120.00822.04
8.2.290.0110.00820.60
8.2.280.0050.00318.73
8.2.270.0060.00317.21
8.2.260.0070.01118.57
8.2.250.0030.00618.53
8.2.240.0080.00017.18
8.2.230.0030.00720.94
8.2.220.0030.00624.06
8.2.210.0040.01126.77
8.2.200.0060.00318.54
8.2.190.0110.00416.58
8.2.180.0080.01217.00
8.2.170.0170.00319.21
8.2.160.0000.01422.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00019.61
8.2.110.0070.00320.47
8.2.100.0040.00818.03
8.2.90.0000.00817.87
8.2.80.0000.00819.09
8.2.70.0090.00017.63
8.2.60.0130.00617.50
8.2.50.0090.00917.75
8.2.40.0080.00817.63
8.2.30.0130.00417.63
8.2.20.0090.00617.75
8.2.10.0100.00717.63
8.2.00.0160.00017.63
8.1.340.0140.00817.66
8.1.330.0130.00522.11
8.1.320.0110.00817.79
8.1.310.0050.00316.97
8.1.300.0050.00318.68
8.1.290.0110.00030.84
8.1.280.0110.00725.92
8.1.270.0050.00324.66
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00423.62
8.1.230.0080.00420.95
8.1.220.0050.00317.79
8.1.210.0050.00318.77
8.1.200.0030.00517.35
8.1.190.0050.01117.13
8.1.180.0080.00817.38
8.1.170.0130.00317.34
8.1.160.0070.01017.13
8.1.150.0180.00017.10
8.1.140.0050.01117.38
8.1.130.0000.01617.13
8.1.120.0100.00717.25
8.1.110.0120.00417.25
8.1.100.0130.00317.23
8.1.90.0170.00017.38
8.1.80.0110.00717.38
8.1.70.0100.00717.00
8.1.60.0140.00317.50
8.1.50.0160.00317.38
8.1.40.0090.00917.38
8.1.30.0090.00917.38
8.1.20.0120.00617.50
8.1.10.0150.00317.48
8.1.00.0170.00317.24
8.0.300.0040.00418.96
8.0.290.0070.00016.88
8.0.280.0070.01016.75
8.0.270.0150.00316.63
8.0.260.0110.00716.72
8.0.250.0150.00016.72
8.0.240.0140.00317.00
8.0.230.0100.00716.73
8.0.220.0050.01116.59
8.0.210.0160.00016.72
8.0.200.0170.00016.73
8.0.190.0140.00016.75
8.0.180.0170.00016.75
8.0.170.0090.00916.74
8.0.160.0110.00516.75
8.0.150.0130.00316.63
8.0.140.0090.00916.75
8.0.130.0100.00716.88
8.0.120.0160.00016.75
8.0.110.0120.00516.52
8.0.100.0110.00616.85
8.0.90.0180.00016.63
8.0.80.0130.00416.63
8.0.70.0140.00316.62
8.0.60.0050.01116.78
8.0.50.0090.00616.74
8.0.30.0160.00016.74
8.0.20.0100.00517.00
8.0.10.0050.01016.74

preferences:
80.75 ms | 1113 KiB | 5 Q