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, $results->start + strlen($boundaries->start), $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.0150.00618.33
8.3.50.0110.00418.41
8.3.40.0030.01318.70
8.3.30.0110.00418.76
8.3.20.0040.00419.20
8.3.10.0030.00521.73
8.3.00.0080.00023.53
8.2.180.0060.00918.30
8.2.170.0120.00622.96
8.2.160.0110.00420.79
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.78
8.2.110.0070.00321.06
8.2.100.0120.00018.03
8.2.90.0040.00417.75
8.2.80.0060.00317.97
8.2.70.0000.00818.04
8.2.60.0080.00017.93
8.2.50.0030.00518.10
8.2.40.0040.00419.04
8.2.30.0050.00319.38
8.2.20.0000.00818.11
8.2.10.0000.00719.50
8.2.00.0030.00519.37
8.1.280.0090.01225.92
8.1.270.0050.00322.15
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.59
8.1.230.0090.00320.85
8.1.220.0000.00817.74
8.1.210.0000.01019.04
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0030.00518.10
8.1.170.0000.00718.73
8.1.160.0040.00418.84
8.1.150.0030.00518.88
8.1.140.0040.00419.46
8.1.130.0030.00319.06
8.1.120.0050.00317.50
8.1.110.0030.00517.48
8.1.100.0040.00417.46
8.1.90.0040.00417.49
8.1.80.0060.00317.41
8.1.70.0000.00717.37
8.1.60.0090.00317.45
8.1.50.0000.00817.54
8.1.40.0070.00017.45
8.1.30.0040.00417.59
8.1.20.0040.00417.57
8.1.10.0070.00017.62
8.1.00.0050.00317.56
8.0.300.0040.00419.93
8.0.290.0040.00416.58
8.0.280.0000.00718.43
8.0.270.0030.00317.25
8.0.260.0000.00617.18
8.0.250.0070.00016.94
8.0.240.0040.00416.95
8.0.230.0000.00716.86
8.0.220.0000.00716.93
8.0.210.0000.00716.80
8.0.200.0070.00316.94
8.0.190.0040.00416.92
8.0.180.0030.00516.84
8.0.170.0000.00816.99
8.0.160.0040.00416.78
8.0.150.0070.00016.87
8.0.140.0040.00416.84
8.0.130.0060.00013.35
8.0.120.0040.00416.86
8.0.110.0040.00416.76
8.0.100.0000.00816.67
8.0.90.0070.00016.75
8.0.80.0120.00616.83
8.0.70.0000.00716.89
8.0.60.0050.00217.00
8.0.50.0040.00416.76
8.0.30.0110.00817.05
8.0.20.0120.00617.40
8.0.10.0040.00416.82
8.0.00.0090.01216.77
7.4.330.0000.00615.55
7.4.320.0000.00716.49
7.4.300.0030.00316.54
7.4.290.0030.00316.52
7.4.280.0040.00416.60
7.4.270.0000.01016.51
7.4.260.0000.00816.50
7.4.250.0050.00316.49
7.4.240.0030.00316.40
7.4.230.0030.00316.33
7.4.220.0080.00016.41
7.4.210.0070.00716.56
7.4.200.0000.00716.50
7.4.160.0110.00816.47
7.4.140.0090.00817.86
7.4.130.0120.00616.34
7.4.120.0100.01016.51
7.4.110.0120.00916.64
7.4.100.0110.00616.42
7.4.90.0070.01016.40
7.4.80.0150.01419.39
7.4.70.0060.01216.65
7.4.60.0130.01016.54
7.4.50.0100.00716.34
7.4.40.0090.00816.64
7.4.00.0070.01114.87
7.3.330.0020.00213.23
7.3.320.0060.00013.10
7.3.310.0000.00716.34
7.3.300.0030.00316.28
7.3.290.0030.00316.25
7.3.280.0050.01116.17
7.3.260.0150.00516.40
7.3.240.0100.01016.41
7.3.230.0030.01316.33
7.3.210.0060.01116.15
7.3.200.0040.01216.18
7.3.190.0080.00816.52
7.3.180.0060.00916.30
7.3.170.0060.01016.45
7.3.160.0110.01116.26
7.3.120.0050.01214.90
7.3.110.0040.01214.88
7.3.100.0070.01015.07
7.3.90.0080.00814.84
7.3.80.0110.00714.69
7.3.70.0060.00314.93
7.3.60.0000.00914.68
7.3.50.0030.01014.75
7.3.40.0030.01014.64
7.3.30.0030.01214.82
7.3.20.0060.00316.82
7.3.10.0060.00616.77
7.3.00.0040.01116.50
7.2.330.0070.01116.71
7.2.320.0030.01416.86
7.2.310.0070.01816.93
7.2.300.0130.01016.51
7.2.290.0100.00716.71
7.2.250.0100.01014.99
7.2.240.0130.00715.11
7.2.230.0090.00914.81
7.2.220.0070.00714.64
7.2.210.0040.00714.87
7.2.200.0110.00314.99
7.2.190.0030.01314.68
7.2.180.0130.00014.81
7.2.170.0030.00714.95
7.2.110.0220.00816.12
7.2.70.0250.00615.21
7.2.60.0270.00315.13
7.2.50.0220.00615.24
7.2.40.0150.01115.14
7.2.30.0320.00315.16
7.2.20.0200.01315.20
7.2.10.0180.00615.01
7.2.00.0230.00415.21
7.1.330.0100.00615.82
7.1.320.0060.00615.87
7.1.310.0030.00615.78
7.1.300.0030.01015.43
7.1.290.0030.01215.61
7.1.280.0040.01115.87
7.1.270.0050.00515.87
7.1.260.0060.00615.65
7.1.200.0120.00315.91
7.1.170.0210.01213.93
7.1.160.0280.00913.74
7.1.150.0180.00614.00
7.1.140.0210.00313.68
7.1.130.0160.00713.68
7.1.120.0140.01113.77
7.1.110.1090.01013.83
7.1.100.0150.01014.05
7.1.90.0300.00313.82
7.1.80.0200.00614.07
7.1.70.0160.00714.14
7.1.60.0300.01331.96
7.1.50.0350.01031.70
7.1.40.0290.01531.71
7.1.30.0410.00331.69
7.1.20.0340.00931.93
7.1.10.0240.01213.95
7.1.00.0190.00814.08

preferences:
46.96 ms | 400 KiB | 5 Q