3v4l.org

run code in 300+ PHP versions simultaneously
<?php if( ! function_exists('will_bontrager_insert_php') ) { function will_bontrager_insert_php($content) { $will_bontrager_content = $content; preg_match_all('!\[insert_php[^\]]*\](.*?)\[/insert_php[^\]]*\]!is',$will_bontrager_content,$will_bontrager_matches); $will_bontrager_nummatches = count($will_bontrager_matches[0]); for( $will_bontrager_i=0; $will_bontrager_i<$will_bontrager_nummatches; $will_bontrager_i++ ) { ob_start(); eval($will_bontrager_matches[1][$will_bontrager_i]); $will_bontrager_replacement = ob_get_contents(); ob_clean(); ob_end_flush(); $will_bontrager_content = preg_replace('/'.preg_quote($will_bontrager_matches[0][$will_bontrager_i],'/').'/',$will_bontrager_replacement,$will_bontrager_content,1); } return $will_bontrager_content; } # function will_bontrager_insert_php() add_filter( 'the_content', 'will_bontrager_insert_php', 9 ); } # if( ! function_exists('will_bontrager_insert_php') ) ?>

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.70.0040.01116.75
8.3.60.0140.00716.63
8.3.50.0140.00722.03
8.3.40.0090.00618.81
8.3.30.0070.01018.87
8.3.20.0140.00420.04
8.3.10.0040.00420.27
8.3.00.0050.00223.65
8.2.180.0110.01116.75
8.2.170.0040.01122.96
8.2.160.0120.00322.29
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00020.82
8.2.120.0090.00026.35
8.2.110.0140.00720.86
8.2.100.0100.00317.91
8.2.90.0060.00317.87
8.2.80.0050.00318.77
8.2.70.0050.00317.93
8.2.60.0000.00817.63
8.2.50.0050.00318.22
8.2.40.0080.00022.33
8.2.30.0040.00419.38
8.2.20.0000.00717.73
8.2.10.0040.00418.01
8.2.00.0000.00718.13
8.1.280.0040.01125.92
8.1.270.0030.00622.02
8.1.260.0070.00728.09
8.1.250.0070.00028.09
8.1.240.0040.00817.36
8.1.230.0110.00017.83
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0050.00317.35
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0090.00018.51
8.1.160.0040.00418.87
8.1.150.0070.00020.21
8.1.140.0040.00419.54
8.1.130.0040.00417.71
8.1.120.0000.00817.42
8.1.110.0000.00717.39
8.1.100.0030.00517.41
8.1.90.0040.00417.35
8.1.80.0040.00417.41
8.1.70.0070.00017.32
8.1.60.0040.00417.44
8.1.50.0000.00717.53
8.1.40.0060.00317.38
8.1.30.0000.00817.57
8.1.20.0000.00817.47
8.1.10.0040.00417.59
8.1.00.0030.00517.37
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.38
8.0.270.0030.00317.30
8.0.260.0000.00617.34
8.0.250.0040.00417.01
8.0.240.0040.00417.09
8.0.230.0000.00717.07
8.0.220.0000.00717.04
8.0.210.0070.00016.85
8.0.200.0050.00217.04
8.0.190.0070.00317.05
8.0.180.0040.00417.06
8.0.170.0000.00716.91
8.0.160.0040.00317.05
8.0.150.0040.00416.95
8.0.140.0000.00716.93
8.0.130.0050.00013.37
8.0.120.0000.00716.95
8.0.110.0040.00416.92
8.0.100.0000.00716.87
8.0.90.0000.00716.82
8.0.80.0100.00716.93
8.0.70.0080.00016.84
8.0.60.0040.00416.97
8.0.50.0040.00416.95
8.0.30.0040.01617.12
8.0.20.0120.00917.40
8.0.10.0000.00817.04
8.0.00.0090.00916.77
7.4.330.0000.00516.73
7.4.320.0000.00716.48
7.4.300.0000.00616.52
7.4.290.0000.00716.56
7.4.280.0080.00016.51
7.4.270.0030.00616.52
7.4.260.0000.00716.55
7.4.250.0040.00416.38
7.4.240.0030.00316.49
7.4.230.0000.00716.66
7.4.220.0060.00916.39
7.4.210.0070.00916.50
7.4.200.0000.00816.35
7.4.160.0100.00616.53
7.4.150.0130.01017.40
7.4.140.0200.00617.86
7.4.130.0050.01316.59
7.4.120.0090.00816.46
7.4.110.0100.00716.53
7.4.100.0130.01016.57
7.4.90.0060.01216.41
7.4.80.0090.01519.39
7.4.70.0090.00616.35
7.4.60.0160.00316.70
7.4.50.0000.01616.55
7.4.40.0100.00716.35
7.4.30.0090.00916.35
7.4.00.0030.01214.95
7.3.330.0060.00013.32
7.3.320.0050.00013.33
7.3.310.0040.00416.43
7.3.300.0030.00516.37
7.3.290.0030.00316.19
7.3.280.0110.00816.31
7.3.270.0070.01117.40
7.3.260.0140.01016.54
7.3.250.0100.00716.45
7.3.240.0080.00816.35
7.3.230.0070.01016.51
7.3.210.0130.00316.50
7.3.200.0070.01119.39
7.3.190.0060.00916.55
7.3.180.0060.01016.63
7.3.170.0030.01416.42
7.3.160.0090.00616.39
7.3.120.0060.01314.64
7.3.110.0070.01114.73
7.3.100.0000.01414.99
7.3.90.0070.00314.74
7.3.80.0110.00415.09
7.3.70.0000.01414.65
7.3.60.0110.00014.67
7.3.50.0090.00614.85
7.3.40.0000.01414.47
7.3.30.0060.01214.83
7.3.20.0080.01016.72
7.3.10.0060.01216.60
7.3.00.0030.00716.55
7.2.330.0090.00916.34
7.2.320.0100.00616.49
7.2.310.0170.00016.58
7.2.300.0070.01016.34
7.2.290.0070.01516.72
7.2.250.0090.00914.77
7.2.240.0060.01314.97
7.2.230.0100.00714.82
7.2.220.0060.00915.05
7.2.210.0120.00414.88
7.2.200.0030.01214.96
7.2.190.0030.01414.85
7.2.180.0000.01514.73
7.2.170.0040.00814.80
7.2.60.0060.00916.38
7.2.00.0090.00318.61
7.1.330.0070.00715.63
7.1.320.0000.01215.80
7.1.310.0000.01515.74
7.1.300.0100.00715.48
7.1.290.0110.00415.73
7.1.280.0070.00315.59
7.1.270.0150.00015.71
7.1.260.0060.00915.80
7.1.200.0120.00315.65
7.1.100.0030.00917.42
7.1.70.0030.01317.22
7.1.60.0110.01419.40
7.1.50.0070.01616.93
7.1.00.0030.08722.40
7.0.200.0430.00714.90
7.0.60.0330.07719.99
7.0.50.0030.04717.82
7.0.40.0100.05320.09
7.0.30.0300.06020.32
7.0.20.0300.07720.19
7.0.10.0070.06020.10
7.0.00.0030.08720.20
5.6.280.0030.05321.13
5.6.210.0070.08020.51
5.6.200.0070.04018.18
5.6.190.0100.04020.63
5.6.180.0300.07320.77
5.6.170.0370.06720.47
5.6.160.0030.08720.46
5.6.150.0130.07018.17
5.6.140.0000.04718.23
5.6.130.0030.08718.19
5.6.120.0100.08321.18
5.6.110.0030.05721.14
5.6.100.0170.04021.15
5.6.90.0130.07320.99
5.6.80.0130.07720.42
5.5.350.0100.03020.39
5.5.340.0130.07718.02
5.5.330.0100.03720.40
5.5.320.0530.07020.27
5.5.310.0300.08020.36
5.5.300.0100.06717.98
5.5.290.0030.04018.07
5.5.280.0100.08320.84
5.5.270.0030.05720.84
5.5.260.0100.08020.84
5.5.250.0230.07020.69
5.5.240.0270.08020.35

preferences:
57.37 ms | 401 KiB | 5 Q