3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strOne = "Place new content here: , but not past the commma."; $strTwo = "test content"; echo preg_replace('/,/', "$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.0120.00619.52
8.5.20.0150.00720.21
8.5.10.0110.00719.69
8.5.00.0110.01022.64
8.4.180.0140.01022.07
8.4.170.0120.01023.86
8.4.160.0140.00823.82
8.4.150.0080.00516.97
8.4.140.0150.00817.96
8.4.130.0110.00917.98
8.4.120.0100.01020.60
8.4.110.0110.01022.49
8.4.100.0160.00517.84
8.4.90.0130.00818.75
8.4.80.0040.00517.89
8.4.70.0100.00617.89
8.4.60.0130.00818.82
8.4.50.0110.01118.53
8.4.40.0060.00320.35
8.4.30.0030.00622.14
8.4.20.0130.00617.85
8.4.10.0170.00323.74
8.3.300.0160.00518.56
8.3.290.0100.01021.00
8.3.280.0110.00920.16
8.3.270.0130.00916.45
8.3.260.0150.00416.76
8.3.250.0070.00818.80
8.3.240.0110.00616.42
8.3.230.0130.00716.56
8.3.220.0090.00617.01
8.3.210.0120.00518.59
8.3.200.0060.00316.75
8.3.190.0100.00917.18
8.3.180.0110.00816.50
8.3.170.0070.01017.08
8.3.160.0120.00818.39
8.3.150.0060.01220.61
8.3.140.0040.00416.85
8.3.130.0060.00618.38
8.3.120.0060.00318.98
8.3.110.0140.00020.94
8.3.100.0040.00724.06
8.3.90.0080.00026.77
8.3.80.0040.00417.97
8.3.70.0120.00818.43
8.3.60.0180.00018.54
8.3.50.0070.01118.36
8.3.40.0100.00320.34
8.3.30.0180.00020.81
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.300.0140.01118.23
8.2.290.0090.00220.64
8.2.280.0090.01018.21
8.2.270.0070.01117.28
8.2.260.0140.00317.33
8.2.250.0100.00719.07
8.2.240.0000.01518.94
8.2.230.0090.00022.58
8.2.220.0090.00037.54
8.2.210.0060.00926.77
8.2.200.0070.00416.63
8.2.190.0140.00316.58
8.2.180.0140.00618.25
8.2.170.0100.01019.13
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.01119.77
8.2.110.0070.00322.07
8.2.100.0090.00317.84
8.2.90.0000.00817.88
8.2.80.0050.00318.99
8.2.70.0060.00317.63
8.2.60.0030.00617.75
8.2.50.0110.00617.44
8.2.40.0140.00117.56
8.2.30.0110.00218.55
8.2.20.0060.00618.43
8.2.10.0150.00217.56
8.2.00.0090.00717.69
8.1.340.0140.00817.81
8.1.330.0110.00721.82
8.1.320.0100.01016.24
8.1.310.0000.00816.56
8.1.300.0060.00318.06
8.1.290.0040.00430.84
8.1.280.0090.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.70
8.1.230.0030.00719.09
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0020.01018.01
8.1.180.0110.00617.05
8.1.170.0120.00517.25
8.1.160.0100.00717.31
8.1.150.0090.00717.29
8.1.140.0120.00218.19
8.1.130.0150.00317.25
8.1.120.0140.00317.24
8.1.110.0130.00317.34
8.1.100.0140.00317.42
8.1.90.0110.00517.48
8.1.80.0150.00217.30
8.1.70.0150.00117.13
8.1.60.0140.00417.38
8.1.50.0090.00817.38
8.1.40.0130.00517.43
8.1.30.0110.00717.48
8.1.20.0170.00117.24
8.1.10.0140.00517.44
8.1.00.0140.00417.24
8.0.300.0070.00319.84
8.0.290.0040.00416.75
8.0.280.0090.00816.73
8.0.270.0110.00516.68
8.0.260.0140.00316.74
8.0.250.0090.00716.73
8.0.240.0120.00316.81
8.0.230.0110.00416.75
8.0.220.0110.00716.63
8.0.210.0110.00616.57
8.0.200.0170.00216.80
8.0.190.0170.00016.63
8.0.180.0150.00216.52
8.0.170.0140.00316.75
8.0.160.0110.00516.72
8.0.150.0150.00216.81
8.0.140.0110.00616.87
8.0.130.0070.01016.75
8.0.120.0080.00816.79
8.0.110.0110.00516.81
8.0.100.0110.00516.63
8.0.90.0180.00016.52
8.0.80.0110.00616.63
8.0.70.0100.00816.63
8.0.60.0110.00317.05
8.0.50.0100.00616.63
8.0.30.0110.00516.55
8.0.20.0120.00516.62
8.0.10.0120.00516.56

preferences:
43.83 ms | 1111 KiB | 5 Q