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 false; } return $results; } 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.0100.01018.56
8.3.50.0120.00318.45
8.3.40.0140.00418.84
8.3.30.0060.01218.71
8.3.20.0000.00818.97
8.3.10.0080.00021.90
8.3.00.0080.00023.74
8.2.180.0120.00318.41
8.2.170.0100.00722.96
8.2.160.0060.00918.97
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0030.00518.03
8.2.120.0040.00426.35
8.2.110.0050.00520.82
8.2.100.0060.00617.84
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0050.00317.93
8.2.60.0030.00518.05
8.2.50.0080.00018.10
8.2.40.0000.00819.35
8.2.30.0040.00419.29
8.2.20.0040.00418.07
8.2.10.0080.00019.34
8.2.00.0000.00819.58
8.1.280.0120.00625.92
8.1.270.0080.00022.04
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0000.00922.42
8.1.230.0000.01221.10
8.1.220.0040.00417.74
8.1.210.0090.00018.82
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.82
8.1.160.0030.00618.80
8.1.150.0000.00818.80
8.1.140.0070.00019.49
8.1.130.0000.00719.04
8.1.120.0000.00717.52
8.1.110.0000.00717.38
8.1.100.0040.00417.33
8.1.90.0050.00217.39
8.1.80.0040.00417.50
8.1.70.0000.00717.39
8.1.60.0050.00517.59
8.1.50.0060.00317.45
8.1.40.0030.00517.55
8.1.30.0000.00817.53
8.1.20.0070.00017.69
8.1.10.0050.00317.65
8.1.00.0030.00517.50
8.0.300.0080.00019.89
8.0.290.0040.00416.63
8.0.280.0030.00318.55
8.0.270.0000.00717.24
8.0.260.0000.00817.28
8.0.250.0040.00416.95
8.0.240.0000.00617.02
8.0.230.0030.00317.00
8.0.220.0070.00016.84
8.0.210.0030.00316.94
8.0.200.0030.00517.02
8.0.190.0050.00316.85
8.0.180.0080.00016.88
8.0.170.0040.00416.90
8.0.160.0070.00016.86
8.0.150.0040.00416.82
8.0.140.0040.00416.85
8.0.130.0000.00513.31
8.0.120.0030.00516.76
8.0.110.0040.00416.80
8.0.100.0000.00716.82
8.0.90.0040.00416.82
8.0.80.0050.01416.93
8.0.70.0040.00416.71
8.0.60.0000.00716.74
8.0.50.0000.00716.75
8.0.30.0070.00917.24
8.0.20.0090.01017.40
8.0.10.0070.00017.09
8.0.00.0120.00616.75
7.4.330.0000.00615.55
7.4.320.0040.00416.55
7.4.300.0060.00016.62
7.4.290.0000.00716.67
7.4.280.0000.00916.51
7.4.270.0050.00516.50
7.4.260.0040.00416.61
7.4.250.0030.00716.52
7.4.240.0070.00016.52
7.4.230.0030.00516.53
7.4.220.0000.00716.43
7.4.210.0120.00316.64
7.4.200.0040.00416.70
7.4.160.0080.00816.46
7.4.140.0070.01117.86
7.4.130.0060.01116.82
7.4.120.0070.01116.51
7.4.110.0060.00916.50
7.4.100.0090.00916.62
7.4.90.0080.00816.44
7.4.80.0040.02019.39
7.4.70.0040.01516.61
7.4.60.0070.01416.61
7.4.50.0090.00616.46
7.4.40.0110.01116.46
7.4.00.0040.01115.05
7.3.330.0000.00613.24
7.3.320.0000.00513.23
7.3.310.0030.00316.37
7.3.300.0000.00616.22
7.3.290.0030.00316.13
7.3.280.0080.00716.25
7.3.260.0090.00916.36
7.3.240.0110.01216.36
7.3.230.0090.00916.54
7.3.210.0090.00916.29
7.3.200.0030.01316.63
7.3.190.0130.00716.34
7.3.180.0090.00616.33
7.3.170.0060.00916.43
7.3.160.0080.00816.45
7.2.330.0100.00916.61
7.2.320.0110.00616.54
7.2.310.0110.01116.81
7.2.300.0160.00016.54
7.2.290.0160.00016.86
7.2.70.0190.01214.63
7.2.60.0200.01315.15
7.2.50.0170.01015.23
7.2.40.0240.00615.14
7.2.30.0180.01515.05
7.2.20.0260.00914.78
7.2.10.0210.01015.05
7.2.00.1140.01015.11
7.1.200.0030.01015.79
7.1.170.0180.01114.06
7.1.160.0250.00313.74
7.1.150.0270.00513.66
7.1.140.0160.01313.91
7.1.130.0160.01313.67
7.1.120.0100.01013.74
7.1.110.0140.00713.93
7.1.100.0160.00614.00
7.1.90.0210.00713.91
7.1.80.0190.01213.89
7.1.70.0220.00913.86
7.1.60.0460.01332.00
7.1.50.0370.01331.88
7.1.40.0420.01731.75
7.1.30.0460.01331.73
7.1.20.0430.01732.03
7.1.10.0170.01414.06
7.1.00.0220.00614.06

preferences:
49.95 ms | 400 KiB | 5 Q