3v4l.org

run code in 300+ PHP versions simultaneously
<?php function section(Closure $name){ return isset($name) ? $name() : null; } $html =' @title{ Çok güzel içerik yerine bu gelecek layout.blade.php\'de }@ @acontent{ yerine bunlar geliyor layout.blade.php\'de <p>Lorem ipsum dolor sit amet felan filan</p> <p>Sonra tekrar lorem ipsum dolor sit amet ?</p> }@ @title{ Çok güzel içerik yerine bu gelecek layout.blade.php\'de }@ @acontent{ yerine bunlar geliyor layout.blade.php\'de <p>Lorem ipsum dolor sit amet felan filan</p> <p>Sonra tekrar lorem ipsum dolor sit amet ?</p> }@ '; $value = preg_replace('/@(\w+)\s*\{/ms', '<? \$$1 = function(){ ?>', $html); $value = preg_replace('/}@/s', '<? }; ?>', $value); echo $value; ?> <? $title = function(){ ?> Çok güzel içerik yerine bu gelecek layout.blade.php'de <? }; ?> <? $acontent = function(){ ?> yerine bunlar geliyor layout.blade.php'de <p>Lorem ipsum dolor sit amet felan filan</p> <p>Sonra tekrar lorem ipsum dolor sit amet ?</p> <? }; ?> <? $fotter = function(){ ?> Çok güzel içerik yerine bu gelecek layout.blade.php'de <? }; ?> <? $icerik = function(){ ?> yerine bunlar geliyor layout.blade.php'de <p>Lorem ipsum dolor sit amet felan filan</p> <p>Sonra tekrar lorem ipsum dolor sit amet ?</p> <? }; ?> <html> <head> <title></title> </head> <body> <?= section($title); ?> <?= section($icerik);?> <footer><?= section($fotter);?></footer> </body> </html>

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.0090.00618.95
8.3.30.0100.00718.99
8.3.20.0070.01020.33
8.3.10.0050.00321.92
8.3.00.0000.01222.46
8.2.170.0090.00622.96
8.2.160.0120.00320.57
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0000.00821.11
8.2.110.0080.00022.39
8.2.100.0080.00418.09
8.2.90.0050.00319.22
8.2.80.0080.00018.16
8.2.70.0040.00417.88
8.2.60.0090.00017.80
8.2.50.0030.00518.07
8.2.40.0060.00318.03
8.2.30.0000.00818.01
8.2.20.0040.00417.89
8.2.10.0040.00418.16
8.2.00.0040.00417.86
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00323.84
8.1.230.0070.00319.16
8.1.220.0090.00017.79
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0040.00417.40
8.1.180.0080.00018.77
8.1.170.0040.00418.69
8.1.160.0040.00421.92
8.1.150.0030.00518.72
8.1.140.0040.00417.52
8.1.130.0000.00717.93
8.1.120.0000.00717.59
8.1.110.0000.00817.42
8.1.100.0040.00417.55
8.1.90.0080.00017.47
8.1.80.0030.00317.46
8.1.70.0030.00317.46
8.1.60.0040.00417.78
8.1.50.0040.00417.60
8.1.40.0000.00917.64
8.1.30.0040.00417.71
8.1.20.0000.00917.83
8.1.10.0040.00417.78
8.1.00.0030.00617.64
8.0.300.0000.00718.77
8.0.290.0050.00317.30
8.0.280.0070.00018.49
8.0.270.0000.00717.29
8.0.260.0030.00316.93
8.0.250.0070.00017.06
8.0.240.0080.00017.16
8.0.230.0080.00017.16
8.0.220.0070.00016.97
8.0.210.0040.00416.89
8.0.200.0030.00316.99
8.0.190.0020.00517.02
8.0.180.0070.00017.12
8.0.170.0040.00417.07
8.0.160.0000.00817.09
8.0.150.0070.00016.99
8.0.140.0000.00716.89
8.0.130.0030.00313.52
8.0.120.0000.00817.05
8.0.110.0030.00517.06
8.0.100.0000.00817.04
8.0.90.0020.00517.04
8.0.80.0090.00617.13
8.0.70.0050.00216.94
8.0.60.0050.00217.10
8.0.50.0050.00217.01
8.0.30.0140.00917.15
8.0.20.0120.01217.40
8.0.10.0040.00417.12
8.0.00.0090.01117.03
7.4.330.0030.00315.00
7.4.320.0030.00316.72
7.4.300.0060.00016.79
7.4.290.0000.00816.71
7.4.280.0000.00816.62
7.4.270.0030.00316.75
7.4.260.0000.00716.71
7.4.250.0040.00416.69
7.4.240.0040.00416.71
7.4.230.0070.00016.73
7.4.220.0070.01016.90
7.4.210.0060.01016.81
7.4.200.0040.00416.91
7.4.190.0000.00716.66
7.4.160.0130.00316.71
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0100.00816.73
7.4.120.0120.00516.70
7.4.110.0100.00716.57
7.4.100.0140.01016.63
7.4.90.0000.01716.47
7.4.80.0120.00919.39
7.4.70.0060.01016.85
7.4.60.0130.00316.70
7.4.50.0020.00216.57
7.4.40.0070.00722.77
7.4.30.0030.01316.72
7.4.00.0100.00615.11
7.3.330.0000.00513.49
7.3.320.0000.00513.45
7.3.310.0000.00816.55
7.3.300.0040.00416.41
7.3.290.0060.00916.52
7.3.280.0070.01216.54
7.3.270.0100.00717.40
7.3.260.0110.00816.60
7.3.250.0120.00816.69
7.3.240.0060.00916.61
7.3.230.0100.00716.54
7.3.210.0120.00616.52
7.3.200.0130.00419.39
7.3.190.0130.00716.61
7.3.180.0000.01516.57
7.3.170.0090.00616.74
7.3.160.0100.00716.57
7.3.120.0050.01115.08
7.3.110.0050.01115.01
7.3.100.0080.00715.18
7.3.90.0040.00815.10
7.3.80.0050.00814.79
7.3.70.0040.00915.04
7.3.60.0050.01015.17
7.3.50.0050.01014.92
7.3.40.0090.00214.88
7.3.30.0090.00314.94
7.3.20.0080.00716.59
7.3.10.0090.00616.88
7.3.00.0060.00816.91
7.2.330.0160.00316.79
7.2.320.0030.01516.94
7.2.310.0120.00616.68
7.2.300.0080.00816.63
7.2.290.0130.01016.79
7.2.250.0110.00715.13
7.2.240.0040.01315.18
7.2.230.0100.00514.87
7.2.220.0030.01015.39
7.2.210.0080.00515.18
7.2.200.0060.00814.98
7.2.190.0090.00715.16
7.2.180.0080.00615.33
7.2.170.0050.01315.06
7.2.160.0030.00915.18
7.2.150.0090.00016.71
7.2.140.0130.00316.88
7.2.130.0030.01217.02
7.2.120.0070.00717.12
7.2.110.0140.00316.90
7.2.100.0040.01116.86
7.2.90.0060.00617.18
7.2.80.0060.00917.27
7.2.70.0070.01017.04
7.2.60.0030.01117.06
7.2.50.0130.00317.04
7.2.40.0070.01116.80
7.2.30.0070.01017.24
7.2.20.0070.01116.86
7.2.10.0030.00717.24
7.2.00.0090.00617.29
7.1.330.0070.00616.02
7.1.320.0050.00516.06
7.1.310.0050.00816.14
7.1.300.0050.01115.92
7.1.290.0090.00515.91
7.1.280.0050.00915.96
7.1.270.0120.00115.98
7.1.260.0060.00916.00
7.1.250.0030.01216.08
7.1.200.0040.01215.73
7.1.100.0120.00418.57
7.1.70.0000.00817.31
7.1.60.0030.02019.82
7.1.50.0070.01417.21
7.1.00.0070.07322.54
7.0.200.0040.00416.94
7.0.140.0070.09322.10
7.0.60.0100.07019.99
7.0.50.0070.08017.89
7.0.40.0030.08320.13
7.0.30.0370.07320.21
7.0.20.0230.04320.22
7.0.10.0270.06320.31
7.0.00.0000.04720.18
5.6.280.0070.07020.87
5.6.210.0100.07320.69
5.6.200.0070.07718.16
5.6.190.0100.08720.65
5.6.180.0070.05020.46
5.6.170.0300.05320.51
5.6.160.0000.04320.39
5.6.150.0030.04018.18
5.6.140.0030.04018.25
5.6.130.0030.08318.24
5.6.120.0030.04321.15
5.6.110.0030.08021.05
5.6.100.0130.07721.12
5.6.90.0070.06021.13
5.6.80.0200.06320.42
5.6.70.0230.07320.28
5.5.350.0070.06720.53
5.5.340.0070.07717.96
5.5.330.0130.03320.25
5.5.320.0170.05320.14
5.5.310.0230.07020.32
5.5.300.0100.08018.04
5.5.290.0070.09018.07
5.5.280.0100.08020.77
5.5.270.0000.08320.88
5.5.260.0170.07020.87
5.5.250.0100.07320.79
5.5.240.0070.08020.27
5.4.450.0500.06019.34
5.4.440.0370.06719.59
5.4.430.0200.05719.42
5.4.420.0030.06019.68
5.4.410.0200.05719.04
5.4.400.0130.05718.72
5.4.390.4330.05318.48
5.4.380.0130.06018.57
5.4.370.0070.04018.73
5.4.360.0100.03318.45
5.4.350.0070.04612.02
5.4.340.0090.03812.02
5.4.320.0060.03912.51
5.4.310.0050.03812.50
5.4.300.0060.04612.51
5.4.290.0090.04012.51
5.4.280.0070.03612.41
5.4.270.0070.05319.00
5.4.260.0000.07018.80
5.4.250.0170.07018.99
5.4.240.0170.06018.99
5.4.230.0170.06018.95
5.4.220.0230.06318.66
5.4.210.0170.05718.66
5.4.200.0100.05318.80
5.4.190.0100.07718.99
5.4.180.0270.05718.95
5.4.170.0130.07718.96
5.4.160.0130.06718.89
5.4.150.0130.07718.64
5.4.140.0070.06716.43
5.4.130.0070.07016.45
5.4.120.0130.05716.41
5.4.110.0100.06716.61
5.4.100.0130.04716.39
5.4.90.0170.04716.39
5.4.80.0070.07016.56
5.4.70.0070.06016.40
5.4.60.0130.06716.49
5.4.50.0170.05316.45
5.4.40.0070.05016.44
5.4.30.0130.05316.39
5.4.20.0100.06016.53
5.4.10.0070.08016.59
5.4.00.0130.06315.74
5.3.290.0050.04212.80
5.3.280.0100.05314.77
5.3.270.0200.05314.59
5.3.260.0170.05714.67
5.3.250.0170.06014.62
5.3.240.0130.05714.69
5.3.230.0070.05014.73
5.3.220.0070.07714.60
5.3.210.0030.06014.54
5.3.200.0070.06714.64
5.3.190.0070.05314.63
5.3.180.0030.05714.55
5.3.170.0100.06314.46
5.3.160.0070.05014.55
5.3.150.0070.06314.78
5.3.140.0230.03314.58
5.3.130.0130.05314.62
5.3.120.0030.06314.38
5.3.110.0070.06014.55
5.3.100.0230.05314.20
5.3.90.0130.06014.01
5.3.80.0130.06314.10
5.3.70.0100.06314.23
5.3.60.0200.05014.08
5.3.50.0100.06314.12
5.3.40.0070.06714.16
5.3.30.0170.06013.75
5.3.20.0100.05013.52
5.3.10.0100.06013.86
5.3.00.0170.06313.86
5.2.170.0070.05011.13
5.2.160.0000.04711.25
5.2.150.0070.05711.23
5.2.140.0030.06011.23
5.2.130.0070.04311.07
5.2.120.0200.04310.93
5.2.110.0100.05011.27
5.2.100.0130.04311.19
5.2.90.0200.04311.00
5.2.80.0100.03711.09
5.2.70.0000.05011.31
5.2.60.0070.04711.16
5.2.50.0100.03711.11
5.2.40.0030.05311.23
5.2.30.0030.04710.96
5.2.20.0030.05710.95
5.2.10.0070.05710.69
5.2.00.0100.03710.72
5.1.60.0030.04310.05
5.1.50.0030.04710.04
5.1.40.0030.04710.07
5.1.30.0070.04010.34
5.1.20.0000.04710.44
5.1.10.0100.04310.22
5.1.00.0030.04310.30
5.0.50.0070.0278.54
5.0.40.0030.0408.40
5.0.30.0030.0578.21
5.0.20.0030.0308.29
5.0.10.0200.0238.22
5.0.00.0070.0538.08
4.4.90.0000.0236.23
4.4.80.0000.0236.23
4.4.70.0070.0306.23
4.4.60.0000.0236.23
4.4.50.0030.0306.23
4.4.40.0070.0376.23
4.4.30.0030.0306.23
4.4.20.0030.0206.23
4.4.10.0030.0206.23
4.4.00.0070.0406.23
4.3.110.0000.0276.23
4.3.100.0030.0236.23
4.3.90.0000.0236.23
4.3.80.0030.0476.23
4.3.70.0000.0236.23
4.3.60.0030.0206.23
4.3.50.0030.0306.23
4.3.40.0000.0336.23
4.3.30.0000.0306.23
4.3.20.0030.0206.23
4.3.10.0030.0206.23
4.3.00.0000.0276.95

preferences:
49.29 ms | 400 KiB | 5 Q