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($str, $boundaries->start), 'end' => stripos($str, $boundaries->end), ]; return $results; } var_dump( getDynamicBlockContent($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.0070.00718.18
8.3.50.0070.00718.29
8.3.40.0110.00718.92
8.3.30.0070.01418.65
8.3.20.0000.00819.02
8.3.10.0080.00021.83
8.3.00.0040.00423.66
8.2.180.0040.01118.17
8.2.170.0130.00922.96
8.2.160.0110.00419.04
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00818.09
8.2.120.0080.00026.35
8.2.110.0060.00619.34
8.2.100.0040.00817.91
8.2.90.0040.00420.59
8.2.80.0040.00418.03
8.2.70.0040.00418.04
8.2.60.0050.00318.09
8.2.50.0050.00318.10
8.2.40.0070.00019.50
8.2.30.0040.00419.26
8.2.20.0000.00917.91
8.2.10.0040.00419.35
8.2.00.0030.00319.28
8.1.280.0150.00025.92
8.1.270.0060.00322.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.61
8.1.230.0090.00320.87
8.1.220.0080.00017.74
8.1.210.0040.00418.83
8.1.200.0000.00917.35
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0080.00018.66
8.1.160.0000.00718.86
8.1.150.0050.00318.95
8.1.140.0000.00719.46
8.1.130.0000.00719.02
8.1.120.0000.00717.43
8.1.110.0000.00717.41
8.1.100.0000.00717.29
8.1.90.0000.00817.39
8.1.80.0050.00217.41
8.1.70.0070.00017.32
8.1.60.0110.00317.51
8.1.50.0080.00017.55
8.1.40.0030.00617.49
8.1.30.0060.00317.63
8.1.20.0000.00717.68
8.1.10.0050.00317.54
8.1.00.0080.00017.53
8.0.300.0000.00719.88
8.0.290.0070.00016.88
8.0.280.0000.00718.41
8.0.270.0000.00717.26
8.0.260.0040.00417.25
8.0.250.0080.00017.01
8.0.240.0030.00316.98
8.0.230.0050.00316.91
8.0.220.0000.00716.88
8.0.210.0000.00816.76
8.0.200.0040.00417.00
8.0.190.0050.00216.96
8.0.180.0040.00416.88
8.0.170.0050.00316.89
8.0.160.0040.00416.88
8.0.150.0000.00716.92
8.0.140.0000.00716.78
8.0.130.0000.00513.37
8.0.120.0030.00516.88
8.0.110.0000.00716.88
8.0.100.0000.00716.86
8.0.90.0000.00716.91
8.0.80.0070.01216.88
8.0.70.0030.00516.90
8.0.60.0080.00016.88
8.0.50.0000.00716.73
8.0.30.0060.01317.09
8.0.20.0100.00817.40
8.0.10.0030.00517.03
8.0.00.0100.00716.62
7.4.330.0060.00015.55
7.4.320.0060.00016.57
7.4.300.0030.00316.64
7.4.290.0000.00716.48
7.4.280.0040.00316.46
7.4.270.0110.00016.60
7.4.260.0000.00716.58
7.4.250.0040.00416.48
7.4.240.0030.00316.59
7.4.230.0000.00716.59
7.4.220.0000.00716.60
7.4.210.0100.00916.61
7.4.200.0050.00216.34
7.4.160.0060.01016.55
7.4.140.0100.00817.86
7.4.130.0060.01116.77
7.4.120.0110.00916.50
7.4.110.0050.01016.49
7.4.100.0070.01016.43
7.4.90.0120.00616.39
7.4.80.0100.00719.39
7.4.70.0070.01016.65
7.4.60.0120.00616.61
7.4.50.0070.00716.45
7.4.40.0160.00016.54
7.4.00.0050.01314.91
7.3.330.0050.00013.29
7.3.320.0000.00613.37
7.3.310.0030.00416.30
7.3.300.0000.00716.17
7.3.290.0040.00416.16
7.3.280.0070.00916.31
7.3.260.0110.00716.42
7.3.240.0130.00816.42
7.3.230.0100.00716.21
7.3.210.0160.00316.46
7.3.200.0030.01316.42
7.3.190.0100.00716.29
7.3.180.0090.00616.38
7.3.170.0130.00416.46
7.3.160.0090.00616.41
7.2.330.0120.00616.66
7.2.320.0150.00416.69
7.2.310.0100.00716.34
7.2.300.0000.01716.32
7.2.290.0090.00616.75
7.2.70.0130.00915.05
7.2.60.0220.00614.98
7.2.50.0180.00614.93
7.2.40.0090.01314.94
7.2.30.0210.00714.79
7.2.20.0180.00914.86
7.2.10.0240.00614.86
7.2.00.0190.00415.00
7.1.200.0120.00315.52
7.1.170.0130.01013.80
7.1.160.0130.01313.64
7.1.150.0160.01013.57
7.1.140.0190.00713.63
7.1.130.1410.01313.63
7.1.120.0130.00613.79
7.1.110.0100.01013.82
7.1.100.0150.00913.84
7.1.90.0070.01413.99
7.1.80.0160.01313.67
7.1.70.0210.01013.69
7.1.60.0360.02031.88
7.1.50.0390.01331.93
7.1.40.0440.01731.89
7.1.30.0480.01432.01
7.1.20.0410.00731.95
7.1.10.0390.01113.68
7.1.00.0200.01013.88

preferences:
76.82 ms | 401 KiB | 5 Q