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.70.0070.00716.50
8.3.60.0100.00716.88
8.3.50.0090.01022.11
8.3.40.0040.01118.67
8.3.30.0060.00918.65
8.3.20.0000.00820.46
8.3.10.0000.00822.05
8.3.00.0080.00019.38
8.2.190.0140.00316.58
8.2.180.0100.01016.38
8.2.170.0070.00722.96
8.2.160.0100.01020.39
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0060.00317.50
8.2.120.0040.00426.35
8.2.110.0090.00019.33
8.2.100.0080.00317.91
8.2.90.0000.00818.95
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00419.24
8.2.30.0040.00420.70
8.2.20.0000.00917.66
8.2.10.0030.00518.12
8.2.00.0030.00617.99
8.1.280.0070.01425.92
8.1.270.0000.00923.96
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00321.50
8.1.230.0040.00817.57
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0020.00522.11
8.1.150.0040.00418.88
8.1.140.0000.00919.64
8.1.130.0030.00317.77
8.1.120.0060.00317.53
8.1.110.0040.00417.52
8.1.100.0050.00317.59
8.1.90.0040.00417.43
8.1.80.0030.00517.51
8.1.70.0000.00717.45
8.1.60.0030.00617.66
8.1.50.0080.00017.55
8.1.40.0000.00817.55
8.1.30.0040.00717.71
8.1.20.0040.00417.60
8.1.10.0040.00417.60
8.1.00.0070.00017.47
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.50
8.0.270.0030.00317.20
8.0.260.0070.00417.26
8.0.250.0030.00317.04
8.0.240.0030.00617.00
8.0.230.0030.00617.00
8.0.220.0000.00816.90
8.0.210.0000.00716.95
8.0.200.0030.00316.98
8.0.190.0070.00016.92
8.0.180.0000.00716.95
8.0.170.0030.00516.99
8.0.160.0090.00016.93
8.0.150.0060.00316.98
8.0.140.0040.00416.89
8.0.130.0030.00313.38
8.0.120.0060.00316.94
8.0.110.0000.00817.02
8.0.100.0070.00016.85
8.0.90.0030.00416.90
8.0.80.0060.01617.00
8.0.70.0000.00716.81
8.0.60.0000.00716.86
8.0.50.0000.00817.03
8.0.30.0090.00917.12
8.0.20.0140.01117.40
8.0.10.0030.00616.80
8.0.00.0030.01416.72
7.4.330.0050.00016.85
7.4.320.0000.00616.63
7.4.300.0000.00716.66
7.4.290.0000.00716.55
7.4.280.0080.00016.55
7.4.270.0000.00716.48
7.4.260.0000.00716.64
7.4.250.0000.00816.63
7.4.240.0000.00716.55
7.4.230.0000.00716.37
7.4.220.0170.00716.61
7.4.210.0000.01416.59
7.4.200.0000.00716.32
7.4.160.0060.01416.52
7.4.150.0240.01517.40
7.4.140.0090.00917.86
7.4.130.0100.00716.64
7.4.120.0100.01016.54
7.4.110.0090.00916.56
7.4.100.0060.01216.57
7.4.90.0090.00916.53
7.4.80.0100.00719.39
7.4.70.0100.01016.52
7.4.60.0100.01016.36
7.4.50.0070.01016.65
7.4.40.0120.00616.27
7.4.30.0090.01216.54
7.4.10.0070.01114.83
7.4.00.0040.01014.84
7.3.330.0000.00613.02
7.3.320.0060.00012.92
7.3.310.0070.00016.09
7.3.300.0050.00216.25
7.3.290.0090.00716.23
7.3.280.0150.00416.22
7.3.270.0060.01217.40
7.3.260.0110.00716.20
7.3.250.0110.00916.27
7.3.240.0140.00316.16
7.3.230.0110.00516.39
7.3.210.0130.00716.21
7.3.200.0130.00916.50
7.3.190.0060.01016.39
7.3.180.0070.01416.15
7.3.170.0030.01316.40
7.3.160.0070.01016.11
7.3.130.0080.00814.76
7.3.120.0060.01015.03
7.3.110.0070.01114.39
7.3.100.0090.00614.52
7.3.90.0030.01014.61
7.3.80.0070.00714.51
7.3.70.0000.01414.77
7.3.60.0060.00914.86
7.3.50.0070.01114.76
7.3.40.0040.00814.70
7.3.30.0090.00314.70
7.3.20.0040.01116.55
7.3.10.0060.01216.57
7.3.00.0070.00716.46
7.2.330.0120.00916.68
7.2.320.0110.01216.63
7.2.310.0100.01316.47
7.2.300.0100.00616.40
7.2.290.0090.00916.50
7.2.260.0030.01715.14
7.2.250.0090.00614.88
7.2.240.0040.01114.99
7.2.230.0090.00915.06
7.2.220.0030.01014.71
7.2.210.0000.01214.95
7.2.200.0000.01715.08
7.2.190.0100.01014.92
7.2.180.0100.00314.51
7.2.170.0030.00915.04
7.2.160.0040.01414.98
7.2.150.0000.01216.82
7.2.140.0090.00916.71
7.2.130.0100.00716.74
7.2.120.0090.01216.67
7.2.110.0080.00816.64
7.2.100.0060.01316.67
7.2.90.0040.01216.90
7.2.80.0000.01616.82
7.2.70.0100.01016.77
7.2.60.0040.01516.98
7.2.50.0100.00316.85
7.2.40.0030.00716.88
7.2.30.0070.01316.82
7.2.20.0060.00616.95
7.2.10.0110.00716.89
7.2.00.0040.00918.09
7.1.330.0060.00615.90
7.1.320.0060.00815.94
7.1.310.0070.00715.64
7.1.300.0090.00915.68
7.1.290.0080.00815.74
7.1.280.0030.01015.64
7.1.270.0030.01015.45
7.1.260.0120.00615.82
7.1.250.0060.00615.55
7.1.240.0060.01015.44
7.1.230.0090.00815.81
7.1.220.0040.01115.73
7.1.210.0060.01215.55
7.1.200.0090.00915.68
7.1.190.0100.00315.69
7.1.180.0030.01315.93
7.1.170.0060.00815.93
7.1.160.0040.00415.57
7.1.150.0060.00615.89
7.1.140.0130.00315.76
7.1.130.0090.00315.80
7.1.120.0130.00015.82
7.1.110.0030.01015.73
7.1.100.0040.00716.71
7.1.90.0150.00015.85
7.1.80.0070.00715.84
7.1.70.0060.00616.40
7.1.60.0090.00917.60
7.1.50.0080.00916.38
7.1.40.0040.01115.74
7.1.30.0000.01415.81
7.1.20.0000.01115.69
7.1.10.0040.01115.90
7.1.00.0070.03819.08
7.0.330.0050.00815.36
7.0.320.0030.01215.14
7.0.310.0070.00715.44
7.0.300.0030.00715.31
7.0.290.0030.01015.23
7.0.280.0030.01415.31
7.0.270.0080.00815.49
7.0.260.0030.01015.54
7.0.250.0040.01115.26
7.0.240.0070.00315.54
7.0.230.0100.00715.25
7.0.220.0070.00715.20
7.0.210.0030.01015.36
7.0.200.0030.00915.79
7.0.190.0070.00415.42
7.0.180.0030.00715.27
7.0.170.0030.00915.26
7.0.160.0060.00615.35
7.0.150.0060.00615.38
7.0.140.0030.01415.30
7.0.130.0030.00815.32
7.0.120.0030.01015.25
7.0.110.0060.00315.23
7.0.100.0030.01015.22
7.0.90.0000.01615.27
7.0.80.0060.00615.36
7.0.70.0000.01315.16
7.0.60.0070.03017.64
7.0.50.0100.03716.58
7.0.40.0030.02517.04
7.0.30.0170.04316.97
7.0.20.0110.02516.98
7.0.10.0070.02317.01
7.0.00.0030.02517.02
5.6.400.0070.01114.11
5.6.390.0100.00414.10
5.6.380.0080.00513.98
5.6.370.0000.01414.23
5.6.360.0030.01014.37
5.6.350.0090.00314.07
5.6.340.0000.01814.22
5.6.330.0040.00414.50
5.6.320.0070.00714.25
5.6.310.0000.01214.40
5.6.300.0030.00914.64
5.6.290.0040.00814.10
5.6.280.0030.04017.63
5.6.270.0040.00414.28
5.6.260.0000.01114.04
5.6.250.0040.00714.05
5.6.240.0000.01213.89
5.6.230.0100.00314.16
5.6.220.0160.00014.20
5.6.210.0090.02417.31
5.6.200.0080.04216.08
5.6.190.0080.02317.19
5.6.180.0170.02817.46
5.6.170.0140.03217.29
5.6.160.0030.02517.17
5.6.150.0030.03216.13
5.6.140.0080.04116.00
5.6.130.0090.04216.10
5.6.120.0050.03117.63
5.6.110.0100.04617.56
5.6.100.0050.04417.69
5.6.90.0070.02917.71
5.6.80.0060.03617.32
5.6.70.0030.01314.21
5.6.60.0040.01114.18
5.6.50.0030.00614.13
5.6.40.0100.00314.11
5.6.30.0060.00614.30
5.6.20.0070.00314.19
5.6.10.0000.01513.93
5.6.00.0060.00614.05
5.5.380.0090.00614.16
5.5.370.0070.00714.11
5.5.360.0070.00714.42
5.5.350.1200.02317.31
5.5.340.0050.02416.13
5.5.330.0070.02517.30
5.5.320.0080.03517.08
5.5.310.0170.02317.16
5.5.300.0030.04916.15
5.5.290.0060.04116.13
5.5.280.0080.03817.43
5.5.270.0060.02317.40
5.5.260.0070.04617.56
5.5.250.0100.02517.46
5.5.240.0200.03517.20
5.5.230.0070.00714.25
5.5.220.0130.00014.06
5.5.210.0000.01314.29
5.5.200.0040.00713.96
5.5.190.0030.01013.97
5.5.180.0030.01313.92
5.5.170.0030.00614.14
5.5.160.0050.00514.21
5.5.150.0070.00713.97
5.5.140.0070.00713.85
5.5.130.0030.00913.85
5.5.120.0110.00313.89
5.5.110.0030.00913.88
5.5.100.0030.01014.14
5.5.90.0030.00914.16
5.5.80.0040.00714.06
5.5.70.0050.00514.17
5.5.60.0000.00913.85
5.5.50.0050.00514.21
5.5.40.0030.00814.18
5.5.30.0030.01314.17
5.5.20.0090.00614.20
5.5.10.0070.00714.33
5.5.00.0000.01714.08

preferences:
53.09 ms | 401 KiB | 5 Q