3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wp_kses_split( $string, $allowed_html, $allowed_protocols ) { global $pass_allowed_html, $pass_allowed_protocols; $pass_allowed_html = $allowed_html; $pass_allowed_protocols = $allowed_protocols; return preg_replace_callback( '%((<!--.*?(-->|$))|(<[^>]*(>|$)|>))%', '_wp_kses_split_callback', $string ); } function _wp_kses_split_callback( $match ) { global $pass_allowed_html, $pass_allowed_protocols; return wp_kses_split2( $match[1], $pass_allowed_html, $pass_allowed_protocols ); } function wp_kses_split2($string, $allowed_html, $allowed_protocols) { wp_kses_split('', array(), array()); // this overrides the globals. print_r( array( $allowed_html, $allowed_protocols ) ); } wp_kses_split("<a style='color: red;'>I link this</a>", array('a'=>array( 'style' => array() )), array('http') );

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.0060.01516.88
8.3.50.0060.00918.25
8.3.40.0140.00719.10
8.3.30.0070.00718.84
8.3.20.0040.00419.02
8.3.10.0040.00421.89
8.3.00.0040.00420.57
8.2.180.0070.00716.63
8.2.170.0090.00622.96
8.2.160.0060.00921.14
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00322.25
8.2.120.0000.00826.35
8.2.110.0030.00620.51
8.2.100.0040.00817.91
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0000.00917.75
8.2.60.0060.00317.92
8.2.50.0040.00418.10
8.2.40.0030.00522.26
8.2.30.0050.00219.34
8.2.20.0000.00917.89
8.2.10.0000.00818.10
8.2.00.0030.00618.21
8.1.280.0090.00925.92
8.1.270.0040.00418.47
8.1.260.0030.00528.09
8.1.250.0000.00828.09
8.1.240.0100.00019.26
8.1.230.0070.00320.91
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0080.00017.48
8.1.190.0050.00317.48
8.1.180.0060.00618.10
8.1.170.0040.00418.62
8.1.160.0050.00322.16
8.1.150.0020.00518.91
8.1.140.0020.00519.61
8.1.130.0000.00717.79
8.1.120.0000.00717.62
8.1.110.0040.00417.58
8.1.100.0000.00717.63
8.1.90.0030.00517.51
8.1.80.0000.00717.61
8.1.70.0030.00617.61
8.1.60.0040.00417.63
8.1.50.0040.00417.68
8.1.40.0000.00917.67
8.1.30.0060.00317.64
8.1.20.0070.00017.75
8.1.10.0000.00817.63
8.1.00.0000.00817.70
8.0.300.0000.00918.77
8.0.290.0060.00316.75
8.0.280.0040.00418.38
8.0.270.0070.00017.35
8.0.260.0030.00317.30
8.0.250.0000.00717.09
8.0.240.0030.00517.10
8.0.230.0050.00217.18
8.0.220.0000.00817.07
8.0.210.0040.00417.07
8.0.200.0030.00317.09
8.0.190.0000.00716.99
8.0.180.0000.00916.96
8.0.170.0000.00717.03
8.0.160.0040.00417.05
8.0.150.0070.00016.97
8.0.140.0070.00417.07
8.0.130.0050.00013.43
8.0.120.0030.00516.98
8.0.110.0000.00817.09
8.0.100.0040.00417.16
8.0.90.0040.00416.90
8.0.80.0060.01317.04
8.0.70.0000.00817.09
8.0.60.0000.00717.02
8.0.50.0000.00716.90
8.0.30.0080.00917.27
8.0.20.0110.01017.40
8.0.10.0040.00416.98
8.0.00.0140.00516.93
7.4.330.0000.00615.08
7.4.320.0000.00616.70
7.4.300.0040.00416.74
7.4.290.0030.00316.78
7.4.280.0060.00316.84
7.4.270.0000.00816.85
7.4.260.0070.00016.79
7.4.250.0030.00316.71
7.4.240.0040.00416.73
7.4.230.0030.00316.47
7.4.220.0040.01716.75
7.4.210.0070.00716.94
7.4.200.0030.00316.85
7.4.160.0120.00316.85
7.4.150.0120.00617.40
7.4.140.0170.00517.86
7.4.130.0090.01416.63
7.4.120.0160.00216.74
7.4.110.0070.01116.55
7.4.100.0100.00716.70
7.4.90.0030.01416.77
7.4.80.0100.01419.39
7.4.70.0110.00516.90
7.4.60.0090.01216.80
7.4.50.0070.00716.66
7.4.40.0000.01716.75
7.4.30.0140.00416.71
7.4.00.0050.01015.06
7.3.330.0000.00613.38
7.3.320.0000.00513.35
7.3.310.0030.00516.48
7.3.300.0030.00316.49
7.3.290.0070.01016.51
7.3.280.0080.01016.55
7.3.270.0130.00317.40
7.3.260.0050.01316.67
7.3.250.0180.00516.47
7.3.240.0110.00616.79
7.3.230.0120.00416.39
7.3.210.0100.00916.46
7.3.200.0100.00616.54
7.3.190.0080.00816.83
7.3.180.0150.00916.63
7.3.170.0090.01216.48
7.3.160.0090.01316.56
7.3.120.0130.00615.20
7.3.110.0040.01415.03
7.3.100.0100.00315.25
7.3.90.0070.00414.68
7.3.80.0030.00615.17
7.3.70.0030.01215.07
7.3.60.0070.00715.05
7.3.50.0040.00815.04
7.3.40.0070.00715.04
7.3.30.0090.00614.91
7.3.20.0040.00816.66
7.3.10.0070.00316.68
7.3.00.0000.00916.58
7.2.330.0130.00616.77
7.2.320.0120.00616.89
7.2.310.0150.00316.76
7.2.300.0110.00616.73
7.2.290.0070.01016.63
7.2.250.0070.01314.93
7.2.240.0060.01315.01
7.2.230.0060.01215.07
7.2.220.0000.01015.18
7.2.210.0040.01115.34
7.2.200.0110.00715.02
7.2.190.0030.01015.21
7.2.180.0070.00715.13
7.2.170.0030.01315.07
7.2.60.0030.01316.94
7.2.00.0080.00619.39
7.1.330.0110.00416.02
7.1.320.0000.01215.73
7.1.310.0110.00415.91
7.1.300.0040.00816.06
7.1.290.0030.00715.96
7.1.280.0080.00515.91
7.1.270.0000.01715.89
7.1.260.0040.00816.11
7.1.200.0040.00416.01
7.1.70.0050.00517.49
7.1.60.0030.01019.75
7.1.00.0030.07722.34
7.0.200.0040.01114.80
7.0.90.0300.06720.02
7.0.80.0400.05319.90
7.0.70.0330.08019.96
7.0.60.0370.06320.05
7.0.50.0430.05320.46
7.0.40.0300.05020.24
7.0.30.0370.08320.41
7.0.20.0370.07020.28
7.0.10.0330.06020.36
7.0.00.0430.06020.38
5.6.240.0100.05720.62
5.6.230.0130.06020.73
5.6.220.0030.08720.65
5.6.210.0200.05020.75
5.6.200.0230.07321.00
5.6.190.0200.05321.18
5.6.180.0100.06321.10
5.6.170.0100.08021.10
5.6.160.0170.06021.11
5.6.150.0130.08321.18
5.6.140.0130.07321.09
5.6.130.0130.06321.02
5.6.120.0130.06721.14
5.6.110.0230.07021.05
5.6.100.0300.06321.16
5.6.90.0270.05321.15
5.6.80.0170.05320.41
5.6.70.0100.05720.44
5.6.60.0030.07020.45
5.6.50.0230.06020.48
5.6.40.0100.06320.45
5.6.30.0200.04720.44
5.6.20.0300.04320.38
5.6.10.0100.08020.46
5.6.00.0130.08020.34

preferences:
57.43 ms | 401 KiB | 5 Q