3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<TEXT services: {{if !`echo poof!`}} vrt_providers_<<suffix>>.task_manager.documents_delete: class: Vrt\TaskManagerBundle\Service\Container\DocumentsDeleteTaskContainer arguments: - %vrt_providers_<<suffix>>.task_manager.documents_delete.config% tags: - { name: vrt.task_manager.task, provider: %vrt_providers_<<suffix>>.name% } {{endif}} TEXT; if (preg_match_all('/{{if .+?}}/s', $content, $matches)) { foreach ($matches[0] as $match) { $match = substr($match, 5, -2); $res = false; @eval('$res = (' . $match . ');'); if ($res) { $content = preg_replace('/{{.+?}}/', '', $content, 2); } else { $content = preg_replace('/{{if.+?endif}}/s', '', $content, 1); } } } 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.40.0070.01119.04
8.3.30.0100.00419.22
8.3.20.0050.00320.38
8.3.10.0000.00822.04
8.3.00.0050.00317.85
8.2.170.0040.01119.22
8.2.160.0130.00722.96
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00318.13
8.2.110.0030.00919.31
8.2.100.0090.00318.13
8.2.90.0040.00419.35
8.2.80.0080.00018.00
8.2.70.0000.00918.13
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0000.00820.19
8.2.30.0040.00418.36
8.2.20.0040.00418.05
8.2.10.0000.00818.37
8.2.00.0030.00917.98
8.1.270.0040.00420.49
8.1.260.0040.00426.35
8.1.250.0090.00628.09
8.1.240.0100.00023.96
8.1.230.0040.00717.91
8.1.220.0000.00817.91
8.1.210.0050.00518.77
8.1.200.0060.00317.60
8.1.190.0000.00817.59
8.1.180.0000.00818.10
8.1.170.0040.00420.48
8.1.160.0000.00822.19
8.1.150.0060.00319.06
8.1.140.0060.00317.60
8.1.130.0040.00417.91
8.1.120.0000.00817.76
8.1.110.0000.00817.68
8.1.100.0040.00417.58
8.1.90.0000.00817.65
8.1.80.0080.00017.66
8.1.70.0030.00317.72
8.1.60.0030.00817.84
8.1.50.0090.00017.75
8.1.40.0040.00417.73
8.1.30.0040.00417.84
8.1.20.0050.00317.94
8.1.10.0080.00017.75
8.1.00.0040.00417.79
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0030.00518.64
8.0.270.0030.00617.41
8.0.260.0070.00017.36
8.0.250.0070.00017.23
8.0.240.0030.00317.19
8.0.230.0000.00717.30
8.0.220.0040.00417.11
8.0.210.0040.00417.02
8.0.200.0070.00017.26
8.0.190.0080.00017.10
8.0.180.0070.00017.22
8.0.170.0040.00417.11
8.0.160.0030.00617.05
8.0.150.0000.00817.16
8.0.140.0040.00417.06
8.0.130.0000.00713.59
8.0.120.0090.00017.13
8.0.110.0080.00017.19
8.0.100.0000.00817.19
8.0.90.0000.00817.05
8.0.80.0160.00017.09
8.0.70.0050.00317.15
8.0.60.0000.00817.04
8.0.50.0000.00717.02
8.0.30.0100.01317.32
8.0.20.0130.00817.52
8.0.10.0050.00317.31
8.0.00.0130.00817.22
7.4.330.0020.00315.05
7.4.320.0060.00016.89
7.4.300.0000.00716.62
7.4.290.0020.00516.76
7.4.280.0080.00016.72
7.4.270.0070.00016.73
7.4.260.0000.00716.65
7.4.250.0040.00416.79
7.4.240.0060.00116.77
7.4.230.0080.00016.67
7.4.220.0140.00416.77
7.4.210.0050.01116.68
7.4.200.0040.00416.95
7.4.160.0160.00016.52
7.4.150.0090.01017.40
7.4.140.0100.01217.86
7.4.130.0110.01116.81
7.4.120.0060.01516.56
7.4.110.0150.00416.75
7.4.100.0040.01416.95
7.4.90.0150.00316.87
7.4.80.0080.00919.39
7.4.70.0100.00716.71
7.4.60.0160.00416.68
7.4.50.0050.00016.70
7.4.40.0050.01416.97
7.4.30.0090.00916.66
7.4.00.0090.00715.01
7.3.330.0060.00013.43
7.3.320.0100.00813.45
7.3.310.0080.00016.52
7.3.300.0080.00016.59
7.3.290.0140.00716.49
7.3.280.0060.01216.53
7.3.270.0070.01417.40
7.3.260.0110.01116.81
7.3.250.0150.00816.79
7.3.240.0180.00416.53
7.3.230.0170.00716.61
7.3.210.0120.00916.62
7.3.200.0100.01019.39
7.3.190.0110.00616.59
7.3.180.0060.01216.62
7.3.170.0090.01516.77
7.3.160.0070.01016.58
7.3.10.0140.00316.97
7.3.00.0040.01116.90
7.2.330.0130.01016.90
7.2.320.0100.01216.98
7.2.310.0130.00516.86
7.2.300.0100.00716.88
7.2.290.0160.00716.95
7.2.130.0030.01316.97
7.2.120.0130.00417.07
7.2.110.0030.00917.05
7.2.100.0070.00417.09
7.2.90.0110.00417.07
7.2.80.0060.00917.03
7.2.70.0040.00717.17
7.2.60.0050.01017.15
7.2.50.0000.01617.21
7.2.40.0070.01116.91
7.2.30.0060.00717.03
7.2.20.0120.00417.30
7.2.10.0130.00017.21
7.2.00.0060.01118.31
7.1.250.0060.00316.03
7.1.200.0110.00315.81
7.1.100.0100.00718.50
7.1.70.0090.00017.07
7.1.60.0120.01019.50
7.1.50.0160.01017.39
7.1.00.0100.07322.45
7.0.200.0800.01315.04
7.0.140.0030.06722.11
7.0.60.0000.06319.93
7.0.50.0030.04017.95
7.0.40.0030.05020.21
7.0.30.0400.04020.21
7.0.20.0230.07320.14
7.0.10.0270.08720.18
7.0.00.0030.05020.36
5.6.280.0070.07021.00
5.6.210.0070.08320.55
5.6.200.0130.07718.21
5.6.190.0170.08020.56
5.6.180.0370.05020.24
5.6.170.0430.06720.62
5.6.160.0130.04320.54
5.6.150.0030.05318.23
5.6.140.0070.05318.15
5.6.130.0100.07718.24
5.6.120.0130.05021.09
5.6.110.0100.07721.13
5.6.100.0170.05021.11
5.6.90.0130.06320.98
5.6.80.0130.08720.45
5.6.70.0230.04020.40
5.5.350.0170.03720.51
5.5.340.0070.04718.02
5.5.330.0030.04320.40
5.5.320.0330.06020.29
5.5.310.0300.07720.35
5.5.300.0030.07017.98
5.5.290.0030.04018.06
5.5.280.0030.04020.78
5.5.270.0070.08320.89
5.5.260.0000.09320.80
5.5.250.0070.08720.48
5.5.240.0100.07320.27
5.4.450.0370.06719.29
5.4.440.0230.06019.51
5.4.430.0800.07019.47
5.4.420.0800.07019.58
5.4.410.0070.05719.00
5.4.400.0370.05718.74
5.4.390.0430.07018.79
5.4.380.0530.06318.60
5.4.370.0470.04718.75
5.4.360.0270.06718.69
5.4.350.0400.06018.75
5.4.340.0400.05318.57
5.4.320.0330.06018.57
5.4.310.0470.07318.73
5.4.300.0500.05018.78
5.4.290.0270.06018.74
5.4.280.0330.05718.73
5.4.270.0270.06018.71
5.4.260.0470.04718.74
5.4.250.0400.04718.69
5.4.240.0270.06018.64
5.4.230.0370.05318.58
5.4.220.0370.06018.63
5.4.210.0470.07018.82
5.4.200.0500.04716.63
5.4.190.0400.06718.68
5.4.180.0500.04018.73
5.4.170.0300.06318.55
5.4.160.0300.06018.55
5.4.150.0400.07718.68
5.4.140.0330.06016.39
5.4.130.0300.05316.29
5.4.120.0370.06316.11
5.4.110.0270.06316.36
5.4.100.0370.07316.41
5.4.90.0370.05316.36
5.4.80.0200.06316.25
5.4.70.0330.07016.24
5.4.60.0470.06316.21
5.4.50.0430.04716.19
5.4.40.0430.04316.21
5.4.30.0270.05716.12
5.4.20.0430.04716.25
5.4.10.0330.05016.29
5.4.00.0370.04715.69
5.3.290.0400.04714.76
5.3.280.0300.05714.54
5.3.270.0370.05714.62
5.3.260.0230.06714.59
5.3.250.0400.07314.58
5.3.240.0330.05714.56
5.3.230.0230.06714.56
5.3.220.0370.05314.57
5.3.210.0300.06314.66
5.3.200.0430.04714.61
5.3.190.0400.04714.55
5.3.180.0330.05714.49
5.3.170.0400.07714.63
5.3.160.0400.07014.54
5.3.150.0430.04714.54
5.3.140.0370.05314.56
5.3.130.0430.07014.61
5.3.120.0400.05014.59
5.3.110.0300.06314.66
5.3.100.0270.06014.03
5.3.90.0370.05313.96
5.3.80.0400.04713.95
5.3.70.0330.05714.13
5.3.60.0300.05713.93
5.3.50.0430.04713.99
5.3.40.0370.06313.98
5.3.30.0370.06313.92
5.3.20.0600.05713.71
5.3.10.0500.07713.67
5.3.00.0370.05313.61
5.2.170.0270.04311.08
5.2.160.0300.04011.20
5.2.150.0330.04311.10
5.2.140.0330.05011.14
5.2.130.0370.05711.11
5.2.120.0300.04011.28
5.2.110.0300.05011.25
5.2.100.0330.04711.34
5.2.90.0230.04311.09
5.2.80.0270.05711.09
5.2.70.0300.05011.16
5.2.60.0370.05011.04
5.2.50.0230.07011.27
5.2.40.0300.04710.99
5.2.30.0330.04710.95
5.2.20.0270.03711.21
5.2.10.0370.04011.07
5.2.00.0200.05011.02
5.1.60.0270.03310.05
5.1.50.0270.03310.10
5.1.40.0200.03710.06
5.1.30.0200.04010.48
5.1.20.0270.03710.51
5.1.10.0230.04710.19
5.1.00.0200.04010.14
5.0.50.0170.0308.66
5.0.40.0230.0308.57
5.0.30.0130.0438.34
5.0.20.0100.0408.36
5.0.10.0130.0278.29
5.0.00.0100.0438.20
4.4.90.0130.0206.03
4.4.80.0130.0205.93
4.4.70.0070.0275.90
4.4.60.0130.0275.93
4.4.50.0200.0205.97
4.4.40.0170.0335.95
4.4.30.0100.0276.01
4.4.20.0130.0235.98
4.4.10.0070.0275.98
4.4.00.0130.0375.93
4.3.110.0100.0235.90
4.3.100.0100.0275.83
4.3.90.0130.0235.91
4.3.80.0130.0405.84
4.3.70.0170.0175.81
4.3.60.0200.0135.82
4.3.50.0130.0235.93
4.3.40.0170.0375.80
4.3.30.0030.0274.59
4.3.20.0000.0304.57
4.3.10.0100.0274.55
4.3.00.0130.0236.87

preferences:
45.95 ms | 400 KiB | 5 Q