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('/#\w/', "$strTwo$0", $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.0100.00819.46
8.5.20.0090.01020.18
8.5.10.0110.00819.65
8.5.00.0120.00923.01
8.4.180.0160.00423.89
8.4.170.0120.00921.83
8.4.160.0130.00823.59
8.4.150.0070.00517.82
8.4.140.0150.01217.52
8.4.130.0050.00418.24
8.4.120.0090.01122.06
8.4.110.0130.00818.89
8.4.100.0120.00818.94
8.4.90.0080.00520.56
8.4.80.0120.01118.58
8.4.70.0050.00318.12
8.4.60.0140.00618.61
8.4.50.0150.00618.66
8.4.40.0070.00720.36
8.4.30.0070.01122.10
8.4.20.0170.00317.89
8.4.10.0100.00723.62
8.3.300.0120.00920.42
8.3.290.0140.00820.91
8.3.280.0130.00620.94
8.3.270.0160.00316.55
8.3.260.0060.00216.52
8.3.250.0050.00418.95
8.3.240.0090.01016.60
8.3.230.0130.00116.44
8.3.220.0070.00118.94
8.3.210.0120.00616.85
8.3.200.0050.00316.45
8.3.190.0100.00917.16
8.3.180.0110.00717.09
8.3.170.0070.01118.66
8.3.160.0070.01117.23
8.3.150.0000.00817.12
8.3.140.0120.00616.66
8.3.130.0080.00016.58
8.3.120.0090.00020.61
8.3.110.0000.00820.94
8.3.100.0060.00924.06
8.3.90.0070.00726.77
8.3.80.0060.00317.97
8.3.70.0130.00318.56
8.3.60.0100.01016.48
8.3.50.0090.00616.33
8.3.40.0090.00620.12
8.3.30.0100.00720.73
8.3.20.0000.00924.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.300.0110.01018.25
8.2.290.0100.00820.33
8.2.280.0040.00318.45
8.2.270.0150.00417.09
8.2.260.0110.00718.52
8.2.250.0020.00516.78
8.2.240.0110.00017.34
8.2.230.0090.00622.58
8.2.220.0050.00337.54
8.2.210.0140.00726.77
8.2.200.0060.00316.88
8.2.190.0130.00317.00
8.2.180.0140.00718.41
8.2.170.0090.00919.04
8.2.160.0090.00622.96
8.2.150.0050.00225.66
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0050.00319.22
8.2.110.0060.00321.12
8.2.100.0050.00917.74
8.2.90.0050.00318.22
8.2.80.0080.00018.03
8.2.70.0040.00417.73
8.2.60.0190.00017.50
8.2.50.0090.00917.50
8.2.40.0070.01017.63
8.2.30.0100.00717.25
8.2.20.0130.00317.50
8.2.10.0080.00817.46
8.2.00.0120.00517.50
8.1.340.0130.01017.73
8.1.330.0100.00821.79
8.1.320.0110.00817.72
8.1.310.0070.01116.65
8.1.300.0050.00518.13
8.1.290.0040.00430.84
8.1.280.0060.00925.92
8.1.270.0050.00323.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.01223.83
8.1.230.0060.00620.96
8.1.220.0050.00317.76
8.1.210.0050.00318.77
8.1.200.0000.00917.47
8.1.190.0060.01016.88
8.1.180.0140.00317.00
8.1.170.0160.00317.00
8.1.160.0130.00616.75
8.1.150.0160.00316.88
8.1.140.0140.00317.13
8.1.130.0160.00317.13
8.1.120.0080.00817.25
8.1.110.0130.00317.00
8.1.100.0130.00417.22
8.1.90.0130.00317.38
8.1.80.0110.00717.36
8.1.70.0170.00017.38
8.1.60.0120.00617.47
8.1.50.0130.00617.38
8.1.40.0140.00517.23
8.1.30.0180.00017.38
8.1.20.0110.00717.50
8.1.10.0120.00617.34
8.1.00.0120.00517.38
8.0.300.0040.00419.89
8.0.290.0070.00016.88
8.0.280.0140.00316.75
8.0.270.0130.00416.88
8.0.260.0100.00716.84
8.0.250.0160.00016.72
8.0.240.0070.00916.63
8.0.230.0130.00316.63
8.0.220.0080.00816.52
8.0.210.0080.00816.74
8.0.200.0090.00916.71
8.0.190.0080.00816.73
8.0.180.0000.01916.73
8.0.170.0190.00016.75
8.0.160.0140.00516.88
8.0.150.0090.00916.63
8.0.140.0120.00616.88
8.0.130.0080.00816.71
8.0.120.0090.00716.61
8.0.110.0160.00016.61
8.0.100.0140.00216.52
8.0.90.0100.00716.52
8.0.80.0130.00416.59
8.0.70.0120.00416.88
8.0.60.0090.00516.80
8.0.50.0110.00416.73
8.0.30.0100.00716.52
8.0.20.0120.00416.88
8.0.10.0110.00516.63

preferences:
75.1 ms | 1113 KiB | 5 Q