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, $results->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.0120.00318.45
8.3.50.0120.00317.98
8.3.40.0120.00318.74
8.3.30.0060.00918.84
8.3.20.0090.00019.02
8.3.10.0050.00321.94
8.3.00.0050.00323.70
8.2.180.0040.01118.18
8.2.170.0150.00322.96
8.2.160.0030.01318.84
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00417.97
8.2.120.0080.00026.35
8.2.110.0070.00421.04
8.2.100.0090.00317.91
8.2.90.0060.00319.34
8.2.80.0060.00317.97
8.2.70.0000.00817.93
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00719.39
8.2.30.0000.00719.25
8.2.20.0100.00018.03
8.2.10.0000.00719.44
8.2.00.0040.00419.50
8.1.280.0070.00725.92
8.1.270.0040.00421.93
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.14
8.1.230.0050.00520.96
8.1.220.0080.00017.79
8.1.210.0000.00818.81
8.1.200.0050.00517.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00518.86
8.1.160.0060.00318.88
8.1.150.0000.00718.93
8.1.140.0000.00719.38
8.1.130.0000.00719.01
8.1.120.0000.00717.30
8.1.110.0040.00417.38
8.1.100.0050.00217.51
8.1.90.0020.00517.36
8.1.80.0050.00317.45
8.1.70.0070.00017.44
8.1.60.0070.00417.62
8.1.50.0030.00617.56
8.1.40.0000.00817.54
8.1.30.0030.00617.63
8.1.20.0040.00417.52
8.1.10.0040.00417.58
8.1.00.0080.00017.52
8.0.300.0000.00719.89
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0030.00317.13
8.0.260.0000.00617.17
8.0.250.0020.00516.95
8.0.240.0030.00316.84
8.0.230.0000.00716.86
8.0.220.0050.00216.79
8.0.210.0000.00716.88
8.0.200.0050.00316.84
8.0.190.0040.00416.93
8.0.180.0000.00716.94
8.0.170.0040.00416.86
8.0.160.0000.00716.93
8.0.150.0050.00316.92
8.0.140.0030.00316.90
8.0.130.0030.00313.36
8.0.120.0040.00416.88
8.0.110.0000.00716.96
8.0.100.0030.00516.87
8.0.90.0040.00416.85
8.0.80.0080.01016.92
8.0.70.0040.00416.87
8.0.60.0030.00516.77
8.0.50.0040.00416.67
8.0.30.0120.00517.04
8.0.20.0100.01117.41
8.0.10.0040.00417.11
8.0.00.0090.01016.70
7.4.330.0050.00015.55
7.4.320.0050.00216.61
7.4.300.0060.00016.59
7.4.290.0080.00016.53
7.4.280.0000.00716.61
7.4.270.0050.00516.57
7.4.260.0070.00016.51
7.4.250.0060.00316.55
7.4.240.0000.00816.44
7.4.230.0030.00316.63
7.4.220.0040.00416.42
7.4.210.0060.00916.62
7.4.200.0000.00716.49
7.4.160.0080.01016.56
7.4.140.0050.01417.86
7.4.130.0120.01216.54
7.4.120.0090.01116.49
7.4.110.0120.00616.55
7.4.100.0100.00716.61
7.4.90.0090.00916.66
7.4.80.0040.01419.39
7.4.70.0060.01216.65
7.4.60.0100.01316.48
7.4.50.0110.00716.33
7.4.40.0030.01416.55
7.4.00.0040.01415.11
7.3.330.0050.00013.16
7.3.320.0050.00013.09
7.3.310.0000.00716.13
7.3.300.0050.00216.24
7.3.290.0070.00016.18
7.3.280.0070.01016.24
7.3.260.0070.00916.42
7.3.240.0110.01016.43
7.3.230.0170.00016.46
7.3.210.0070.01116.44
7.3.200.0080.01216.36
7.3.190.0110.00716.52
7.3.180.0040.01116.31
7.3.170.0030.01316.33
7.3.160.0090.01216.38
7.3.00.0070.00716.32
7.2.330.0070.01016.66
7.2.320.0060.01016.52
7.2.310.0110.00916.34
7.2.300.0050.01616.47
7.2.290.0130.00316.80
7.2.130.0060.00616.76
7.2.120.0030.00916.90
7.2.110.0120.00516.72
7.2.100.0030.01016.55
7.2.90.0040.01117.03
7.2.80.0090.00616.51
7.2.70.0170.00315.83
7.2.60.0090.01215.76
7.2.50.0150.00915.96
7.2.40.0130.01016.02
7.2.30.0160.00415.96
7.2.20.0110.00715.81
7.2.10.0150.00715.96
7.2.00.0100.01415.86
7.1.250.0030.01015.68
7.1.240.0080.00015.78
7.1.230.0070.00715.82
7.1.220.0030.00615.57
7.1.210.0090.00315.45
7.1.200.0020.00915.85
7.1.190.0090.00615.52
7.1.180.0070.00415.67
7.1.170.0130.00814.75
7.1.160.0210.00514.89
7.1.150.0130.00714.92
7.1.140.0130.00614.76
7.1.130.0140.00514.85
7.1.120.0120.00714.90
7.1.110.0450.00914.94
7.1.100.0120.00914.68
7.1.90.0150.00314.78
7.1.80.0100.00814.76
7.1.70.0070.01214.77
7.1.60.0210.01023.95
7.1.50.0250.00723.72
7.1.40.0180.01023.68
7.1.30.0260.01023.80
7.1.20.0230.00723.86
7.1.10.0160.00314.95
7.1.00.0080.00714.82
7.0.330.0080.00815.54
5.6.380.0110.00314.14

preferences:
60.65 ms | 401 KiB | 5 Q