3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pat = '\<front_page\>(.*)\<\/front_page\>\<!-- SLIDER --\>'; $sub = '\1'; $code = '<front_page><!-- ABECADŁO -->[%homebanner%]</front_page> <!-- /SLIDER --> <!-- BREADCRUMBS --> <!-- /BREADCRUMBS --> <!-- CONTENT --> <div id="content" class="clear"> <div class="wrapper"> <div id="mc" class="clear"> <no_front_page> <div id="ls"> [%left_side%] </div> <div id="ms"> [%mid_side%] </div> </no_front_page> <!-- ABECADŁO 2 --> <front_page> <div id="ms" class="fullpage"> [%mid_side%] </div> </front_page>'; mb_regex_encoding('UTF-8'); $code = mb_ereg_replace($pat, $sub, $code); var_dump($code);

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.0140.00416.88
8.3.50.0150.00722.11
8.3.40.0070.00718.71
8.3.30.0070.00718.53
8.3.20.0000.00720.37
8.3.10.0000.00821.94
8.3.00.0090.00019.10
8.2.180.0150.00616.74
8.2.170.0000.01522.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00517.50
8.2.120.0070.00026.35
8.2.110.0030.00719.51
8.2.100.0070.00317.72
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0080.00017.62
8.2.60.0050.00317.91
8.2.50.0000.00818.07
8.2.40.0050.00319.37
8.2.30.0000.00820.67
8.2.20.0030.00617.62
8.2.10.0040.00418.10
8.2.00.0040.00418.18
8.1.280.0100.00725.92
8.1.270.0070.00324.02
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00421.29
8.1.230.0040.00817.52
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0070.00317.23
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0040.00418.80
8.1.160.0040.00422.14
8.1.150.0000.00718.95
8.1.140.0040.00419.69
8.1.130.0020.00517.82
8.1.120.0040.00417.49
8.1.110.0030.00517.51
8.1.100.0040.00417.55
8.1.90.0020.00517.55
8.1.80.0040.00417.36
8.1.70.0000.00717.46
8.1.60.0080.00317.65
8.1.50.0030.00517.61
8.1.40.0080.00017.48
8.1.30.0110.00017.57
8.1.20.0070.00017.58
8.1.10.0040.00417.54
8.1.00.0030.00517.55
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.47
8.0.270.0040.00417.29
8.0.260.0060.00317.38
8.0.250.0000.00716.98
8.0.240.0000.00816.99
8.0.230.0000.00817.02
8.0.220.0080.00016.90
8.0.210.0030.00316.82
8.0.200.0000.00616.94
8.0.190.0040.00416.93
8.0.180.0070.00016.88
8.0.170.0030.00517.00
8.0.160.0100.00016.92
8.0.150.0050.00316.88
8.0.140.0080.00016.87
8.0.130.0000.00513.37
8.0.120.0030.00516.83
8.0.110.0040.00416.90
8.0.100.0040.00416.85
8.0.90.0000.00816.94
8.0.80.0120.00616.94
8.0.70.0070.00017.04
8.0.60.0000.00816.85
8.0.50.0070.00017.11
8.0.30.0080.00917.11
8.0.20.0170.01917.40
8.0.10.0040.00416.98
8.0.00.0110.00816.89
7.4.330.0050.00016.84
7.4.320.0030.00316.46
7.4.300.0030.00316.57
7.4.290.0000.00616.59
7.4.280.0080.00016.54
7.4.270.0030.00316.56
7.4.260.0000.00716.57
7.4.250.0000.00716.55
7.4.240.0020.00516.61
7.4.230.0030.00316.77
7.4.220.0030.01416.54
7.4.210.0040.01116.73
7.4.200.0020.00516.47
7.4.160.0060.00916.68
7.4.150.0150.00317.40
7.4.140.0150.00817.86
7.4.130.0120.00516.42
7.4.120.0130.00916.47
7.4.110.0070.01016.46
7.4.100.0130.00616.41
7.4.90.0030.01516.59
7.4.80.0060.01619.39
7.4.70.0110.00816.47
7.4.60.0100.01016.40
7.4.50.0040.00716.54
7.4.40.0110.00716.47
7.4.30.0030.01416.39
7.4.00.0100.00715.01
7.3.330.0030.00312.96
7.3.320.0030.00312.95
7.3.310.0000.00716.06
7.3.300.0050.00316.15
7.3.290.0120.00516.27
7.3.280.0070.01016.23
7.3.270.0030.01417.40
7.3.260.0030.01616.50
7.3.250.0130.00716.32
7.3.240.0050.01116.22
7.3.230.0120.00616.39
7.3.210.0070.01416.53
7.3.200.0060.00916.13
7.3.190.0090.01016.48
7.3.180.0030.01316.39
7.3.170.0140.00316.29
7.3.160.0030.01216.49
7.3.120.0040.01214.41
7.3.110.0040.01414.54
7.3.100.0030.01214.64
7.3.90.0030.01014.91
7.3.80.0070.01015.09
7.3.70.0100.00714.85
7.3.60.0080.00614.82
7.3.50.0070.00714.80
7.3.40.0070.00714.73
7.3.30.0060.00614.50
7.3.20.0070.00716.63
7.3.10.0060.00916.62
7.3.00.0100.00316.43
7.2.330.0160.00416.46
7.2.320.0120.00616.57
7.2.310.0160.00016.54
7.2.300.0050.01516.66
7.2.290.0200.00316.59
7.2.250.0090.00914.89
7.2.240.0030.01714.86
7.2.230.0070.00714.68
7.2.220.0100.01015.11
7.2.210.0040.00715.12
7.2.200.0060.00914.69
7.2.190.0120.00015.02
7.2.180.0070.00714.75
7.2.170.0000.01114.77
7.2.60.0230.00616.82
7.1.330.0060.00915.72
7.1.320.0000.01515.58
7.1.310.0070.00715.87
7.1.300.0030.00715.80
7.1.290.0030.00915.80
7.1.280.0110.00015.89
7.1.270.0000.01115.81
7.1.260.0000.01015.77
7.1.200.0070.00715.70
7.1.70.0000.00716.80
7.1.60.0170.00719.48
7.1.50.0100.01016.85
7.1.00.0070.07322.40
7.0.200.0000.01016.55
7.0.60.0030.08019.91
7.0.50.0100.04717.82
7.0.40.0130.07320.18
7.0.30.0300.05020.09
7.0.20.0400.07320.13
7.0.10.0070.04020.33
7.0.00.0030.05020.13
5.6.280.0070.04720.85
5.6.210.0130.07320.46
5.6.200.0100.07718.22
5.6.190.0170.08020.60
5.6.180.0370.07320.57
5.6.170.0170.05020.49
5.6.160.0000.04320.48
5.6.150.0070.04018.19
5.6.140.0070.04718.22
5.6.130.0070.08318.19
5.6.120.0070.07320.97
5.6.110.0000.08320.96
5.6.100.0170.08021.12
5.6.90.0030.06320.99
5.6.80.0070.06720.40
5.5.350.4100.04320.40
5.5.340.0100.07717.96
5.5.330.0030.07720.24
5.5.320.0030.04020.13
5.5.310.0230.05720.13
5.5.300.0070.05017.91
5.5.290.0000.07017.96
5.5.280.0100.06720.87
5.5.270.0100.08320.63
5.5.260.0170.07720.66
5.5.250.0100.05320.67
5.5.240.0330.07320.03

preferences:
38.91 ms | 401 KiB | 5 Q