3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOL {% if site_manager.getSite.getLogo %} <div class="title_site_logo"> <a href="/"><img src="{{ ('/media/original/'~site_manager.getSite.getLogo.filename)|imagine_filter('dynamic', {'filter':'Sh75') }}" alt="Logo {{ custom_field('site-head-title'}) }}"/></a> </div> {% else %} <div class="title_site"> <h2><a href="/">{{ custom_field('site-title') }}</a></h2> </div> {% endif %} EOL; $pattern = '/imagine_filter\((.*)\}\)/'; $replace = "imagine_filter($1)"; echo $html, "\n\n"; echo preg_replace($pattern, $replace, $html); //echo preg_replace("/imagine_filter\(\'dynamic\'\,\s+\{\'format\'\:\'([\w\d]+)\'\}\)/us", 'imagine_filter(\'dynamic\', {\'format\':\'$1\')', "imagine_filter('dynamic', {'format':'Sh75'})");

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.0110.00818.79
8.5.20.0200.01019.35
8.5.10.0230.00518.43
8.5.00.0140.00718.58
8.4.180.0210.00620.96
8.4.170.0230.00820.02
8.4.160.0230.00821.55
8.4.150.0180.00516.91
8.4.140.0220.00918.22
8.4.130.0250.00817.81
8.4.120.0320.01018.77
8.4.110.0270.01018.91
8.4.100.0280.00917.86
8.4.90.0350.00717.89
8.4.80.0330.00817.84
8.4.70.0310.00817.80
8.4.60.0270.00718.03
8.4.50.0270.00718.06
8.4.40.0330.00818.32
8.4.30.0350.00918.15
8.4.20.0330.00817.63
8.4.10.0340.00717.86
8.3.300.0230.00919.68
8.3.290.0270.00718.44
8.3.280.0150.01018.23
8.3.270.0210.00817.25
8.3.260.0270.00916.57
8.3.250.0280.00717.34
8.3.240.0270.00816.82
8.3.230.0330.00816.54
8.3.220.0340.00716.43
8.3.210.0330.00716.48
8.3.200.0280.00616.57
8.3.190.0240.00616.66
8.3.180.0260.00716.59
8.3.170.0280.00816.51
8.3.160.0310.00616.63
8.3.150.0310.00716.86
8.3.140.0300.00816.57
8.3.130.0240.00716.86
8.3.120.0240.00416.82
8.3.110.0260.00616.73
8.3.100.0260.00716.69
8.3.90.0250.00716.65
8.3.80.0250.00716.60
8.3.70.0240.00616.44
8.3.60.0270.00716.65
8.3.50.0280.00617.30
8.3.40.0260.00717.72
8.3.30.0220.00717.69
8.3.20.0220.00517.85
8.3.10.0200.00618.03
8.3.00.0180.00518.00
8.2.300.0250.00818.16
8.2.290.0270.00917.44
8.2.280.0270.00716.84
8.2.270.0270.00616.70
8.2.260.0230.00616.88
8.2.250.0210.00616.58
8.2.240.0220.00616.68
8.2.230.0220.00616.79
8.2.220.0240.00717.10
8.2.210.0240.00717.52
8.2.200.0230.00716.54
8.2.190.0240.00716.71
8.2.180.0250.00616.64
8.2.170.0260.00718.14
8.2.160.0260.00517.85
8.2.150.0260.00718.16
8.2.140.0250.00618.14
8.2.130.0230.00517.87
8.2.120.0220.00618.26
8.2.110.0270.00517.84
8.2.100.0240.00617.62
8.2.90.0230.00617.74
8.2.80.0240.00617.67
8.2.70.0250.00417.75
8.2.60.0220.00817.68
8.2.50.0240.00717.66
8.2.40.0260.00717.97
8.2.30.0250.00717.76
8.2.20.0250.00717.57
8.2.10.0240.00717.57
8.2.00.0220.00617.57
8.1.340.0240.01017.75
8.1.330.0270.00816.89
8.1.320.0260.00816.26
8.1.310.0260.00816.21
8.1.300.0230.00716.25
8.1.290.0250.00516.39
8.1.280.0230.00617.08
8.1.270.0240.00617.87
8.1.260.0220.00718.38
8.1.250.0240.00618.17
8.1.240.0220.00617.55
8.1.230.0220.00717.40
8.1.220.0230.00617.52
8.1.210.0200.00917.35
8.1.200.0250.00617.24
8.1.190.0230.00817.17
8.1.180.0210.00817.25
8.1.170.0210.00617.42
8.1.160.0200.00717.85
8.1.150.0200.00717.46
8.1.140.0200.00717.51
8.1.130.0220.00617.37
8.1.120.0230.00717.35
8.1.110.0210.00717.53
8.1.100.0230.00717.32
8.1.90.0230.00617.35
8.1.80.0220.00617.38
8.1.70.0210.00617.38
8.1.60.0230.00617.49
8.1.50.0250.00617.40
8.1.40.0240.00617.46
8.1.30.0230.00617.56
8.1.20.0220.00717.56
8.1.10.0210.00617.45
8.1.00.0200.00617.31
8.0.300.0230.00616.93
8.0.290.0210.00816.68
8.0.280.0230.00416.81
8.0.270.0220.00716.79
8.0.260.0240.00616.83
8.0.250.0230.00716.74
8.0.240.0230.00616.86
8.0.230.0240.00516.71
8.0.220.0240.00716.71
8.0.210.0210.00716.63
8.0.200.0220.00716.72
8.0.190.0240.00516.74
8.0.180.0220.00616.70
8.0.170.0220.00716.78
8.0.160.0230.00616.87
8.0.150.0230.00616.67
8.0.140.0230.00616.67
8.0.130.0230.00616.46
8.0.120.0220.00616.72
8.0.110.0230.00616.66
8.0.100.0230.00516.79
8.0.90.0230.00616.68
8.0.80.0260.00616.69
8.0.70.0220.00616.61
8.0.60.0220.00616.60
8.0.50.0220.00616.60
8.0.30.0200.00716.89
8.0.20.0210.00716.87
8.0.10.0240.00516.78
8.0.00.0220.00717.03
7.4.330.0200.00616.46
7.4.320.0190.00716.38
7.4.300.0210.00616.41
7.4.290.0200.00816.57
7.4.280.0210.00716.39
7.4.270.0210.00616.43
7.4.260.0230.00516.45
7.4.250.0220.00516.29
7.4.240.0200.00616.43
7.4.230.0220.00616.43
7.4.220.0210.00616.43
7.4.210.0210.00716.54
7.4.200.0210.00716.42
7.4.190.0250.00616.43
7.4.180.0230.00816.44
7.4.160.0220.00616.48
7.4.150.0220.00616.68
7.4.140.0210.00616.56
7.4.130.0210.00716.38
7.4.120.0190.00716.40
7.4.110.0220.00516.40
7.4.100.0220.00616.49
7.4.90.0210.00616.39
7.4.80.0220.00516.59
7.4.70.0190.00616.38
7.4.60.0200.00516.38
7.4.50.0210.00616.41
7.4.40.0210.00516.34
7.4.30.0210.00616.36
7.4.20.0210.00616.29
7.4.10.0230.00516.26
7.4.00.0230.00616.33
7.3.330.0210.00615.91
7.3.320.0190.00615.93
7.3.310.0190.00616.22
7.3.300.0190.00416.23
7.3.290.0160.00716.23
7.3.280.0170.00716.23
7.3.270.0230.00516.27
7.3.260.0220.00616.21
7.3.250.0220.00616.13
7.3.240.0210.00516.19
7.3.230.0220.00616.22
7.3.220.0250.00616.09
7.3.210.0230.00516.14
7.3.200.0240.00516.16
7.3.190.0220.00616.29
7.3.180.0210.00716.22
7.3.170.0200.00616.25
7.3.160.0210.00516.28
7.3.150.0230.00516.16
7.3.140.0230.00616.09
7.3.130.0230.00616.10
7.3.120.0250.00516.09
7.3.110.0240.00516.08
7.3.100.0230.00716.13
7.3.90.0240.00616.45
7.3.80.0230.00616.29
7.3.70.0240.00616.20
7.3.60.0240.00516.32
7.3.50.0230.00616.26
7.3.40.0220.00516.41
7.3.30.0220.00616.28
7.3.20.0270.00617.67
7.3.10.0230.00617.59
7.3.00.0250.00517.55
7.2.340.0220.00616.45
7.2.330.0220.00616.50
7.2.320.0200.00816.37
7.2.310.0210.00716.26
7.2.300.0210.00516.43
7.2.290.0210.00616.25
7.2.280.0230.00616.24
7.2.270.0220.00716.29
7.2.260.0210.00716.24
7.2.250.0230.00616.30
7.2.240.0250.00616.27
7.2.230.0230.00716.52
7.2.220.0210.00716.29
7.2.210.0230.00716.29
7.2.200.0230.00616.26
7.2.190.0210.00816.34
7.2.180.0240.00616.28
7.2.170.0210.00716.38
7.2.160.0230.00616.41
7.2.150.0260.00517.67
7.2.140.0240.00817.76
7.2.130.0250.00717.86
7.2.120.0240.00617.88
7.2.110.0250.00717.84
7.2.100.0230.00617.75
7.2.90.0240.00617.69
7.2.80.0240.00417.83
7.2.70.0190.00517.81
7.2.60.0220.00517.81
7.2.50.0230.00517.87
7.2.40.0240.00517.87
7.2.30.0240.00617.82
7.2.20.0240.00517.91
7.2.10.0240.00518.10
7.2.00.0240.00518.10
7.1.330.0220.00517.08
7.1.320.0190.00717.08
7.1.310.0210.00617.08
7.1.300.0220.00616.99
7.1.290.0210.00616.99
7.1.280.0290.00517.00
7.1.270.0220.00517.03
7.1.260.0210.00517.01
7.1.250.0260.00617.04
7.1.240.0220.00617.03
7.1.230.0210.00617.08
7.1.220.0220.00717.06
7.1.210.0220.00617.10
7.1.200.0200.00717.11
7.1.190.0240.00617.14
7.1.180.0220.00517.05
7.1.170.0220.00617.04
7.1.160.0220.00616.96
7.1.150.0220.00617.11
7.1.140.0220.00517.11
7.1.130.0200.00617.12
7.1.120.0200.00417.07
7.1.110.0170.00617.15
7.1.100.0180.00617.25
7.1.90.0210.00517.19
7.1.80.0210.00717.24
7.1.70.0220.00717.08
7.1.60.0280.00517.27
7.1.50.0210.00517.23
7.1.40.0200.00517.27
7.1.30.0220.00617.18
7.1.20.0220.00717.13
7.1.10.0230.00617.14
7.1.00.0220.01017.54
7.0.330.0220.00516.78
7.0.320.0190.00616.86
7.0.310.0220.00716.88
7.0.300.0200.00616.88
7.0.290.0230.00416.86
7.0.280.0200.00616.96
7.0.270.0210.00616.86
7.0.260.0230.00616.90
7.0.250.0210.00616.97
7.0.240.0200.00617.01
7.0.230.0200.00516.99
7.0.220.0200.00516.95
7.0.210.0220.00516.95
7.0.200.0220.00716.93
7.0.190.0220.00516.78
7.0.180.0240.00516.87
7.0.170.0200.00516.96
7.0.160.0220.00516.82
7.0.150.0200.00616.81
7.0.140.0190.00516.83
7.0.130.0180.00516.91
7.0.120.0200.00416.91
7.0.110.0190.00516.88
7.0.100.0180.00616.94
7.0.90.0220.00516.74
7.0.80.0250.00416.77
7.0.70.0220.00516.78
7.0.60.0220.00616.80
7.0.50.0200.00616.73
7.0.40.0210.00616.86
7.0.30.0210.00516.86
7.0.20.0210.00516.86
7.0.10.0200.00516.84
7.0.00.0190.00516.65
5.6.400.0170.00515.84
5.6.390.0170.00515.78
5.6.380.0200.00615.83
5.6.370.0200.00515.82
5.6.360.0170.00615.73
5.6.350.0180.00615.84
5.6.340.0180.00515.81
5.6.330.0190.00515.82
5.6.320.0200.00515.79
5.6.310.0180.00615.80
5.6.300.0200.00515.74
5.6.290.0190.00515.80
5.6.280.0190.00515.82
5.6.270.0190.00615.79
5.6.260.0200.00615.74
5.6.250.0190.00515.78
5.6.240.0200.00615.82
5.6.230.0210.00515.86
5.6.220.0200.00615.87
5.6.210.0220.00615.83
5.6.200.0200.00615.94
5.6.190.0200.00415.99
5.6.180.0180.00615.83
5.6.170.0210.00615.88
5.6.160.0220.00515.92
5.6.150.0200.00615.98
5.6.140.0200.00615.86
5.6.130.0200.00615.93
5.6.120.0210.00515.94
5.6.110.0200.00615.84
5.6.100.0190.00615.84
5.6.90.0200.00515.79
5.6.80.0190.00615.81
5.6.70.0190.00715.83
5.6.60.0190.00615.79
5.6.50.0180.00515.76
5.6.40.0190.00515.78
5.6.30.0190.00515.84
5.6.20.0180.00515.76
5.6.10.0180.00515.74
5.6.00.0180.00515.80

preferences:
59.14 ms | 2324 KiB | 5 Q