3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<h1>Oude tekst hier</h1>'; $search = "/[^<h1>](.*)[^<\/h1>]/"; $replace = "Here my new text"; $content = preg_replace($search,$replace,$string); echo $content;

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.60.0000.01416.36
8.3.50.0100.01018.21
8.3.40.0110.00620.52
8.3.30.0110.00318.78
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.180.0070.01325.92
8.2.170.0150.00018.79
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0000.00721.13
8.2.110.0000.01121.23
8.2.100.0040.00818.03
8.2.90.0040.00420.40
8.2.80.0040.00417.97
8.2.70.0090.00017.61
8.2.60.0050.00317.74
8.2.50.0040.00417.98
8.2.40.0050.00218.03
8.2.30.0040.00418.04
8.2.20.0000.00720.45
8.2.10.0040.00417.94
8.2.00.0000.00719.31
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00722.55
8.1.230.0060.00620.97
8.1.220.0000.00817.78
8.1.210.0070.00318.81
8.1.200.0000.00917.36
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00317.62
8.1.160.0040.00418.89
8.1.150.0040.00418.63
8.1.140.0000.01017.52
8.1.130.0050.00518.76
8.1.120.0000.00717.50
8.1.110.0000.00817.48
8.1.100.0030.00617.54
8.1.90.0070.00017.54
8.1.80.0060.00317.52
8.1.70.0000.00817.54
8.1.60.0030.00617.67
8.1.50.0030.00617.55
8.1.40.0090.00317.48
8.1.30.0000.00917.68
8.1.20.0060.00317.70
8.1.10.0030.00517.59
8.1.00.0030.00517.50
8.0.300.0030.01119.57
8.0.290.0000.00816.75
8.0.280.0040.00420.13
8.0.270.0030.00316.89
8.0.260.0000.00718.45
8.0.250.0030.00317.08
8.0.240.0040.00416.96
8.0.230.0030.00317.02
8.0.220.0000.00816.94
8.0.210.0000.00816.98
8.0.200.0030.00317.05
8.0.190.0060.00316.92
8.0.180.0000.00816.89
8.0.170.0040.00416.91
8.0.160.0050.00316.96
8.0.150.0000.00716.98
8.0.140.0000.00816.93
8.0.130.0000.00716.98
8.0.120.0040.00416.94
8.0.110.0030.00516.86
8.0.100.0000.00716.86
8.0.90.0020.00516.96
8.0.80.0070.00016.82
8.0.70.0040.00416.91
8.0.60.0040.00416.82
8.0.50.0040.00416.88
8.0.30.0000.00816.95
8.0.20.0080.00017.02
8.0.10.0050.00216.99
7.4.330.0000.00515.55
7.4.320.0030.00316.75
7.4.300.0000.00616.66
7.4.290.0030.00316.64
7.4.280.0030.00516.63
7.4.270.0000.00616.70
7.4.260.0000.00816.48
7.4.250.0000.00716.51
7.4.240.0000.00716.72
7.4.230.0000.00716.73
7.4.220.0030.00316.58
7.4.210.0000.00716.70
7.4.200.0030.00316.61
7.4.190.0040.00416.71
7.4.180.0070.00016.68
7.4.160.0000.00816.55
7.4.150.0000.00716.66
7.4.140.0000.00716.65
7.4.130.0030.00316.54
7.4.120.0070.00016.61
7.4.110.0070.00016.55
7.4.100.0040.00416.54
7.4.90.0050.00216.66
7.4.80.0000.00716.61
7.4.70.0050.00216.52
7.4.60.0000.00716.64
7.4.50.0000.00716.70
7.4.40.0040.00416.70
7.4.30.0000.00716.48
7.4.20.0000.00916.56
7.4.10.0030.00616.57
7.4.00.0000.00816.54

preferences:
54.44 ms | 401 KiB | 5 Q