3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); ?> flarg blarg dlarg <!-- BEGIN DYNAMIC BLOCK: guide_greeting --> filler content <!-- END DYNAMIC BLOCK: guide_greeting --> flarg blarg dlarg <?php $content = ob_get_clean(); function getDyanmicBlockContent($content, $tag) { $boundaries = (object) [ 'start' => sprintf('<!-- BEGIN DYNAMIC BLOCK: %s -->', $tag), 'end' => sprintf('<!-- END DYNAMIC BLOCK: %s -->', $tag), ]; $results = (object) [ 'start' => stripos($content, $boundaries->start), 'end' => stripos($content, $boundaries->end), ]; if ($results->start === false || $results->end === false || $results->start > $results->end) { return null; } $substr = substr($content, 0, $boundaries->end); return $substr; } var_dump( getDyanmicBlockContent($content, 'guide_greeting') );

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.0130.00618.68
8.3.50.0000.01518.04
8.3.40.0090.00618.66
8.3.30.0120.00318.77
8.3.20.0040.00419.01
8.3.10.0000.00821.89
8.3.00.0080.00023.69
8.2.180.0040.01118.41
8.2.170.0030.01422.96
8.2.160.0110.00319.29
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00418.21
8.2.120.0040.00426.35
8.2.110.0090.00019.37
8.2.100.0000.01217.84
8.2.90.0030.00517.75
8.2.80.0040.00417.97
8.2.70.0040.00417.91
8.2.60.0000.00818.05
8.2.50.0030.00618.10
8.2.40.0080.00019.17
8.2.30.0000.00819.18
8.2.20.0000.01118.00
8.2.10.0040.00419.45
8.2.00.0000.00819.39
8.1.280.0110.00425.92
8.1.270.0000.00822.01
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00817.58
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0040.00419.05
8.1.200.0030.00617.48
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0080.00018.74
8.1.160.0050.00318.77
8.1.150.0040.00418.97
8.1.140.0000.00819.36
8.1.130.0000.00718.93
8.1.120.0030.00317.37
8.1.110.0050.00217.37
8.1.100.0050.00217.46
8.1.90.0070.00017.50
8.1.80.0000.00717.38
8.1.70.0000.00717.35
8.1.60.0100.00317.55
8.1.50.0040.00417.54
8.1.40.0040.00417.42
8.1.30.0060.00317.54
8.1.20.0090.00017.62
8.1.10.0030.00517.59
8.1.00.0080.00017.53
8.0.300.0030.00719.87
8.0.290.0000.00716.88
8.0.280.0030.00318.37
8.0.270.0000.00717.16
8.0.260.0000.00617.27
8.0.250.0030.00517.07
8.0.240.0000.00817.05
8.0.230.0040.00416.96
8.0.220.0000.00716.97
8.0.210.0000.00716.97
8.0.200.0030.00716.87
8.0.190.0040.00416.98
8.0.180.0040.00416.98
8.0.170.0080.00016.90
8.0.160.0000.00716.89
8.0.150.0000.00716.98
8.0.140.0040.00416.91
8.0.130.0030.00313.39
8.0.120.0050.00316.82
8.0.110.0060.00316.82
8.0.100.0050.00216.86
8.0.90.0000.00716.85
8.0.80.0100.00816.98
8.0.70.0040.00417.00
8.0.60.0040.00417.02
8.0.50.0070.00016.83
8.0.30.0140.01017.07
8.0.20.0060.01317.41
8.0.10.0040.00417.11
8.0.00.0060.01116.67
7.4.330.0030.00315.55
7.4.320.0070.00016.61
7.4.300.0030.00316.57
7.4.290.0040.00416.61
7.4.280.0070.00016.54
7.4.270.0040.00516.60
7.4.260.0030.00316.64
7.4.250.0030.00616.55
7.4.240.0000.00716.55
7.4.230.0030.00316.25
7.4.220.0040.00416.40
7.4.210.0050.01116.63
7.4.200.0040.00416.63
7.4.160.0100.00616.51
7.4.140.0090.00817.86
7.4.130.0130.01016.58
7.4.120.0100.00916.60
7.4.110.0130.00416.53
7.4.100.0120.00616.44
7.4.90.0080.00816.43
7.4.80.0070.01819.39
7.4.70.0040.01316.70
7.4.60.0100.00716.50
7.4.50.0060.01316.69
7.4.40.0050.01116.47
7.4.00.0050.01214.99
7.3.330.0000.00613.31
7.3.320.0000.00613.25
7.3.310.0000.00716.14
7.3.300.0000.00716.30
7.3.290.0070.00016.35
7.3.280.0070.01016.27
7.3.260.0070.01116.46
7.3.240.0120.01116.36
7.3.230.0080.00916.33
7.3.210.0110.00716.36
7.3.200.0070.01016.46
7.3.190.0100.01016.38
7.3.180.0090.00616.34
7.3.170.0100.00716.32
7.3.160.0090.00916.37
7.3.120.0100.01014.97
7.3.110.0100.00914.65
7.3.100.0150.00314.89
7.3.90.0060.00614.97
7.3.80.0040.01114.70
7.3.70.0070.00414.61
7.3.60.0070.00714.86
7.3.50.0070.00714.82
7.3.40.0090.00614.88
7.3.30.0080.00414.77
7.3.20.0130.00316.72
7.3.10.0040.00916.51
7.3.00.0040.01016.54
7.2.330.0090.00916.83
7.2.320.0070.01016.82
7.2.310.0100.01316.93
7.2.300.0130.00616.41
7.2.290.0060.01116.70
7.2.250.0070.01115.25
7.2.240.0130.00615.09
7.2.230.0090.00615.10
7.2.220.0110.00315.03
7.2.210.0060.00914.92
7.2.200.0100.00315.12
7.2.190.0060.01014.84
7.2.180.0030.00815.12
7.2.170.0080.00815.15
7.2.160.0100.00315.00
7.2.150.0070.00717.02
7.2.140.0000.00916.69
7.2.130.0050.00516.81
7.2.120.0060.00516.98
7.2.110.0040.00916.91
7.2.100.0070.00716.88
7.2.90.0050.01016.92
7.2.80.0060.00716.85
7.2.70.0140.00916.23
7.2.60.0100.01116.12
7.2.50.0100.01016.18
7.2.40.0150.00716.39
7.2.30.0100.00716.33
7.2.20.0100.00516.26
7.2.10.0100.00816.39
7.2.00.0110.00516.36
7.1.330.0040.01116.03
7.1.320.0100.00315.60
7.1.310.0000.01315.74
7.1.300.0070.00715.94
7.1.290.0040.00715.58
7.1.280.0070.00415.62
7.1.270.0100.00315.75
7.1.260.0030.00915.47
7.1.250.0050.00915.94
7.1.240.0040.01115.82
7.1.230.0000.01415.89
7.1.220.0070.00715.54
7.1.210.0000.01515.59
7.1.200.0080.00215.82
7.1.190.0000.01115.96
7.1.180.0060.00315.86
7.1.170.0110.00814.80
7.1.160.0130.00614.83
7.1.150.0070.00814.91
7.1.140.0100.01014.92
7.1.130.0110.00514.90
7.1.120.0360.01314.95
7.1.110.0150.00414.81
7.1.100.0190.00614.82
7.1.90.0140.00714.90
7.1.80.0110.00714.94
7.1.70.0080.00914.99
7.1.60.0220.00623.86
7.1.50.0160.01323.66
7.1.40.0160.01123.91
7.1.30.0210.01023.94
7.1.20.0230.00523.74
7.1.10.0140.00514.82
7.1.00.0100.00814.75
7.0.330.0040.00815.41
5.6.400.0030.00614.54
5.6.390.0070.00414.51
5.6.380.0110.00314.26

preferences:
55.41 ms | 400 KiB | 5 Q